add *.sh
This commit is contained in:
9
toggle_mute.sh
Executable file
9
toggle_mute.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
pulsemixer --toggle-mute
|
||||
muted=$(amixer -D pulse get Master | awk -F'[][]' 'END{ print $4}')
|
||||
if [ "on" == "$muted" ]
|
||||
then
|
||||
notify-send "Sound is now toggled on"
|
||||
else
|
||||
notify-send "Sound is now toggled off"
|
||||
fi
|
Reference in New Issue
Block a user