You are not logged in.
1 - Installed xbindkeys and its gui configuration utility:
sudo apt-get install xbindkeys xbindkeys-config
2 - Execute this:
xbindkeys --defaults > ~/.xbindkeysrc
3 - Run xbindkeys and xbindkeys-config
xbindkeys
xbindkeys-config
4 - Press the button "New" to create a new keybinding, and on the right, you can name it, choose what key to use (use the Get Key button then press the combination of keys you want, and it will capture it for you), and choose the command to run.
Here are the basic ones: substitute "Master" with "PCM" if needed, or others
Name: Mute
Action: amixer sset Master toggle
Name: Increase volume
Action: amixer sset Master 1+ unmute
Name: Decrease volume
Action: amixer sset Master 1- unmute
5 - File -> Save to default File
6 - Add "xbindkeys &" to your autostart.sh so it always runs when you start up.
And that's it.
Last edited by ShazbotMcNasty (2010-07-14 21:01:24)
Yup....
Offline
Hello,
why do you use xbindkeys when you can do the same thing in your rc.xml with openbox ?
I use something like this :
<keybind key="W-Up">
<action name="Execute">
<execute>aumix -v +10</execute>
</action>
</keybind>
<keybind key="W-Down">
<action name="Execute">
<execute>aumix -v -10</execute>
</action>
</keybind>David [aka] ADcomp
Offline
some of us still like the GUI. I personally have borked my machine more than once by missing a keystroke while editing a .xml. Sure I backed up the file and was able to un-break it but not every one is that good from the command line.
Offline
Hello jk26926,
I have a question .. What happen if you use a key bind with xbindkeys that is already in your rc.xml ?
and for keybind / openbox , you have obkey ( but I never use it .. )
Last edited by ADcomp (2010-01-04 15:34:38)
David [aka] ADcomp
Offline
Hello there, did you tried
xbindkeys -k?
That works very well, and then you just have to edit it into your xbindkeysrc
The result maybe looks something like this:
"no command"
m:0x10 + c:122
NoSymbolAnd now just edit it with your commands:
"amixer sset toggle"
m:0x10 + c:122
NoSymbol@ADcomp:
On my machine it starts both keybinds(from rc.xml and xbindkeysrc), veryusefull sometimes 
Last edited by paulsenior (2010-01-04 16:29:09)
From Germany --> Bad English 
Offline
Hello, xbindkeys is going away with segmentation fault if i try to specifi a key combination, also xev doesnt seems to be affected if I press the Fn key. How can I know whether its working?
Offline
1 - Installed xbindkeys and its gui configuration utility:
sudo apt-get install xbindkeys xbindkeys-config2 - Execute this:
xbindkeys --defaults > ~/.xbindkeysrc3 - Run xbindkeys and xbindkeys-config
xbindkeys
xbindkeys-config4 - Press the button "New" to create a new keybinding, and on the right, you can name it, choose what key to use (use the Get Key button then press the combination of keys you want, and it will capture it for you), and choose the command to run.
Here are the basic ones: substitute "Master" with "PCM" if needed, or others
Name: Mute
Action: amixer sset Master toggleName: Increase volume
Action: amixer sset Master 1+ unmuteName: Decrease volume
Action: amixer sset Master 1- unmute5 - File -> Save to default File
6 - Add "xbindkeys &" to your autostart.sh so it always runs when you start up.
And that's it.
Worked a treat for me. I have a Lenovo T61 laptop. After my switch to CrunchBang, the machine lost volume control with the "Mute", "Vol Down" and "Vol Down" buttons found on the top left, next to the Esc key. So for a few days, I was adjusting sound volume by moving the cursor on the volume icon on the task bar. I eventually got sick of doing that because I found myself habitually pressing the volume control buttons first to adjust sound volume. Thanks, ShazbotMcNasty! 
Offline
Hello, xbindkeys is going away with segmentation fault if i try to specifi a key combination, also xev doesnt seems to be affected if I press the Fn key. How can I know whether its working?
fn key alone doesn't do anything in XEV, use one of the fn keys on the keyboard and it'll show something from XEV. (My keyboard has volume up as fn + uparrow, so I have to hit that combo for xev to show)
Offline
Thanks ShazbotMcNasty, et. al. Been wanting to get volume working.
Can I please get some direction on where to look for other key actions, e.g. fn + [number keys] on my Dell D610 laptop? Work with quite a few spreadsheets and would be faster with num_keys for data entry.
Thanks
sum ergo cogito ( i am therefore i think )
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.