Cleanup dotfiles, fixed permissions
Also updated i3 config
This commit is contained in:
18
.config/i3/scripts/volume_set.sh
Executable file
18
.config/i3/scripts/volume_set.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
if [ "$1" == "up" ]
|
||||
then
|
||||
pulsemixer --change-volume +5
|
||||
TEXT="Volume: $(pulsemixer --get-volume | cut -d' ' -f 1 | sed 's/\(\[\|\]\)//g')"
|
||||
elif [ "$1" == "down" ]
|
||||
then
|
||||
pulsemixer --change-volume -5
|
||||
TEXT="Volume: $(pulsemixer --get-volume | cut -d' ' -f 1 | sed 's/\(\[\|\]\)//g')"
|
||||
elif [ "$1" == "mute" ]
|
||||
then
|
||||
pulsemixer --toggle-mute
|
||||
TEXT="Mute: $(pulsemixer --get-mute | cut -d' ' -f 1 | sed 's/\(\[\|\]\)//g')"
|
||||
else
|
||||
echo "usage volume_set.sh {up|down|mute}"
|
||||
fi
|
||||
|
||||
dunstify -r 33223 "Volume changed" "$TEXT"
|
||||
Reference in New Issue
Block a user