Guest User

Untitled

a guest
Jul 20th, 2018
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #!/usr/bin/env bash
  2. # vim: set sw=4 et sts=4 tw=80 :
  3. # Copyright 2009 Ali Polatel <alip@exherbo.org>
  4. # Distributed under the terms of the GNU General Public License v2
  5.  
  6. # Example output hook
  7. hooks/dump-outputs.rb
  8.  
  9. if [[ "$MPD_OUTPUT_ID_1_ENABLED" = 1 ]]; then
  10. MESSAGE="Output $MPD_OUTPUT_ID_1 enabled"
  11. else
  12. MESSAGE="Output $MPD_OUTPUT_ID_1 disabled"
  13. fi
  14.  
  15. if [[ "$MPD_OUTPUT_ID_2_ENABLED" = 1 ]]; then
  16. MESSAGE="Output $MPD_OUTPUT_ID_2 enabled"
  17. else
  18. MESSAGE="Output $MPD_OUTPUT_ID_2 disabled"
  19. fi
  20.  
  21. killall dzen2
  22. echo $MESSAGE | dzen2 -p 3 &
Add Comment
Please, Sign In to add comment