diff options
author | Matt Singleton <matt@xcolour.net> | 2023-02-02 20:07:56 -0600 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2023-02-02 20:07:56 -0600 |
commit | e512f4cdd8cc4761245c55983f0527bd93e6503c (patch) | |
tree | a858e514fad94ea1340e751b38b1ffb991545caf /config | |
parent | 6035311e447acb0e734505afe500237bd8872df0 (diff) |
use wob to show status when setting volume and brightness
Diffstat (limited to 'config')
-rw-r--r-- | config/sway/config | 10 | ||||
-rw-r--r-- | config/wob/wob.ini | 6 |
2 files changed, 9 insertions, 7 deletions
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 |