You are not logged in.
I want to permanently switch the ESC and Caps Lock key on my keyboard.
I created the file ~/.Xmodmap with the following content:
!Swap Caps_Lock with Escape
remove Lock = Caps_Lock
keysym Caps_Lock = Escape
keysym Escape = Caps_Lock
add Lock = Caps_Lock
After giving the command xmodprobe ~/.Xmodmap in my terminal, it creates the desired effect: the keys are switched.
There is just one problem: it isn't permanent.
To achieve that, I created the file ~/.xinitrc with the following content:
xmodmap /home/porter34/.Xmodmap
Problem is that it doesn't work.
Does anyone here switched the ESC and the Caps Lock keys here? And how did you do it?
Last edited by CooKiECruNChEr43 (2020-01-28 08:02:54)
Offline
Try ~/.xprofile instead of ~/.xinitrc (untested)
https://bbs.archlinux.org/viewtopic.php … 4#p1543214
How about
setxkbmap -option caps:swapescape
https://askubuntu.com/questions/363346/ … ck-and-esc
Last edited by brontosaurusrex (2020-01-08 11:23:44)
Offline
There is just one problem: it isn't permanent.
To achieve that, I created the file ~/.xinitrc with the following content:xmodmap /home/porter34/.Xmodmap
Problem is that it doesn't work.
add that line to ~/.config/openbox/autostart instead.
Please use CODE tags for code.
Search youtube without a browser: repo | thread
BL quote proposals to this thread please.
my repos / my repos
Offline
It has to wait. I have to work extra shifts. I will let you know.
Offline
I found it. The answer is really simple: go to ~/.config/bunsen/autostart and then look for the comment ## Disable capslock.
Uncomment the next line and replace it with setxkbmap -option caps:swapescape
Reboot and then you have made the switch permanently.
Thank you again for your time and your anwers.
Last edited by CooKiECruNChEr43 (2020-12-17 10:31:31)
Offline
I designated this topic as solved, but I want to add another solution to the problem, as can be read here:
https://unix.stackexchange.com/question … x11#426787
Offline