Move keyboard shortcuts between distros.

Write tutorials for Linux Mint here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
Post Reply
viking777

Move keyboard shortcuts between distros.

Post by viking777 »

I don't think this has been dealt with before on the forum, but it is a very useful little tip to know which I only just discovered myself.

You are upgrading or moving to another distro and you want to take all your keyboard shortcuts with you. There is a perl script here that allows you to do just that with the minimum of effort, it certainly beats remaking them all by hand.

http://pastebin.com/j5NFK7N9

Download the script, save it in your home folder, make sure it is executable, then use it as follows.

On the old distro run

Code: Select all

./keybindings.pl -e keys.csv
By default the script copies all the keybindings including the built in ones, if you only want to keep the custom ones edit the keys.csv file to remove anything you don't want.

On the new distro run the following command:

Code: Select all

./keybindings.pl -i keys.csv
I have already used it myself and it works superbly, copying all my homemade keyboard shortcuts from one distro to another. I guess it will only work on debian based distros like mint or ubuntu, but I don't know that for sure.

BTW I didn't write this script, I only discovered it, the credit goes to one Stephen Ostermiller.

Thanks Stephen :)
Post Reply

Return to “Tutorials”