From 521161add8781960755d18d64cb38d024c8c2961 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Mon, 26 Jan 2015 09:46:25 +0100 Subject: [PATCH] dzen - hide/show quodlibet window with panel --- config/herbstluftwm/panel.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/config/herbstluftwm/panel.sh b/config/herbstluftwm/panel.sh index 7f063d7..83bdb42 100755 --- a/config/herbstluftwm/panel.sh +++ b/config/herbstluftwm/panel.sh @@ -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 "" | iconv -f utf-8 -t ascii//translit + echo -en "music\t$ts^fg(#909090)" + echo -n "$(quodlibet --print-playing "" | iconv -f utf-8 -t ascii//translit)" + echo "$te" ;; "paused") - echo -e "music ^fg(#909090)pauzed" + echo -e "music $ts^fg(#909090)pauzed$te" ;; *) ;;