.config/herbstluftwm/panel.sh
This commit is contained in:
parent
eebebe3686
commit
3431b2ecea
1 changed files with 17 additions and 18 deletions
|
@ -122,27 +122,26 @@ herbstclient pad $monitor2 -5 -5 -5 -5
|
||||||
} 2> /dev/null | {
|
} 2> /dev/null | {
|
||||||
TAGS=( $(herbstclient tag_status $monitor) )
|
TAGS=( $(herbstclient tag_status $monitor) )
|
||||||
TAGS2=( $(herbstclient tag_status $monitor2) )
|
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
|
# wait for next event
|
||||||
read line || break
|
read line || break
|
||||||
cmd=( $line )
|
cmd=( $line )
|
||||||
# find out event origin
|
# find out event origin
|
||||||
case "${cmd[0]}" in
|
case "${cmd[0]}" in
|
||||||
tag*)
|
tag*)
|
||||||
TAGS=( $(herbstclient tag_status $monitor) )
|
TAGS=( $(herbstclient tag_status $monitor) )
|
||||||
TAGS2=( $(herbstclient tag_status $monitor2) )
|
TAGS2=( $(herbstclient tag_status $monitor2) )
|
||||||
;;
|
;;
|
||||||
quit_panel)
|
quit_panel)
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
|
||||||
} 2> /dev/null | dzen2 -w $width -x $x -y $y -fn "$font" -h $height \
|
} 2> /dev/null | dzen2 -w $width -x $x -y $y -fn "$font" -h $height \
|
||||||
-ta l -bg "$bgcolor"
|
-ta l -bg "$bgcolor"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue