commit b3b2ca80ef50dceb8b585fa63c34a39e84ba2aa0 from: the xhr date: Wed Jun 01 10:17:23 2022 UTC Also deal with low and high res Xresources commit - 279382028420a63825f95d48f9bd31831d0d0c28 commit + b3b2ca80ef50dceb8b585fa63c34a39e84ba2aa0 blob - 29c9ff0f34a9ea55e56ae1623bef72976c3595f7 blob + 2d5d4389405757e204ceb80bc334ccff149e993c --- .xinitrc-openbsd +++ .xinitrc-openbsd @@ -29,7 +29,15 @@ export HIGHDPI # HiDPI case if [ $HIGHDPI -eq 1 ]; then - [[ -e ~/.Xresources-high ]] && xrdb -merge ~/.Xresources-high & + _xpath=~/.Xresources + if [[ -h ${_xpath} ]]; then + rm ${_xpath} + ln -s ~/Documents/git/config/.Xresources-high ${_xpath} + xrdb -merge ${_xpath} + elif [[ ! -e ${_xpath} ]]; then + ln -s ~/Documents/git/config/.Xresources-high ${_xpath} + xrdb -merge ${_xpath} + fi _cpath=~/.i3/config if [[ -h ${_cpath} ]]; then @@ -43,7 +51,15 @@ if [ $HIGHDPI -eq 1 ]; then ln -s ${_apath}.high ${_apath} fi else - [[ -e ~/.Xresources ]] && xrdb -merge ~/.Xresources & + _xpath=~/.Xresources + if [[ -h ${_xpath} ]]; then + rm ${_xpath} + ln -s ~/Documents/git/config/.Xresources-low ${_xpath} + xrdb -merge ${_xpath} + elif [[ ! -e ${_xpath} ]]; then + ln -s ~/Documents/git/config/.Xresources-high ${_xpath} + xrdb -merge ${_xpath} + fi _cpath=~/.i3/config if [[ -h ${_cpath} ]]; then