View previous topic :: View next topic |
Author |
Message |
codedmart l33t
Joined: 18 Nov 2003 Posts: 647 Location: Not Quite Sure
|
Posted: Sun Dec 19, 2004 7:02 pm Post subject: Hotkeys or Something??? |
|
|
I have a HP Pavilion ze4145 Laptop and I wanted to use some of the extra keys. So I have emerged hotkeys and done xev to get the key codes but am not sure how to set up hotkeys or something else if I should be using something else?
Thanks for any help. |
|
Back to top |
|
|
papal_authority Veteran
Joined: 31 Mar 2004 Posts: 1823 Location: Canada
|
Posted: Sun Dec 19, 2004 7:25 pm Post subject: |
|
|
I used to do it that way but have switched to xbindkeys as it's so much easier. After emerging xbindkeys, just do the following:
Code: | 1. % /usr/local/bin/xbindkeys --key
- press each key that you want to use and note the code (e.g. m:0x0 + c:195)
2. % vi $HOME/.xbindkeysrc
- use your key codes here and make it look something like this:
# Messenger/SMS Key
"/usr/local/share/amsn/amsn &"
m:0x0 + c:145
# My Home Key
"/usr/bin/mozilla &"
m:0x0 + c:178
3. % /usr/local/bin/xbindkeys &
- start it up
If you use KDE (yuck) you can get it to start every time you login:
% vi $HOME/Autostart/xbindkeys.sh
- add these two lines:
#!/bin/sh
/usr/local/bin/xbindkeys &
|
_________________ The free market gave me gonorrhea. |
|
Back to top |
|
|
codedmart l33t
Joined: 18 Nov 2003 Posts: 647 Location: Not Quite Sure
|
Posted: Sun Dec 19, 2004 7:35 pm Post subject: |
|
|
I don't use KDE and I just want to mainly get the volume buttons working so thanks. |
|
Back to top |
|
|
codedmart l33t
Joined: 18 Nov 2003 Posts: 647 Location: Not Quite Sure
|
Posted: Sun Dec 19, 2004 8:04 pm Post subject: |
|
|
I did this in .xbindkeysrc
"aumix -v +4"
m:0x0 + c:176
"aumix -v -4"
m:0x0 + c:174
and it isn't changing the volume so I must be doing somethind wrong. |
|
Back to top |
|
|
papal_authority Veteran
Joined: 31 Mar 2004 Posts: 1823 Location: Canada
|
Posted: Sun Dec 19, 2004 9:48 pm Post subject: |
|
|
I just edited my volume keys (never used them before) and it works great. I killed xbindkeys and edited my $HOME/.xbindkeys to look like this:
Code: | # Volume Up
"aumix -v +4 &"
m:0x0 + c:176
# Volume Down
"aumix -v -4 &"
m:0x0 + c:174 |
Note the & to background the tasks. Then I restarted xbindkeys (i.e. /usr/bin/xbindkeys &) and played with the volume keys while listening to XMMS. It worked perfectly. _________________ The free market gave me gonorrhea. |
|
Back to top |
|
|
codedmart l33t
Joined: 18 Nov 2003 Posts: 647 Location: Not Quite Sure
|
Posted: Sun Dec 19, 2004 9:58 pm Post subject: |
|
|
papal_authority wrote: | I just edited my volume keys (never used them before) and it works great. I killed xbindkeys and edited my $HOME/.xbindkeys to look like this:
Code: | # Volume Up
"aumix -v +4 &"
m:0x0 + c:176
# Volume Down
"aumix -v -4 &"
m:0x0 + c:174 |
Note the & to background the tasks. Then I restarted xbindkeys (i.e. /usr/bin/xbindkeys &) and played with the volume keys while listening to XMMS. It worked perfectly. | You put that in .xbindkeysrc right? I just tried that and it didn't seem to do anything. |
|
Back to top |
|
|
papal_authority Veteran
Joined: 31 Mar 2004 Posts: 1823 Location: Canada
|
Posted: Sun Dec 19, 2004 10:18 pm Post subject: |
|
|
Yeah, in $HOME/.xbindkeysrc. It's owned by me and has permissions 0644 (as long as it's readable by you though, it should be okay). Maybe try using /usr/bin/aumix instead of just aumix in case it's a PATH problem. Then kill and restart xbindkeys. _________________ The free market gave me gonorrhea. |
|
Back to top |
|
|
|