From ca77959aa856611bc74a3055a6031f77044c0ff8 Mon Sep 17 00:00:00 2001 From: DustVoice Date: Sun, 2 Aug 2020 19:49:35 +0200 Subject: [PATCH] Adapt more dpi stuff --- .Xresources | 2 +- .config/polybar/config | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.Xresources b/.Xresources index c4d96bf0..ac7d46c8 100644 --- a/.Xresources +++ b/.Xresources @@ -18,4 +18,4 @@ *.color7: #BFBFBF *.color15: #E6E6E6 -!Xft.dpi: 192 +!Xft.dpi: 96 diff --git a/.config/polybar/config b/.config/polybar/config index 093d5c36..89ec3331 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -13,13 +13,14 @@ error = #ff5555 [bar/top] monitor = ${env:MONITOR:} -font-0 = Hack:pixelsize=10;2 +dpi = ${xrdb:Xft.dpi:-1} +font-0 = Hack:size=10;2 monitor-strict = false override-redirect = false bottom = false fixed-center = false width = 100% -height = 20 +height = 2% offset-x = 0% offset-y = 0% @@ -45,6 +46,7 @@ modules-left = bspwm modules-right = date sep xkeyboard sep cpu space temperature sep memory sep filesystem sep pulseaudio sep +tray-scale = 1.0 tray-position = right tray-padding = 0 tray-maxsize = 14