Commit Diff


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