Add a variable in hlwm theme for font height

Use it to fix bar height after font size change.
This commit is contained in:
Lucas 2019-09-22 17:06:27 +00:00
parent c71e4afe92
commit c172c2aaab
2 changed files with 3 additions and 2 deletions

View File

@ -163,8 +163,7 @@ hc unlock
hc detect_monitors
if [ -f ~/.config/herbstluftwm/herbstpanel.sh ]; then
font_height=13
bar_height=$(($font_height))
bar_height=$(($hlwm_font_height))
for m in $(hc list_monitors | cut -d : -f 1); do
hc pad "$m" 0 0 $bar_height 0
hc monitor_rect "$m" | {

View File

@ -30,3 +30,5 @@
: ${hlwm_font="-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1"}
: ${hlwm_face="Fixed:pixelsize=14"}
: ${hlwm_font_height=14}