You are not logged in.
Pages: 1
Have been trying to map a display locker (slock or xlock) onto either a key or button.
Yesterday it seemed to work with this .xbindkeysrc config (below), but now it won't??
I can't seem to map any command onto anything, the volume/mute buttons still work though, interestingly.
xbindkeys only occasionally registers the button I was trying to use (thinkvantage, lenovo x220), however, I don't think that is the problem as volume/mute buttons also often fail to register but still work.
Have tried substituting xterm for rxvt or using "xlock&" instead but no luck.
Any suggestions would be great,
Thanks
-------------------------------------------------------------------------------------------------------------
GNU nano 2.2.6 File: .xbindkeysrc Modified
# Increase volume
"amixer set Master playback 3+"
m:0x0 + c:123
XF86AudioRaiseVolume
# Decrease volume
"amixer set Master playback 3-"
m:0x0 + c:122
XF86AudioLowerVolume
# Toggle mute
"amixer set Master toggle"
m:0x0 + c:121
XF86AudioMute
# Lock screen
"rxvt -e slock"
m:0x0 + c:156
XF86Launch1
Last edited by fionnan (2012-03-21 16:50:39)
Offline
I generally don't rely on xbindkeys - not that it is unreliable, I just tend to use WM tools - so I am not as familiar with the syntax.
What WM/DE are you using? Have you tried mapping the keys through that?
EDIT: Also, are you using xev to verify the keycodes?
Last edited by Trilby (2012-03-21 00:02:41)
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
I'm using xmonad, going to try to use that to launch xlock/slock instead. thanks for the suggestion.
xev registers everything, unlike xkeybindings, which might but sometimes says it isn't.
cheers
Offline
The only quirk with Xmonad is to to use the raw keycode. Some examples from my Xmonad.hs
((0, 0x1008ff11),spawn "amixer set Master 4%-"),
((0, 0x1008ff13),spawn "amixer set Master 4%+"),
((0, 0x1008ff12),spawn "amixer set Master toggle"),
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
I use xbindkeys so that I don't have to change things if I switch WM (though I've been using scrotwm so long now, that might change).
I sometimes find that if I mess around with it too much it stops working and a reboot (or restart of X probably, I've not tried just that) fixes it. So if you haven't restarted, try that. If you have, you may be better off following the WM route as suggested.
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
Went for xmonad route in the end.
Thanks for the help!
Offline
Pages: 1