tweak volumenotify
This commit is contained in:
parent
8c80c5ecd2
commit
be306c83e5
1 changed files with 7 additions and 1 deletions
|
|
@ -4,4 +4,10 @@ set volume (string match -r '[0-9]+.[0-9]+' (wpctl get-volume @DEFAULT_AUDIO_SIN
|
||||||
|
|
||||||
set volume (math --scale 0 --scale-mode round "$volume * 100")
|
set volume (math --scale 0 --scale-mode round "$volume * 100")
|
||||||
|
|
||||||
notify-send -c 'status' -h int:value:$volume "Volume" "$volume%"
|
if string match '*[MUTED]' (wpctl get-volume @DEFAULT_AUDIO_SINK@)
|
||||||
|
set text "muted"
|
||||||
|
else
|
||||||
|
set text "$volume%"
|
||||||
|
end
|
||||||
|
|
||||||
|
notify-send -c 'status' -h int:value:$volume "Volume" "$text"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue