Created
November 22, 2013 14:39
-
-
Save nk23x/7600873 to your computer and use it in GitHub Desktop.
xmute.sh: old xmute.sh using xmessage (the new version uses xosd)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### gbfsc.~:cat scripts/xmute.sh | |
#!/bin/sh | |
TOGGLE=$(amixer sset Master playback toggle | grep -c -E 'Front(.*)Playback(.*)on') | |
if [ $TOGGLE -eq 0 ] | |
then | |
xmessage -timeout 2 -center -buttons '' " - off " | |
else | |
xmessage -timeout 1 -center -buttons '' " + on " | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment