aboutsummaryrefslogtreecommitdiffstats
path: root/_xinitrc
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@gmail.com>2016-01-06 22:59:26 +0800
committerAaron LI <aaronly.me@gmail.com>2016-01-06 22:59:26 +0800
commit25b947edf445a96db335fe285a8b253b214649ff (patch)
tree3f785cdbef303c71111debd067c95a62ea456587 /_xinitrc
parent0ed3373f1c2d47aba769aa67439e05350c2792e9 (diff)
downloaddotfiles-25b947edf445a96db335fe285a8b253b214649ff.tar.bz2
Rename .* => _*; Move out private contents.
Diffstat (limited to '_xinitrc')
-rw-r--r--_xinitrc25
1 files changed, 25 insertions, 0 deletions
diff --git a/_xinitrc b/_xinitrc
new file mode 100644
index 0000000..f52892e
--- /dev/null
+++ b/_xinitrc
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# ~/.xinitrc
+#
+
+# Run all system xinitrc shell scripts.
+xinitdir="/etc/X11/xinit/xinitrc.d"
+if [ -d "$xinitdir" ]; then
+ for script in $xinitdir/*; do
+ echo "Loading xinit script $script"
+ if [ -x "$script" -a ! -d "$script" ]; then
+ . "$script"
+ fi
+ done
+ unset $script
+fi
+
+[ -f ~/.Xresources ] && xrdb -load ~/.Xresources
+
+# disable beep
+xset b off
+
+# disable CapsLock
+setxkbmap -option ctrl:nocaps
+