diff --git a/X11/xprofile b/X11/xprofile index 8bd4bde..b7a748d 100644 --- a/X11/xprofile +++ b/X11/xprofile @@ -16,8 +16,8 @@ export MOZ_USE_XINPUT2=1 # enable pixel-accurate scrolling in firefox # Load Xorg resources and set the DPI -xrdb -merge $XDG_CONFIG_HOME/X11/xresources -xrandr --dpi $(xrdb -query | grep -i xft.dpi | cut -d: -f2) +xrdb -merge "$XDG_CONFIG_HOME/X11/xresources" +"$XDG_CONFIG_HOME/scripts/dpi" "$(xrdb -query | grep -i xft.dpi | cut -d: -f2 | xargs)" setxkbmap -option caps:none xset r rate 200 18 diff --git a/scripts/dpi b/scripts/dpi index 896b064..75c94d9 100755 --- a/scripts/dpi +++ b/scripts/dpi @@ -57,13 +57,13 @@ Xft.dpi: $dpi Xcursor.size: $cursor EOF xrandr --dpi "$dpi" & -systemctl --user reload-or-restart xsettingsd & +systemctl --user try-reload-or-restart xsettingsd & wait -systemctl --user reload \ +systemctl --user try-reload-or-restart \ i3 \ polybar@i3bar & -systemctl --user restart \ +systemctl --user try-restart \ dunst & wait