Quickshell live auto reload
This commit is contained in:
parent
6fda1ca083
commit
0d63f3e72f
@ -12,6 +12,23 @@
|
|||||||
wayland.windowManager.hyprland.settings.exec-once = [
|
wayland.windowManager.hyprland.settings.exec-once = [
|
||||||
"quickshell -c default"
|
"quickshell -c default"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# auto reload
|
||||||
|
systemd.user.services.quickshell = {
|
||||||
|
Unit = { Description = "Quickshell bar"; PartOf = [ "graphical-session.target" ]; };
|
||||||
|
Service = {
|
||||||
|
ExecStart = "${pkgs.quickshell}/bin/quickshell -c default";
|
||||||
|
Restart = "always";
|
||||||
|
};
|
||||||
|
Install = { WantedBy = [ "default.target" ]; };
|
||||||
|
};
|
||||||
|
|
||||||
|
# Restart service when config changes (needs systemd 245+; HM supports Path units)
|
||||||
|
systemd.user.paths.quickshell-watch = {
|
||||||
|
Unit = { Description = "Watch Quickshell config"; };
|
||||||
|
Path = { PathChanged = "%h/.config/quickshell"; };
|
||||||
|
Install = { WantedBy = [ "default.target" ]; };
|
||||||
|
};
|
||||||
|
|
||||||
# write the Quickshell config
|
# write the Quickshell config
|
||||||
# xdg.configFile."quickshell/default/shell.qml".text = ''
|
# xdg.configFile."quickshell/default/shell.qml".text = ''
|
||||||
|
@ -26,8 +26,6 @@ Variants {
|
|||||||
Text {
|
Text {
|
||||||
id: clock
|
id: clock
|
||||||
//anchors.centerIn: parent
|
//anchors.centerIn: parent
|
||||||
anchors.top: true
|
|
||||||
anchors.left: true
|
|
||||||
font.pixelSize: 13
|
font.pixelSize: 13
|
||||||
color: "#e6e6e6"
|
color: "#e6e6e6"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user