getmute 208 B

123456789101112
  1. #!/bin/bash
  2. #if [ 'pamixer --get-mute' = 'true' ]; then mute='[M]'; fi
  3. # notification
  4. VOLUME=$(pamixer --get-volume)
  5. MUTE=$(pamixer --get-mute)
  6. if [ "$MUTE" == "false" ]; then
  7. echo ''
  8. else
  9. echo '[M]'
  10. fi