<div dir="ltr">Hi,<br><br>I must be honest , I don't use the keybind functionality of openbox with non standard buttons ( like XF86AudioRaiseVolume,ChnageTouchPadStatus and XF86AudioMute).<br><br>I use xbindkey for that stuff.<br>
You might want to try it, first of all you need to find the keycode of you button,<br>for that use : xev <br>then create a file named .xbindkeysrc in your ~ dir, and add those lines:<br><br>"xset dpms force off"<br>
m:0x0 + c:110<br> <br>* change 110 with the keycode you got from xev .<br>then start xbindkeys and see if it works.<br><br><br>Mark.<br><br><div class="gmail_quote">On Fri, Dec 31, 2010 at 10:22 PM, Jorge Almeida <span dir="ltr"><<a href="mailto:jjalmeida@gmail.com">jjalmeida@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Fri, Dec 31, 2010 at 7:42 PM, Mark Bloch <<a href="mailto:mark.bl@gmail.com">mark.bl@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I did a test, I used this :<br>
> <keybind key="C-l"><br>
> <keybind key="s"><br>
> <action name="Execute"><br>
> <command>xset dpms force off</command><br>
> </action><br>
> </keybind><br>
> </keybind><br>
><br>
><br>
> and it works fine. can you provide additional information ( openbox version<br>
> ) , did you try some other key?( other than 0xdf ).<br>
><br>
<br>
</div>I just tried your suggestion ant it works fine. I think I had tried<br>
other combination (Ctrl-something) and it didn't work. Maybe there is<br>
some problem with non standard keys. I currently have a working<br>
solution:<br>
<div class="im"><br>
<keybind key="0xdf"><br>
<action name="Execute"><br>
</div> <execute>sh -c 'sleep 0.5;xset dpms force off'</execute><br>
</action><br>
</keybind><br>
<br>
Of course, sleeping, not to mention calling a shell, is sub-optimal.<br>
<br>
openbox version is 3.4.11.2-2<br>
<br>
The distro is Archlinux and I keep everything up to date.<br>
<br>
Thanks,<br>
<div><div></div><div class="h5"><br>
Jorge<br>
_______________________________________________<br>
openbox mailing list<br>
<a href="mailto:openbox@icculus.org">openbox@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/openbox" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br>
</div></div></blockquote></div><br></div>