]> git.rmz.io Git - dotfiles.git/commitdiff
xkb: use xcape to map CAPS to Ctrl & Esc
authorSamir Benmendil <samir.benmendil@gmail.com>
Mon, 5 May 2014 00:03:21 +0000 (01:03 +0100)
committerSamir Benmendil <samir.benmendil@gmail.com>
Sun, 11 May 2014 01:32:58 +0000 (02:32 +0100)
xkb/symbols/dvorak
xprofile

index 42b173c449e10cb62281be92f07e17923bdd404b..4836766085616748b1d0ec670f8b1cd8e226bca0 100644 (file)
@@ -32,7 +32,7 @@ xkb_symbols "default" { //{{{1
     key <AD12> { [           equal,            plus ] };
 
     // 3rd Row {{{2
-    key <CAPS> { [          Escape ] };
+    key <CAPS> { [       Control_L ] };
     key <AC01> { [               a,               A,      adiaeresis,      Adiaeresis ] };
     key <AC02> { [               o,               O,      odiaeresis,      Odiaeresis ] };
     key <AC03> { [               e,               E,        EuroSign,        EuroSign ] };
@@ -68,8 +68,8 @@ xkb_symbols "default" { //{{{1
     key <LWIN> { [          Super_L ] };
     key <SPCE> { [            space ] };
     key <RWIN> { [          Super_R ] };
-    key <RCTL> { [        Control_R ] };
     key <RALT> { [ ISO_Level3_Shift ] };
+    key <RCTL> { [        Control_R ] };
 
     // F Keys {{{2
     key <ESC>  { [          Escape ] };
@@ -122,6 +122,8 @@ xkb_symbols "default" { //{{{1
     key   <UP> { [              Up ] };
     key <LEFT> { [            Left ] };
     key <RGHT> { [           Right ] };
+
+    modifier_map Control { <CAPS>, <LCTL> };
 }; //}}}1
 
 partial
index d70f69fd49eb6468591683ba5f0e87e79bdd0d91..3161e09b986da22e027b6034e15e47d1c02f6f7f 100644 (file)
--- a/xprofile
+++ b/xprofile
@@ -3,4 +3,5 @@ compton -b --config ~/.config/compton.conf
 xautolock -time 10 -locker "i3lock -n -c 000000" -detectsleep &
 xkbcomp -I$HOME/.config/xkb $HOME/.config/xkb/$HOST.xkb $DISPLAY
 xbindkeys
+xcape -e "Control_L=Escape;Control_R=Escape"
 urxvtd -q -f -o