People have talked and asked about backups, making customizations portable, etc regularly over the years I've been on the Vinux list, and rightly so.
Especially those of us who like to play with things, and make customizations that make for more efficient work, and generaly moe enjoyable comuting care
about this of course, and also from time to time we break things.
Fixing mistakes canb be a greeat way to learn, but often a re-installation is in order, especially when we know we can get our system back to working how
we like it with out having to repeat boring configuration proceedures.
The one thing I do that saves me the most time in a gien day when using my graphical interfaces is use a set of custom keyboard shortcuts.
Till now this was one thing I had to redo with many installation.
I was looking for where some settings were available in human readable format yesterday so I could share some keyboard shortcuts with others, and
eventually ship them as part of a project I am working on.
I stil have not found a file or two I am looking for, but did stumble across a couple of scripts that can import and export keyboard shortcuts whether the
factory shipped ones or ones customizations.
I've not been able to test one yet, but found a perl script that is distro agnostic, i.e. will let you back up and restore keybindings for the gnome
desktop, unity, and mate probably.
Any thing that uses gsettings schemas to set keybindings should be compatible with this little app.
For those who do not know what gsettings are but have a bit of windows experience, gsettings are more or less the Linux equivalent of windows registrys.
This just handles the keybindings side of things, i.e.something that should be safe and sane to import and export.
I'll attach the script, and with in a day or few probably make an AUR package for arch-linux and its offshoots.
After I test the other package I'll see which seems best and try and get something together in the way of a .deb package.
For now though this is simple. Just copy one file in to your path somewhere, i.e. best place is usually /usr/local/bin.
It has one or two perl dependencies, but I think almost anyone will have them already.
Alternatively to putting this in a globally accessible directory you can just run it from your home folder by typing ./
keybindings.pl with -e or =i some
filename.
-e exports and -i imports, -h gives a help msg.
csv files are used, so use that extension for consistency.
I've used this on Vinux5, and run it on arch as well, bur my current arch installatioin does not use most of the gsettings for keybindings as fluxbox, my
GUI's heart, uses its own keys file.
Don't forget to make the file executable if it is not already, i.e.
sudo chmod 755 /usr/local/bin/
keybindings.pl
will do the trick if you put the file in the dir I recommend.
--
B.H.
Registerd Linux User 521886