diff --git a/bin/notify-on-volume b/bin/notify-on-volume index 13b2c5a..65ef27c 100755 --- a/bin/notify-on-volume +++ b/bin/notify-on-volume @@ -23,5 +23,5 @@ else body="$player_artist - $player_title" fi - dunstify -a "notify-on-volume" -u low -r "$msgId" -h int:value:"$volume" "Volume: ${volume}%" "$body" + echo "$volume" >$XDG_RUNTIME_DIR/wob.sock fi diff --git a/config/.config/sway/config b/config/.config/sway/config index 187ef7c..09b3310 100644 --- a/config/.config/sway/config +++ b/config/.config/sway/config @@ -37,6 +37,9 @@ set $textColor #cbccc6 set $mainMonitor "HDMI-A-1" set $laptopMonitor "eDP-1" +set $WOBSOCK $XDG_RUNTIME_DIR/wob.sock +exec_always rm -f $WOBSOCK && mkfifo $WOBSOCK && tail -f $WOBSOCK | wob + # ____ _____ _ _ _____ ____ _ _ # / ___| ____| \ | | ____| _ \ / \ | | @@ -155,8 +158,8 @@ bindsym --to-code { XF86AudioMicMute exec $HOME/dotfiles/bin/toggle-mic-mute.sh # brightness - XF86MonBrightnessDown exec brightnessctl set 5%- - XF86MonBrightnessUp exec brightnessctl set 5%+ + XF86MonBrightnessDown exec brightnessctl set 5%- | sed -En 's/.*\(([0-9]+)%\).*/\1/p' > $WOBSOCK + XF86MonBrightnessUp exec brightnessctl set 5%+ | sed -En 's/.*\(([0-9]+)%\).*/\1/p' > $WOBSOCK # screenshots $mod+Shift+s exec grim -g "$(slurp)" - | swappy -f -