Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using Ubuntu 12.04 (Fallback) and I am trying to slim it down, mostly for fun/learning experience.

I killed gnome-settings-daemon because I set up my theming from elsewhere. But now some of my keybindings are lost. I think the windowmanager ones are still working, like Alt-Tab and switch workspace. But my mediakeys to change volume and my custom keybindings are not working anymore.

Is there a different way to save custom keybindings? Do I really need to run settings-manager to setup my keybindings?

share|improve this question
1  
Xbindkeys is nice, but it doesn't work well with function keys. –  Seth Dec 21 '12 at 0:32
    
Thanks for your comment, I just figured it out and I use xbindkeys too. I wrote an answer on how I did it. –  Carlito Dec 21 '12 at 12:50

1 Answer 1

up vote 1 down vote accepted

I figured it out! You can use xbindkeys to setup your own keybindings without the need of gnome-settings-daemon. So first:

sudo apt-get install xbindkeys

And then you can generate a default config file:

xbindkeys --defaults > ~/.xbindkeysrc

To give an example of some stuff I use in my .xbindkeysrc:

"amixer -q set Master 2- unmute"
XF86AudioLowerVolume
"amixer -q set Master 2+ unmute"
XF86AudioRaiseVolume
"amixer -q set Master toggle"
XF86AudioMute
"urxvt"
alt+Return
"lxpanelctl run"
alt+r

Then run xbindkeys at startup and the custom keybindings work.

share|improve this answer
1  
To add to this, if you run xbindkeys -k in a terminal, it will give you the xbindkey keysym for any key you press. This is helpful for finding the name of a key you don't know. –  Seth Dec 22 '12 at 18:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.