better shell activation

This commit is contained in:
EdenQwQ 2025-10-06 16:29:34 +08:00
parent 5966637431
commit 91496e3691
3 changed files with 17 additions and 15 deletions

View file

@ -43,21 +43,23 @@
''
run --quiet ${pkgs.procps}/bin/pkill -HUP swhkd
'';
}
// lib.mkIf (config.desktopShell == "waybar") {
reload-waybar =
reload-shell =
lib.hm.dag.entryAfter [ "reload-swhkd" ]
# bash
''
run --quiet ${pkgs.systemd}/bin/systemctl --user reload waybar.service
'';
}
// lib.mkIf (config.desktopShell == "dms") {
reload-dms =
lib.hm.dag.entryAfter [ "reload-swhkd" ]
# bash
''
run --quiet ${pkgs.systemd}/bin/systemctl --user reload quickshell.service
# only run stop if the service is active
if ${pkgs.systemd}/bin/systemctl --user is-active waybar.service; then
run --silence ${pkgs.systemd}/bin/systemctl --user stop waybar.service
fi
if ${pkgs.systemd}/bin/systemctl --user is-active quickshell.service; then
run --silence ${pkgs.systemd}/bin/systemctl --user stop quickshell.service
fi
if ${pkgs.systemd}/bin/systemctl --user is-active caelestia.service; then
run --silence ${pkgs.systemd}/bin/systemctl --user stop caelestia.service
fi
run --silence ${pkgs.systemd}/bin/systemctl --user start ${
if config.desktopShell == "dms" then "quickshell" else config.desktopShell
}.service
'';
};
};

View file

@ -21,7 +21,7 @@
settings = {
appearance.font.family = {
mono = config.stylix.fonts.monospace.name;
sans = config.stylix.fonts.sansSerif.name;
sans = "Hug Me Tight";
};
background.enabled = false;
bar = {

View file

@ -171,11 +171,11 @@ in
"dankBarCenterWidgets": ["music", "clock", "weather"],
"dankBarRightWidgets": [
{
"id": "notepadButton",
"id": "systemTray",
"enabled": true
},
{
"id": "cpuUsage",
"id": "memUsage",
"enabled": true
},
{