basic ass quickshell added

This commit is contained in:
2026-02-20 16:26:52 +00:00
parent c9d93f2e13
commit bd559c0507
6 changed files with 88 additions and 2 deletions

View File

@@ -23,6 +23,7 @@
<modules/common/gaming>
modules.helium
modules.stylix
modules.quickshell
];
nixos =
{ config, pkgs, ... }:

View File

@@ -2,11 +2,16 @@
{
modules.quickshell = {
homeManager =
{ pkgs, ... }:
{
pkgs,
lib,
config,
...
}:
{
xdg.configFile."quickshell" = {
recursive = true;
source = pkgs.lib.file.mkOutOfStoreSymlink ./quickshell;
source = config.lib.file.mkOutOfStoreSymlink ./quickshell;
};
systemd.user.services.quickshell = {
Unit = {

View File

@@ -0,0 +1,36 @@
// Bar.qml
import Quickshell
import Quickshell.Io
import QtQuick
Scope {
id: root
PanelWindow {
required property var modelData
screen: modelData
color: "transparent"
anchors {
top: true
left: true
right: true
}
implicitHeight: 20
Rectangle {
width: meow.width
height: meow.height
radius: 3.5
color: "white"
anchors.centerIn: parent
Text {
id: meow
text: Clock.time
}
}
}
}

View File

@@ -0,0 +1,20 @@
// Time.qml
pragma Singleton
import Quickshell
import QtQuick
Singleton {
id: root
// an expression can be broken across multiple lines using {}
readonly property string time: {
// The passed format string matches the default output of
// the `date` command.
Qt.formatDateTime(clock.date, "ddd MMM d hh:mm:ss AP t yyyy");
}
SystemClock {
id: clock
precision: SystemClock.Seconds
}
}

View File

@@ -0,0 +1,5 @@
import Quickshell
Scope {
Bar {}
}

View File

@@ -0,0 +1,19 @@
pragma Singleton
import Quickshell
import QtQuick
Singleton {
id: root
// an expression can be broken across multiple lines using {}
readonly property string time: {
// The passed format string matches the default output of
// the `date` command.
Qt.formatDateTime(clock.date, "ddd MMM d hh:mm:ss AP t yyyy");
}
SystemClock {
id: clock
precision: SystemClock.Seconds
}
}