summaryrefslogtreecommitdiffstats
path: root/.config/herbstluftwm/panel.sh
diff options
context:
space:
mode:
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"