xmodmap: Change layout and disable xcape
Change layout so that instead of rebinding caps_lock, escape and ctrl_r in a circle, the caps_lock key now just emulates escape. Caps_lock can now be accessed by pressing both Shifts together. Because of that xcape is disabled for now too. Not sure if I will keep it this way. Caps_lock is now triggered on every shift for a very small time too, that is why the caps_lock binding is removed from the i3 config.
This commit is contained in:
@@ -1,16 +1,9 @@
|
|||||||
! Bind Caps_Lock on Escape key, Ctrl_R on Caps_Lock key and Escape on Control_R
|
! Bind Caps_Lock to Escape
|
||||||
! The Caps_Lock key is also used for Escape through xcape
|
|
||||||
remove Control = Control_R
|
|
||||||
remove Lock = Caps_Lock
|
remove Lock = Caps_Lock
|
||||||
|
|
||||||
keycode 9 =
|
|
||||||
keycode 9 = Caps_Lock
|
|
||||||
|
|
||||||
keycode 66 =
|
keycode 66 =
|
||||||
keycode 66 = Control_R
|
keycode 66 = Escape
|
||||||
|
|
||||||
keycode 105 =
|
! Bind both Shift keys together to Caps_Lock
|
||||||
keycode 105 = Escape
|
keycode 50 = Shift_L Caps_Lock
|
||||||
|
keycode 62 = Shift_R Caps_Lock
|
||||||
add Control = Control_R
|
|
||||||
add Lock = Caps_Lock
|
|
||||||
|
|||||||
@@ -153,7 +153,6 @@ mode "resize" {
|
|||||||
|
|
||||||
# back to normal: Enter or Escape
|
# back to normal: Enter or Escape
|
||||||
bindsym Return mode "default"
|
bindsym Return mode "default"
|
||||||
bindsym Caps_Lock mode "default"
|
|
||||||
bindsym Escape mode "default"
|
bindsym Escape mode "default"
|
||||||
bindsym $mod+r mode "default"
|
bindsym $mod+r mode "default"
|
||||||
}
|
}
|
||||||
|
|||||||
2
.xinitrc
2
.xinitrc
@@ -30,7 +30,7 @@ fi
|
|||||||
unset {sys,user}{resources,modmap,xinitrcd}
|
unset {sys,user}{resources,modmap,xinitrcd}
|
||||||
|
|
||||||
# <right-CTRL> acts as <ESC> when pressed alone and shortly.
|
# <right-CTRL> acts as <ESC> when pressed alone and shortly.
|
||||||
xcape -t 250 -e 'Control_R=Escape'
|
# xcape -t 250 -e 'Control_R=Escape'
|
||||||
# Key repeat rate
|
# Key repeat rate
|
||||||
xset r rate 400 35
|
xset r rate 400 35
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user