]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - xinitrc
xinitrc: use $HOME for consistency
[config/dotfiles.git] / xinitrc
diff --git a/xinitrc b/xinitrc
index c4dd1c207c902d4b8945f4440849e47fdde888e2..fb9a24e51cc7d9ae1a78d1671f1844a155b75062 100755 (executable)
--- a/xinitrc
+++ b/xinitrc
 # LANG set (for Python's decode() function). Therefore load my general shell
 # environment which also includes $LANG.
 if test -f "$HOME/.shell/env"; then
-    # Debug function used in ~/.shell/env.
-    source_debug() {
-        # Do nothing.
-        :
-    }
-
     . "$HOME/.shell/env"
 fi
 
@@ -109,7 +103,7 @@ xmodmap -e 'keycode 94 = grave asciitilde'
 xset b off
 
 # Load settings for programs. Xdefaults is deprecated.
-xrdb ~/.Xresources
+xrdb "$HOME/.Xresources"
 
 # Change the background if available.
 if test -f "$HOME/.background" && test -n "$set_background"; then
@@ -151,6 +145,9 @@ fi
 # of urxvt.
 if installed compton; then
     compton &
+# xcompmgr as fallback.
+elif installed xcompmgr; then
+    xcompmgr &
 fi
 
 
@@ -161,7 +158,7 @@ fi
 # Start window manager.
 failed=
 if installed herbstluftwm; then
-    herbstluftwm --locked >~/.config/herbstluftwm/log 2>&1 || failed=1
+    herbstluftwm --locked >"$HOME/.config/herbstluftwm/log" 2>&1 || failed=1
 elif installed xmonad; then
     xmonad || failed=1
 elif installed stumpwm; then