aboutsummaryrefslogtreecommitdiff
path: root/X/xinitrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-15 14:21:52 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-15 14:21:52 +1300
commitd235ffc6b1192662b86005cb6ce45866ffb12ac2 (patch)
tree482ab690e4868e40cb44f3ebdf5281f8141ae0e1 /X/xinitrc
parentAdd an issue about fc (diff)
downloaddotfiles-d235ffc6b1192662b86005cb6ce45866ffb12ac2.tar.gz
dotfiles-d235ffc6b1192662b86005cb6ce45866ffb12ac2.zip
Use .d directory for .xinitrc subscripts
Diffstat (limited to 'X/xinitrc')
-rw-r--r--X/xinitrc37
1 files changed, 5 insertions, 32 deletions
diff --git a/X/xinitrc b/X/xinitrc
index 5763d6ca..e0b3d661 100644
--- a/X/xinitrc
+++ b/X/xinitrc
@@ -1,41 +1,14 @@
-# Browser within X is Firefox
-BROWSER=firefox
-export BROWSER
-
-# Set SSH_ASKPASS if we can find one
-if command -v ssh-askpass >/dev/null 2>&1 ; then
- SSH_ASKPASS=$(command -v ssh-askpass)
- export SSH_ASKPASS
-fi
-
# Read X resources
xrdb "$HOME"/.Xresources
# Faster mouse acceleration with a natural threshold
xset m 5/2 0
-# Start dunst(1) to display libnotify messages
-dunst &
-
-# Start mpdlrc-notify-send <https://sanctum.geek.nz/cgit/mpdlrc.git/about/>
-mpdlrc-notify-send &
-
-# Start redshift(1)
-redshift &
-
-# Map Caps Lock as a Ctrl key, use right alt as Compose, kill X server with
-# Ctrl+Alt+Backspace
-# <https://en.wikipedia.org/wiki/Compose_key#Common_compose_combinations>
-setxkbmap -option compose:ralt,ctrl:nocaps,terminate:ctrl_alt_bksp
-
-# Start urxvtd(1)
-urxvtd -o -q &
-
-# Start xbindkeys(1)
-xbindkeys -n &
-
-# Apply a random background image
-xrbg
+# Load all supplementary scripts in ~/.xinitrc.d
+for sh in "$HOME"/.xinitrc.d/*.sh ; do
+ [ -e "$sh" ] && . "$sh"
+done
+unset -v sh
# Start window manager
exec i3