basic ass quickshell added
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
<modules/common/gaming>
|
<modules/common/gaming>
|
||||||
modules.helium
|
modules.helium
|
||||||
modules.stylix
|
modules.stylix
|
||||||
|
modules.quickshell
|
||||||
];
|
];
|
||||||
nixos =
|
nixos =
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|||||||
@@ -2,11 +2,16 @@
|
|||||||
{
|
{
|
||||||
modules.quickshell = {
|
modules.quickshell = {
|
||||||
homeManager =
|
homeManager =
|
||||||
{ pkgs, ... }:
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
xdg.configFile."quickshell" = {
|
xdg.configFile."quickshell" = {
|
||||||
recursive = true;
|
recursive = true;
|
||||||
source = pkgs.lib.file.mkOutOfStoreSymlink ./quickshell;
|
source = config.lib.file.mkOutOfStoreSymlink ./quickshell;
|
||||||
};
|
};
|
||||||
systemd.user.services.quickshell = {
|
systemd.user.services.quickshell = {
|
||||||
Unit = {
|
Unit = {
|
||||||
|
|||||||
36
config/modules/quickshell/quickshell/Bar.qml
Normal file
36
config/modules/quickshell/quickshell/Bar.qml
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
20
config/modules/quickshell/quickshell/Clock.qml
Normal file
20
config/modules/quickshell/quickshell/Clock.qml
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
5
config/modules/quickshell/quickshell/shell.qml
Normal file
5
config/modules/quickshell/quickshell/shell.qml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import Quickshell
|
||||||
|
|
||||||
|
Scope {
|
||||||
|
Bar {}
|
||||||
|
}
|
||||||
19
config/modules/quickshell/quickshell/widgets/clock.qml
Normal file
19
config/modules/quickshell/quickshell/widgets/clock.qml
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user