.config/herbstluftwm/panel.sh
This commit is contained in:
parent
e4f69ad9fd
commit
523043be49
1 changed files with 5 additions and 1 deletions
|
@ -94,7 +94,7 @@ function print_services() {
|
|||
servicetxt="$servicetxt$separator$(status $j)"
|
||||
done
|
||||
servicetxt_only=$(echo -n "$servicetxt" | sed 's.\^[^(]*([^)]*)..g')
|
||||
let servicetxt_width=$(textwidth "$font" "$servicetxt_only")/2
|
||||
let servicetxt_width=($(textwidth "$font" "$servicetxt_only")+7)/2
|
||||
|
||||
echo -n "^p(_CENTER)^p(-$servicetxt_width)$servicetxt"
|
||||
}
|
||||
|
@ -150,3 +150,7 @@ herbstclient pad $monitor2 -5 -5 -5 -5
|
|||
done
|
||||
} 2> /dev/null | dzen2 -w $width -x $x -y $y -fn "$font" -h $height \
|
||||
-ta l -bg "$bgcolor"
|
||||
|
||||
# Local Variables:
|
||||
# eval: (git-auto-commit-mode 1)
|
||||
# End:
|
||||
|
|
Loading…
Reference in a new issue