Currently I have an
.Xmodmap file that changes my Command to Ctrl, then changes my Ctrl to Super (I'm running Linux on a Mac).
It works quite well, when only run once but on successive runs (for example when I restart my desktop environment (Cinnamon) it reloads the
.Xmodmap file) it basically resets the settings by reverting the changes. Effectively toggling between my desired setup and the original setup.
How can I write an
.Xmodmap file that only sets the settings one time, but doesn't change them back on successive runs? Here is my existing
clear control clear mod4 keycode 105 = keycode 206 = keycode 133 = Control_L NoSymbol Control_L keycode 134 = Control_R NoSymbol Control_R keycode 37 = Super_L NoSymbol Super_L add control = Control_L add control = Control_R