[xinit] use xmodmap to map capslock to escape

This commit is contained in:
odrling 2022-09-25 02:07:10 +02:00
parent 142967df41
commit 4944f19480
No known key found for this signature in database
GPG Key ID: A0145F975F9F8B75
3 changed files with 7 additions and 0 deletions

2
.config/Xmodmap Normal file
View File

@ -0,0 +1,2 @@
clear Lock
keycode 0x42 = Escape

3
.gitignore vendored
View File

@ -162,3 +162,6 @@ Cache
# git config
!.gitignore
!/.config/git
# Xmodmap
!/.config/Xmodmap

View File

@ -18,6 +18,8 @@ unclutter --ignore-scrolling -b
# map left control to escape
xcape -e 'Control_L=Escape' &
xmodmap ~/.config/Xmodmap
[ -e "$HOME/.xinitrc.local" ] && . "$HOME/.xinitrc.local"
# keyboard layout