mirror of
https://github.com/FAUSheppy/config
synced 2025-12-08 15:48:32 +01:00
small adjustments for aligment
This commit is contained in:
@@ -123,7 +123,9 @@ hc pad $monitor $panel_height
|
|||||||
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 ")
|
||||||
echo -n "^pa($(($panel_width - $width - 20)))$right"
|
len=$(expr $(echo -n "$right" | wc -c) / 3)
|
||||||
|
35
|
||||||
|
echo -n "^pa($(($panel_width - $width - $len + 10)))$right"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
### Data handling ###
|
### Data handling ###
|
||||||
|
|||||||
Reference in New Issue
Block a user