build status notifications for volume and brightness
This commit is contained in:
parent
41aaa02156
commit
78dce1ecfa
11 changed files with 188 additions and 93 deletions
7
.local/scripts/volumenotify.fish
Executable file
7
.local/scripts/volumenotify.fish
Executable 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%"
|
||||
Loading…
Add table
Add a link
Reference in a new issue