herbstluftwm: panel: ensure compatibility with custom functions
This commit is contained in:
parent
79c9582b13
commit
0e66bbc27a
1 changed files with 2 additions and 1 deletions
|
|
@ -142,7 +142,8 @@ hc pad $monitor $panel_height
|
||||||
echo -n "$separator"
|
echo -n "$separator"
|
||||||
echo -n "^bg()^fg() ${windowtitle//^/^^}"
|
echo -n "^bg()^fg() ${windowtitle//^/^^}"
|
||||||
# small adjustments
|
# small adjustments
|
||||||
right="$separator^bg() $date $separator"
|
right=""
|
||||||
|
right="${right} ^bg() $(icon clock2 green) $date"
|
||||||
right_text_only=$(echo -n "$right" | sed 's.\^[^(]*([^)]*)..g')
|
right_text_only=$(echo -n "$right" | sed 's.\^[^(]*([^)]*)..g')
|
||||||
# get width of right aligned text.. and add some space..
|
# get width of right aligned text.. and add some space..
|
||||||
width=$($textwidth "$font" "$right_text_only ")
|
width=$($textwidth "$font" "$right_text_only ")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue