summaryrefslogtreecommitdiffstats
path: root/xinitrc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-10-14 00:44:57 -0400
committerJesse Luehrs <doy@tozt.net>2013-10-14 00:45:37 -0400
commitccc8a16c127fef39fe2e3db86cf1b971d0180518 (patch)
treec746de8e8a283869c42a2cb8dc802213ed132265 /xinitrc
parent3c8760ef3e59d0452646e6fb8b3551fe53f336e4 (diff)
downloadconf-ccc8a16c127fef39fe2e3db86cf1b971d0180518.tar.gz
conf-ccc8a16c127fef39fe2e3db86cf1b971d0180518.zip
move key rebindings to before services are started
in particular, xcape breaks if you rebind keys after it has already been started
Diffstat (limited to 'xinitrc')
-rw-r--r--xinitrc8
1 files changed, 5 insertions, 3 deletions
diff --git a/xinitrc b/xinitrc
index f00f528..79993e1 100644
--- a/xinitrc
+++ b/xinitrc
@@ -1,10 +1,12 @@
#!/bin/sh
+# these have to all happen before xcape is started
+setxkbmap -option ctrl:nocaps
+setxkbmap -option compose:caps
+xmodmap $HOME/.Xmodmap
+
pidof svscan || (svscan $HOME/.services 2>&1 | readproctitle $USER ........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................) &
-setxkbmap -option ctrl:nocaps # disables caps lock
-setxkbmap -option compose:caps # sets caps key to compose
-xmodmap $HOME/.Xmodmap
synclient HorizEdgeScroll=1
upower -e