Move keyboard shortcuts between distros.

Write tutorials and howtos in here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please. Before you post please read this

Move keyboard shortcuts between distros.

Postby viking777 on Tue Mar 05, 2013 12:15 pm

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 :)
Fujitsu Lifebook AH532. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Lubuntu 13.10,Ubuntu12.10 (Unity), Mint16 (Cinnamon), Manjaro (Xfce).
Image
User avatar
viking777
Level 14
Level 14
 
Posts: 5153
Joined: Mon Dec 01, 2008 11:21 am

Linux Mint is funded by ads and donations.
 

Return to Tutorials / Howtos

Who is online

Users browsing this forum: No registered users and 12 guests