sway usage
set $WOBSOCK $XDG_RUNTIME_DIR/wob.sock
exec rm -f $WOBSOCK && mkfifo $WOBSOCK && tail -f $WOBSOCK | wob
You could also set $WOBSOCK in you .zprofile (or other shell init script)
volume with pamixer
bindsym XF86AudioRaiseVolume exec pamixer -ui 2 && pamixer --get-volume > $WOBSOCK
bindsym XF86AudioLowerVolume exec pamixer -ud 2 && pamixer --get-volume > $WOBSOCK
bindsym XF86AudioMute exec pamixer --toggle-mute && ( [ "$(pamixer --get-mute)" = "true" ] && echo 0 > $WOBSOCK ) || pamixer --get-volume > $WOBSOCK
brightness with light
bindsym --locked XF86MonBrightnessDown exec light -2 && light > $WOBSOCK
bindsym --locked XF86MonBrightnessUp exec light +2 && light > $WOBSOCK
debug
You can run wob directly in a terminal with whatever options you want to try
and then type numbers interactively to test your options.