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 #if HEIGHT == 2160
Xft.dpi: 160 Xft.dpi: 160
Xcursor.size: 48 Xcursor.size: 48
polybar.height: 40
#else #else
Xft.dpi: 107 Xft.dpi: 107
polybar.height: 30
#endif #endif
emacs.font: Iosevka Light-13.5 emacs.font: Iosevka Light-13.5

View File

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