Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Loop Endlessly
- while true; do
- # Find out if the GVoice plugin is on Pulse's list. If so, Change the volume to 50% and wait 60 seconds before the next check.
- if [ "`pactl list | grep -o -m 1 'GIPS VoiceEngine'`" == "GIPS VoiceEngine" ]; then
- amixer -q set Master 50%
- sleep 60
- # If it's not there, check again in 10 seconds
- else
- sleep 10
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement