summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x11/.config/x11/xprofile15
1 files changed, 7 insertions, 8 deletions
diff --git a/x11/.config/x11/xprofile b/x11/.config/x11/xprofile
index 28cb447..6c9b19e 100644
--- a/x11/.config/x11/xprofile
+++ b/x11/.config/x11/xprofile
@@ -4,19 +4,18 @@
# If you use startx/xinit like a Chad, this file will also be sourced.
-# generate .Xresources
xrdb $HOME/.Xresources
+xrdbpid=$!
+
+# Ensure that xrdb has finished running
+[ -n "$xrdbpid" ] && wait "$xrdbpid"
-dpi="96"
if [ $(xdpyinfo | awk '/dimensions/ {print $2}') == '3840x2160' ]; then
- dpi="192"
+ xrdb -merge <<< "Xft.dpi: 192"
+ xrdb -merge <<< "*.font: monospace:size=12"
fi
-xrdb -merge <<< "Xft.dpi: ${dpi}"
-xrdbpid=$!
-# Ensure that xrdb has finished running before using xrdb and moving on to WM/DE
-[ -n "$xrdbpid" ] && wait "$xrdbpid"
# generate zathura config with colors from .Xresources
mkdir -pv $HOME/.config/zathura && $HOME/.local/bin/genzathurarc > $HOME/.config/zathura/zathurarc
@@ -42,7 +41,7 @@ for program in "${autostart[@]}" ; do
pidof -s "${program%% *}" || setsid -f $program
done >$XDG_CACHE_HOME/xprofile.errors 2>&1
-# not sure why it does not work reliably
+# not sure why it does not work reliably inside autostart
dwmblocks &
if [ -x /usr/bin/gpg-agent ]; then