mirror of
https://github.com/EdenQwQ/nixos.git
synced 2025-12-26 18:34:56 +08:00
better shell activation
This commit is contained in:
parent
5966637431
commit
91496e3691
3 changed files with 17 additions and 15 deletions
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -171,11 +171,11 @@ in
|
|||
"dankBarCenterWidgets": ["music", "clock", "weather"],
|
||||
"dankBarRightWidgets": [
|
||||
{
|
||||
"id": "notepadButton",
|
||||
"id": "systemTray",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"id": "cpuUsage",
|
||||
"id": "memUsage",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue