summaryrefslogtreecommitdiffstats
path: root/.config/herbstluftwm/panel.sh
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-05-22 14:36:52 +0000
committerGravatar Tom Willemsen2012-05-22 14:36:52 +0000
commit90cccbae8af88ec5431d4c24939e0c61cf2aec2d (patch)
tree1e2666d09616a31441ebda2fda416b0292f364e7 /.config/herbstluftwm/panel.sh
parentdf1105ec767afa06318db9e1ec2d5de0d737df44 (diff)
parent1ea643146c817681ce8d4acd8726a1fd113a05ba (diff)
downloaddotfiles-90cccbae8af88ec5431d4c24939e0c61cf2aec2d.tar.gz
dotfiles-90cccbae8af88ec5431d4c24939e0c61cf2aec2d.zip
Merge remote-tracking branch 'ryuslash/master' into phoenix
Conflicts: .config/herbstluftwm/autostart .xbindkeysrc.scm .xinitrc
Diffstat (limited to '.config/herbstluftwm/panel.sh')
-rwxr-xr-x.config/herbstluftwm/panel.sh39
1 files changed, 19 insertions, 20 deletions
diff --git a/.config/herbstluftwm/panel.sh b/.config/herbstluftwm/panel.sh
index 1438974..ae5aedd 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
@@ -122,27 +120,28 @@ 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
+
+ sleep 1s
} 2> /dev/null | dzen2 -w $width -x $x -y $y -fn "$font" -h $height \
-ta l -bg "$bgcolor"