I like vim, and l like to swap the function of the escape and caps lock keys using the following command:
setxkbmap -option "caps:swapescape"
This command works in Fedora 30 Workstation where I’m running xorg because of a series of xrandr commands that I use to fix the display of an external monitor hooked to a laptop. In my new install of Fedora 31 Workstation Beta this command does nothing. I’m guessing it is because Wayland is the default for the Gnome session on that fresh install.
Does Wayland have an alternative way to accomplish the same goal that I’m trying to achieve with the setxkbmap command?
Since all my other Linux boxes, and even my Windows 10 box has the function of the esc and caps lock swapped it would be hard to just learn a different shortcut to accomplish a similar functionality. So don’t suggest alternative vim shortcuts, I know about that possible solution. I just really like having caps lock remapped as esc and esc mapped as caps lock.