Showing posts with label debian. Show all posts
Showing posts with label debian. Show all posts

Friday, December 25, 2015

How to save custom shortcuts or keybindings on debian GNOME

According to ubuntu reference dconf is the most appropriate tool to manage shortcuts. Custom keybindings are stored in /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/, so we do

dconf dump /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/ > bkp

and bkp contains something like this:
[custom1]
binding='<Primary><Alt>t'
command='gnome-terminal &'
name='console'

[custom2]
binding='<Shift>Print'
command='gnome-screenshot -a'
name='screenshot-to-/home/asalle/Pictures'

[custom3]
binding='<Primary><Alt>i'
command='iceweasel'
name='iceweasel'

After this, put the bkp file into the cloud or elsewhere, where it can be safe and restore keybindings, if necessary, with:

 dconf load /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/ < bkp

Sorry, guys, I haven't tried the last one, so I am not sure if it works.

Sunday, September 6, 2015

if the "compress" context menu of nautilus is missing

I had a freshly installed latest stable Debian (Jessie) and some files to archive. Those were photos, ant it was very convenient to pick some of them in visual mode and choose compress from the context menu of nautilus, but it was not there.

After some digging I found that file-roller package is missing, after installing it everything was okay, so

sudo apt-get install file-roller
killall nautilus
nautilus &