Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Hotkeys or Something???
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
codedmart
l33t
l33t


Joined: 18 Nov 2003
Posts: 647
Location: Not Quite Sure

PostPosted: Sun Dec 19, 2004 7:02 pm    Post subject: Hotkeys or Something??? Reply with quote

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
View user's profile Send private message
papal_authority
Veteran
Veteran


Joined: 31 Mar 2004
Posts: 1823
Location: Canada

PostPosted: Sun Dec 19, 2004 7:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
codedmart
l33t
l33t


Joined: 18 Nov 2003
Posts: 647
Location: Not Quite Sure

PostPosted: Sun Dec 19, 2004 7:35 pm    Post subject: Reply with quote

I don't use KDE and I just want to mainly get the volume buttons working so thanks.
Back to top
View user's profile Send private message
codedmart
l33t
l33t


Joined: 18 Nov 2003
Posts: 647
Location: Not Quite Sure

PostPosted: Sun Dec 19, 2004 8:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
papal_authority
Veteran
Veteran


Joined: 31 Mar 2004
Posts: 1823
Location: Canada

PostPosted: Sun Dec 19, 2004 9:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
codedmart
l33t
l33t


Joined: 18 Nov 2003
Posts: 647
Location: Not Quite Sure

PostPosted: Sun Dec 19, 2004 9:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
papal_authority
Veteran
Veteran


Joined: 31 Mar 2004
Posts: 1823
Location: Canada

PostPosted: Sun Dec 19, 2004 10:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum