aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weigl-Bosker <stefan@s00.xyz>2025-07-27 14:29:07 -0400
committerStefan Weigl-Bosker <stefan@s00.xyz>2025-07-27 14:29:07 -0400
commit5f5fb95a6e0819b63a10f7834618148315df9e90 (patch)
treeaa171aa71d2555e5bc9de65bb947a945df561981
parent60b33d6edc6eff5142c2def85a07406ff867b5e5 (diff)
downloadhome-5f5fb95a6e0819b63a10f7834618148315df9e90.tar.gz
modules/sway: update
-rw-r--r--modules/sway/default.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/sway/default.nix b/modules/sway/default.nix
index 1031fd9..0e87018 100644
--- a/modules/sway/default.nix
+++ b/modules/sway/default.nix
@@ -46,6 +46,7 @@ in
'')
autotiling
pamixer
+ killall
];
wayland.windowManager.sway = lib.mkIf cfg.enable {
checkConfig = false;
@@ -153,13 +154,13 @@ in
# command = "waybar";
# }
{
- statusCommand = "i3status";
+ statusCommand = "py3status --wm sway";
# mode = "hide";
# hiddenState = "hide";
position = "top";
fonts = {
names = [
- "sans-serif"
+# "sans-serif"
"monospace"
];
size = "10.0";
@@ -294,10 +295,10 @@ in
"${modifier}+Shift+f" = "fullscreen";
# this can probably be simplified but im not a sed wizard
- "--locked XF86AudioRaiseVolume" = "exec pamixer -ui 2 && pamixer --get-volume > $WOBSOCK";
- "--locked XF86AudioLowerVolume" = "exec pamixer -ud 2 && pamixer --get-volume > $WOBSOCK";
+ "--locked XF86AudioRaiseVolume" = "exec pamixer -ui 2 && pamixer --get-volume > $WOBSOCK && killall -s USR1 -r py3status";
+ "--locked XF86AudioLowerVolume" = "exec pamixer -ud 2 && pamixer --get-volume > $WOBSOCK && killall -s USR1 -r py3status";
"--locked XF86AudioMute" =
- ''exec pamixer --toggle-mute && ( [ "$(pamixer --get-mute)" = "true" ] && echo 0 > $WOBSOCK ) || pamixer --get-volume > $WOBSOCK'';
+ ''exec pamixer --toggle-mute && ( [ "$(pamixer --get-mute)" = "true" ] && echo 0 > $WOBSOCK ) || pamixer --get-volume > $WOBSOCK && killall -s USR1 -r py3status'';
"--locked XF86MonBrightnessUp" = "exec light -A 5 && light -G | cut -d'.' -f1 > $WOBSOCK";
"--locked XF86MonBrightnessDown" = "exec light -U 5 && light -G | cut -d'.' -f1 > $WOBSOCK";
};