There is also xkeycaps for this purpose. Written by Jamie Zawinski in 1991, but only maintained until 2005. It is a GUI front-end for xmodmap, and features 208 different keyboard configurations.
A description by the author can be found here - http://www.jwz.org/xkeycaps/ and the Manual here - http://www.jwz.org/xkeycaps/man.html
xkeycaps is in the official repositories of a number of Linux Distros, but may need to be installed. This from Mint.
Once installed, it does not show up in Mint's menu, but may in others, so if not, open Terminal, type and enter as follows
...and the GUI will fire up into two windows.
Before I go further, I have left out a step I had cause to learn only later.
xkeycaps changes the configuration file for xmodmap on your PC, which can be found in your Home folder (after Ctrl-H reveals hidden files and folders), named with the sequence ".xmodmap-<name of your computer>", in my case PC is "hermes", hence
After the first pair of swapped keys is effected, my original conf is saved as .xmodmap-Hermes.bak, with the familiar green triangle icon. Before proceeding further with xkeycaps, you are well advised to back up your original config, eg rename it, as I am unaware whether further changes made in xkeycaps will cause you to lose your original config.
Back to those two windows, which are
The icon of the keyboard changes as you choose different brands and models.
My Acer keyboard doesn't rate a mention, it has four (4) keys left of the Space bar, being Ctrl, (Context) Menu, Super (Windows) and Alt - so I did not complete the desired z to Super swap, but remapped some other keys, using the default PC 105 key, wide Delete, tall Enter (XFree86; US) option. After leaving xkeycaps, I went to play Aisleriot Patience and found my shortcut keys Ctrl-N and Ctrl-Z had vanished.
Hence the need for backup on the xmodmap config. I simply blew away the new one, renamed the old one, rebooted, and back again playing Patience.
On leaving xkeycaps, you are returned to Terminal, where you may see the following:
The warnings were generated during the xkeycaps session (I could see the underlying window) and I ignored them as they seemed related only to font presentation.
The fatal error I have no answer for, but it did not seem to impact on the functions of xkeycaps.
xkeycaps is old, it has clunky navigation, but it may do what you need of it. And of course it is free.
A couple of things before I go:
- I wouldn't remap the Super (Windows) key unless you have two of them, they are a fast way to call up Menus
- The Super key has been around on *nix systems for far more years than since Bill Gates stuck a Windows icon on it. This corroborates what Al1000 was saying
Computers are designed to work on Windows; Linux is designed to work on computers.
- ray5450, if you could post that script as Al has suggested, this Topic can be left open to help others, as well as yourself, should you return to the Wonderful World of Linux.