Update hlwm panel

- Use lemonbar-xft instead of lemonbar
- Use the same font sizing than in ~/.Xdefaults
This commit is contained in:
Lucas 2020-01-26 15:00:53 +00:00
parent 776714b53c
commit dda3865373
3 changed files with 5 additions and 5 deletions

View File

@ -168,7 +168,7 @@ if [ -f ~/.config/herbstluftwm/herbstpanel.sh ]; then
hc pad "$m" 0 0 $bar_height 0
hc monitor_rect "$m" | {
read -r x y w h
y=$(($y + $h - $bar_height - 1))
y=$(($y + $h - $bar_height))
printf "%s\t%u\t%u\t%u\t%u\n" \
"$m" "$x" "$y" "$w" $bar_height
}

View File

@ -75,9 +75,9 @@ while IFS=" " read -r m x y w h; do
;;
esac
printf "%s%s%s\n" "$left" "$center" "$right"
done | lemonbar -g "$w"x"$h"+"$x"+"$y" \
done | lemonbar-xft -g "$w"x"$h"+"$x"+"$y" \
-B "$hlwm_background" -F "$hlwm_foreground" \
-f "$hlwm_font" | sh &
-f "$hlwm_face" | sh &
done
herbstclient -w reload >/dev/null
kill 0

View File

@ -29,6 +29,6 @@
: ${hlwm_foreground="#fffcf2"}
: ${hlwm_font="-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1"}
: ${hlwm_face="monospace:pixelsize=12"}
: ${hlwm_face="monospace:size=10.5"}
: ${hlwm_font_height=14}
: ${hlwm_font_height=17}