move bar height to .Xresources where it is dpi dependent

This commit is contained in:
Łukasz Pankowski 2020-08-08 19:44:49 +02:00
parent e0c5b576e6
commit 710daef390
2 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,10 @@
#if HEIGHT == 2160
Xft.dpi: 160
Xcursor.size: 48
polybar.height: 40
#else
Xft.dpi: 107
polybar.height: 30
#endif
emacs.font: Iosevka Light-13.5

View File

@ -6,7 +6,6 @@ DEFAULT_THEME=lupan-dark
FONT='Iosevka Light-13.5'
BAR_FONT="${FONT};5"
BAR_HEIGHT=35
CMD="$1"
shift
@ -67,7 +66,6 @@ polybar.active: ${BAR_ACTIVE}
polybar.urgent: ${BAR_URGENT}
polybar.empty: ${BAR_EMPTY}
polybar.font: ${BAR_FONT}
polybar.height: ${BAR_HEIGHT}
EOF
polybar-msg cmd restart
xsetroot -solid "${ROOT_BG}"