Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.37 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Loop Endlessly
  4. while true; do
  5.  
  6. # 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.
  7. if [ "`pactl list | grep -o -m 1 'GIPS VoiceEngine'`" == "GIPS VoiceEngine" ]; then
  8. amixer -q set Master 50%
  9. sleep 60
  10.  
  11. # If it's not there, check again in 10 seconds
  12. else
  13. sleep 10
  14.  
  15. fi
  16. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement