From 3431b2ecea1f94af0e77d0a6ecd8d28b02d9ccae Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sat, 21 Apr 2012 16:59:18 +0200 Subject: .config/herbstluftwm/panel.sh --- .config/herbstluftwm/panel.sh | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) (limited to '.config/herbstluftwm/panel.sh') diff --git a/.config/herbstluftwm/panel.sh b/.config/herbstluftwm/panel.sh index 0946e3d..2c93a4a 100755 --- a/.config/herbstluftwm/panel.sh +++ b/.config/herbstluftwm/panel.sh @@ -122,27 +122,26 @@ herbstclient pad $monitor2 -5 -5 -5 -5 } 2> /dev/null | { TAGS=( $(herbstclient tag_status $monitor) ) TAGS2=( $(herbstclient tag_status $monitor2) ) - while true ; do - separator="^fg($bgcolor)^ro(1x$height)^fg()" - print_tags - print_services - print_mailboxes - echo + separator="^fg($bgcolor)^ro(1x$height)^fg()" + print_tags + print_services + print_mailboxes + + echo # wait for next event - read line || break - cmd=( $line ) + read line || break + cmd=( $line ) # find out event origin - case "${cmd[0]}" in - tag*) - TAGS=( $(herbstclient tag_status $monitor) ) - TAGS2=( $(herbstclient tag_status $monitor2) ) - ;; - quit_panel) - exit - ;; - esac - done + case "${cmd[0]}" in + tag*) + TAGS=( $(herbstclient tag_status $monitor) ) + TAGS2=( $(herbstclient tag_status $monitor2) ) + ;; + quit_panel) + exit + ;; + esac } 2> /dev/null | dzen2 -w $width -x $x -y $y -fn "$font" -h $height \ -ta l -bg "$bgcolor" -- cgit v1.2.3-54-g00ecf From 701ef480aad95908c129f9184384ecd3c33e0ed3 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sat, 21 Apr 2012 17:01:05 +0200 Subject: .config/herbstluftwm/panel.sh --- .config/herbstluftwm/panel.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to '.config/herbstluftwm/panel.sh') diff --git a/.config/herbstluftwm/panel.sh b/.config/herbstluftwm/panel.sh index 2c93a4a..b3498bd 100755 --- a/.config/herbstluftwm/panel.sh +++ b/.config/herbstluftwm/panel.sh @@ -142,6 +142,8 @@ herbstclient pad $monitor2 -5 -5 -5 -5 exit ;; esac + + sleep 3 } 2> /dev/null | dzen2 -w $width -x $x -y $y -fn "$font" -h $height \ -ta l -bg "$bgcolor" -- cgit v1.2.3-54-g00ecf From eca300b055107b60366a26bbb482dc61f616a7c3 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sat, 21 Apr 2012 17:02:11 +0200 Subject: .config/herbstluftwm/panel.sh --- .config/herbstluftwm/panel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config/herbstluftwm/panel.sh') diff --git a/.config/herbstluftwm/panel.sh b/.config/herbstluftwm/panel.sh index b3498bd..2ec9eae 100755 --- a/.config/herbstluftwm/panel.sh +++ b/.config/herbstluftwm/panel.sh @@ -143,7 +143,7 @@ herbstclient pad $monitor2 -5 -5 -5 -5 ;; esac - sleep 3 + sleep 1 } 2> /dev/null | dzen2 -w $width -x $x -y $y -fn "$font" -h $height \ -ta l -bg "$bgcolor" -- cgit v1.2.3-54-g00ecf From 66181fb6534846c0396809fe0181c5ece97f07b1 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sat, 21 Apr 2012 17:04:44 +0200 Subject: .config/herbstluftwm/panel.sh --- .config/herbstluftwm/panel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config/herbstluftwm/panel.sh') diff --git a/.config/herbstluftwm/panel.sh b/.config/herbstluftwm/panel.sh index 2ec9eae..48c1600 100755 --- a/.config/herbstluftwm/panel.sh +++ b/.config/herbstluftwm/panel.sh @@ -143,7 +143,7 @@ herbstclient pad $monitor2 -5 -5 -5 -5 ;; esac - sleep 1 + sleep 1s } 2> /dev/null | dzen2 -w $width -x $x -y $y -fn "$font" -h $height \ -ta l -bg "$bgcolor" -- cgit v1.2.3-54-g00ecf From a528d7fef80fef577fe481b98c9d68003a10040c Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sat, 21 Apr 2012 17:33:09 +0200 Subject: .config/herbstluftwm/panel.sh --- .config/herbstluftwm/panel.sh | 2 -- 1 file changed, 2 deletions(-) (limited to '.config/herbstluftwm/panel.sh') diff --git a/.config/herbstluftwm/panel.sh b/.config/herbstluftwm/panel.sh index 48c1600..22b46ae 100755 --- a/.config/herbstluftwm/panel.sh +++ b/.config/herbstluftwm/panel.sh @@ -113,8 +113,6 @@ function emacs_running() ps ax | awk '{ print $5 " " $6 }' | grep -E "^emacs --daemon" } -herbstclient pad $monitor $(expr -5 + $height) -5 -5 -5 -herbstclient pad $monitor2 -5 -5 -5 -5 { childpid=$! herbstclient --idle -- cgit v1.2.3-54-g00ecf