From e512f4cdd8cc4761245c55983f0527bd93e6503c Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Thu, 2 Feb 2023 20:07:56 -0600 Subject: use wob to show status when setting volume and brightness --- config/sway/config | 10 +++------- config/wob/wob.ini | 6 ++++++ 2 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 config/wob/wob.ini (limited to 'config') diff --git a/config/sway/config b/config/sway/config index 5e951d2..a2a0284 100644 --- a/config/sway/config +++ b/config/sway/config @@ -69,13 +69,7 @@ output * background /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1366x768.png ### wob indicator set $WOBSOCK $XDG_RUNTIME_DIR/wob.sock -exec rm -f $WOBSOCK && mkfifo $WOBSOCK && tail -f $WOBSOCK | \ - wob --border-color "#676364ff" \ - --background-color "#dee2e0ff" \ - --bar-color "#676364ff" \ - --offset 0 \ - --border 1 \ - --padding 5 +exec rm -f $WOBSOCK && mkfifo $WOBSOCK && tail -f $WOBSOCK | wob ### Key bindings # @@ -110,6 +104,8 @@ exec rm -f $WOBSOCK && mkfifo $WOBSOCK && tail -f $WOBSOCK | \ bindsym XF86AudioLowerVolume exec ~/.local/bin/setvol down > $WOBSOCK bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle + bindsym XF86MonBrightnessDown exec ~/.local/bin/setbright down > $WOBSOCK + bindsym XF86MonBrightnessUp exec ~/.local/bin/setbright up > $WOBSOCK #bindsym XF86MonBrightnessDown exec brightnessctl set 5%- #bindsym XF86MonBrightnessUp exec brightnessctl set +5% #bindsym XF86AudioPlay exec playerctl play-pause diff --git a/config/wob/wob.ini b/config/wob/wob.ini new file mode 100644 index 0000000..8205a29 --- /dev/null +++ b/config/wob/wob.ini @@ -0,0 +1,6 @@ +border_color=676364 +background_color=dee2e0 +bar_color=676364 +border_offset=0 +border_size=1 +bar_padding=5 -- cgit v1.2.3