From a41d24ab470e41173ef9fe450c65d12884f2d236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Mon, 26 Jan 2026 10:55:09 +0100 Subject: [PATCH] feat(sway): add wob --- sway/config | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sway/config b/sway/config index a6a8ccb..8a29575 100644 --- a/sway/config +++ b/sway/config @@ -15,6 +15,8 @@ output * bg ~/.assets/wallpaper.png fill # # Example configuration: # +set $wobs /tmp/wob.sock +exec rm -f $wobs && mkfifo $wobs && tail -f $wobs | wob exec swayidle -w # This will lock your screen after 300 seconds of inactivity, then turn off # your displays after another 300 seconds, and turn your screens back on when @@ -165,8 +167,8 @@ bindsym $mod+r mode "resize" # # Special keys to adjust volume via PulseAudio bindsym --locked XF86AudioMute exec pactl set-sink-mute \@DEFAULT_SINK@ toggle - bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume \@DEFAULT_SINK@ -5% - bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume \@DEFAULT_SINK@ +5% + bindsym --locked XF86AudioLowerVolume exec pamixer -d 5 && pamixer --get-volume > $wobs + bindsym --locked XF86AudioRaiseVolume exec pamixer -i 5 && pamixer --get-volume > $wobs bindsym --locked XF86AudioMicMute exec pactl set-source-mute \@DEFAULT_SOURCE@ toggle # Special keys to adjust brightness via brightnessctl bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-