small adjustments for aligment

This commit is contained in:
Sheppy
2017-02-25 23:13:42 +01:00
parent 170c116699
commit 5bb98610bd

View File

@@ -123,7 +123,9 @@ hc pad $monitor $panel_height
right_text_only=$(echo -n "$right" | sed 's.\^[^(]*([^)]*)..g')
# get width of right aligned text.. and add some space..
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
### Data handling ###