Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- # vim: set sw=4 et sts=4 tw=80 :
- # Copyright 2009 Ali Polatel <alip@exherbo.org>
- # Distributed under the terms of the GNU General Public License v2
- # Example output hook
- hooks/dump-outputs.rb
- if [[ "$MPD_OUTPUT_ID_1_ENABLED" = 1 ]]; then
- MESSAGE="Output $MPD_OUTPUT_ID_1 enabled"
- else
- MESSAGE="Output $MPD_OUTPUT_ID_1 disabled"
- fi
- if [[ "$MPD_OUTPUT_ID_2_ENABLED" = 1 ]]; then
- MESSAGE="Output $MPD_OUTPUT_ID_2 enabled"
- else
- MESSAGE="Output $MPD_OUTPUT_ID_2 disabled"
- fi
- killall dzen2
- echo $MESSAGE | dzen2 -p 3 &
Add Comment
Please, Sign In to add comment