Add files via upload
This commit is contained in:
13
config/dunst/scripts/volume.sh
Executable file
13
config/dunst/scripts/volume.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
volume=$(amixer -D pulse sget Master | tail -1 | awk -F'[][]' '{print $2}' | sed 's/%//g')
|
||||
|
||||
if [[ "$volume" -eq "0" ]]; then
|
||||
icon="$HOME/.config/dunst/scripts/volume-mute.svg"
|
||||
elif [[ "$volume" -lt "100" ]]; then
|
||||
icon="$HOME/.config/dunst/scripts/volume-normal.svg"
|
||||
else
|
||||
icon="$HOME/.config/dunst/scripts/volume-max.svg"
|
||||
fi
|
||||
|
||||
dunstify -a "volume" -i "$icon" -r 3456 -h int:value:"$volume" "Volume: ${volume}%"
|
||||
Reference in New Issue
Block a user