Add a variable in hlwm theme for font height
Use it to fix bar height after font size change.
This commit is contained in:
parent
c71e4afe92
commit
c172c2aaab
@ -163,8 +163,7 @@ hc unlock
|
|||||||
hc detect_monitors
|
hc detect_monitors
|
||||||
|
|
||||||
if [ -f ~/.config/herbstluftwm/herbstpanel.sh ]; then
|
if [ -f ~/.config/herbstluftwm/herbstpanel.sh ]; then
|
||||||
font_height=13
|
bar_height=$(($hlwm_font_height))
|
||||||
bar_height=$(($font_height))
|
|
||||||
for m in $(hc list_monitors | cut -d : -f 1); do
|
for m in $(hc list_monitors | cut -d : -f 1); do
|
||||||
hc pad "$m" 0 0 $bar_height 0
|
hc pad "$m" 0 0 $bar_height 0
|
||||||
hc monitor_rect "$m" | {
|
hc monitor_rect "$m" | {
|
||||||
|
@ -30,3 +30,5 @@
|
|||||||
|
|
||||||
: ${hlwm_font="-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1"}
|
: ${hlwm_font="-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1"}
|
||||||
: ${hlwm_face="Fixed:pixelsize=14"}
|
: ${hlwm_face="Fixed:pixelsize=14"}
|
||||||
|
|
||||||
|
: ${hlwm_font_height=14}
|
||||||
|
Loading…
Reference in New Issue
Block a user