Remapping Caps Lock to Windows (Super) key

I was using xmodmap ~/.Xmodmap in my .Xsession to remap caps lock to the super key utilizing the following configuration in .Xmodmap:

! disable caps lock and map to super
clear Lock
remove lock = Caps_Lock
add mod4 = Caps_Lock

After some updates in Debian testing, this configuration did not work anymore. I found some information on

After reading /usr/share/X11/xkb/rules/base.lst, a working way seems to be using setxkbmap with the option caps:super:

setxkbmap -option caps:super

At the moment I am too lazy to read the documentation on XKB, so I am using xmodmap for the remaining keymappings. The right way should involve some configuration files documented on and

An introduction to the evolution of can be found on