build status notifications for volume and brightness

This commit is contained in:
Never Gude 2026-03-15 20:20:28 +01:00
parent 41aaa02156
commit 78dce1ecfa
11 changed files with 188 additions and 93 deletions

View file

@ -0,0 +1,7 @@
#!/usr/bin/env fish
set volume (string match -r '[0-9]+.[0-9]+' (wpctl get-volume @DEFAULT_AUDIO_SINK@))
set volume (math --scale 0 --scale-mode round "$volume * 100")
notify-send -c 'status' -h int:value:$volume "Volume: $volume%"