Initial commit
This commit is contained in:
11
dot_config/hypr/scripts/dunst/volume.sh
Normal file
11
dot_config/hypr/scripts/dunst/volume.sh
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
msgId="3378455"
|
||||
|
||||
wpctl set-mute @DEFAULT_AUDIO_SINK@ 0
|
||||
|
||||
volume=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | sed 's/Volume://' |
|
||||
sed 's/ 0.//' | tr -d ' .')
|
||||
|
||||
notify-send -i $HOME/.config/hypr/scripts/dunst/icons/volume.svg -a "changevolume" -u low -r "$msgId" \
|
||||
-h int:value:"$volume" "Громкость: $volume%"
|
||||
Reference in New Issue
Block a user