diff options
| author | ivan-boikov <ik.boikov.public@protonmail.com> | 2022-07-15 20:44:51 +0200 |
|---|---|---|
| committer | ivan-boikov <ik.boikov.public@protonmail.com> | 2022-07-15 20:44:51 +0200 |
| commit | 4e29b84572b37201485b342e9beb296b9d4a55f4 (patch) | |
| tree | 402a65c4202e51148ee1272da2d1b646ea6bd2d5 /x11/.config | |
| parent | f5d652af20c8321ceff9373c1f937930cdbc36dd (diff) | |
1
Diffstat (limited to 'x11/.config')
| -rw-r--r-- | x11/.config/x11/xprofile | 15 |
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 |
