dzen - hide/show quodlibet window with panel

This commit is contained in:
Felix Van der Jeugt 2015-01-26 09:46:25 +01:00
parent 7319dfc5ab
commit 521161add8

View File

@ -103,13 +103,16 @@ hc pad $monitor $panel_height
# quodlibet events
while true ; do
status=$(quodlibet --status | cut -d' ' -f1)
ts="^ca(1,quodlibet --toggle-window)"
te="^ca()"
case $status in
"playing")
echo -en "music\t^fg(#909090)"
quodlibet --print-playing "<title~album>" | iconv -f utf-8 -t ascii//translit
echo -en "music\t$ts^fg(#909090)"
echo -n "$(quodlibet --print-playing "<title~album>" | iconv -f utf-8 -t ascii//translit)"
echo "$te"
;;
"paused")
echo -e "music ^fg(#909090)pauzed"
echo -e "music $ts^fg(#909090)pauzed$te"
;;
*)
;;