From 90821a3863f48bf21bec565019b566803e390df3 Mon Sep 17 00:00:00 2001 From: Sheppy Date: Fri, 24 Feb 2017 23:09:06 +0100 Subject: [PATCH] removed unessesary comments --- herbstluftwm/panel.sh | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/herbstluftwm/panel.sh b/herbstluftwm/panel.sh index 723ee4a..e871f46 100755 --- a/herbstluftwm/panel.sh +++ b/herbstluftwm/panel.sh @@ -116,16 +116,10 @@ hc pad $monitor $panel_height done echo -n "$separator" echo -n "^bg()^fg() ${windowtitle//^/^^}" - # small adjustments - - powersupply - #pwr="NO BATTERY" - #if [ $HOSTNAME == atlantislaptop ] || [$HOSTNAME == atlantismedion ] ; then - # pwr="$(acpi -b | sed -r 's/Battery [0-9]+: //')" - #fi - + + ####################### Interface to python layer ######################### right="$($HOME/.config/herbstluftwm/panel_content.py) $date" - #right="^fg(#32CD32) Druckerguthaben: -256 Euro^bg() ^fg(#ff0000) $separator^bg() $date $separator" + 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 ")