Al elegant way of doing this could be re-mapping Caps lock to Hyper key using xmodmap
so create an arbitary file ( ~/.Xmodmap here as an example ) with following contents
remove Lock = Caps_Lock
keycode 66 shift = Hyper_L Caps_Lock
remove mod4 = Hyper_L
add Mod3 = Hyper_L
The above configurations allows me to use caps lock as a hyper key, and I can also ...