How can I eliminate all of the possible keyboard layout modifications so that my keyboard layout goes back to normal? I wanted to try and change my caps lock key to be a control key, as many people before me have done. I finally found a way to do this by adding the command
/bin/bash -c "sleep 15&&setxkbmap -layout us -option ctrl:nocaps"
to my startup applications preferences. (accessed by typing super, then typing "startup applications")
It works for commands like Ctrl+D that only have Ctrl and a letter, but it doesn't seem to work for commands like Ctrl+Alt+T that consist of Ctrl and an additional modifier key.
When I was trying to do this earlier, I tried a bunch of different things that I can't remember, most of them having to do with xmodmap and xkeycaps, but possibly some other edits. Commands to xmodmap didn't have any effect and commands with xkeycaps don't persist after logging out.
I don't have a ~/.Xmodmap
file, and I've tried using
dpkg-reconfigure keyboard-configuration
as suggested in this thread: Keyboard layout wont change but to no avail.
I noticed that when I use the guest account the Caps Lock key works as normal, so does that mean the issue lies somewhere in my home directory? I'm tempted to just wipe out my user account and just make another one if that would do the trick.
EDIT: Found a solution! Yay. I checked in my dconf settings using the following command: dconf-editor Then I went to org > gnome > desktop > input-sources and found that the registry 'xkb-options' had ['caps:none']. Changing the option to [] reset my keyboard's behaviour back to normal.
dpkg-reconfigure keyboard-configuration
again?