[openbox] Openbox and gnome-panel-screenshot

John Russell drjimmy42 at yahoo.com
Thu May 20 09:05:06 EDT 2004


If you have the hex value of the key from xev, which it looks like you
do, I think you can bind a key using that. 

e.g.	<keybind key="0x82">
	  <action name="Execute">
		<execute>rox</execute>
	  </action>
	</keybind>

The hex value you want is under keysym in the xev output.

John

On Thu, 2004-05-20 at 08:59 -0400, Richard Black wrote:
> &gt; &gt; Hi
> &gt; &gt;
> &gt; &gt; I am to set up openbox to execute gnome-panel-screenshot when I 
> press print
> &gt; &gt; screen and &quot;gnome-panel-screenshot --window&quot; when I hit 
> Alt print screen
> &gt; &gt; (i.e. like metacity does).  I have  tried adding following [and 
> several
> &gt; &gt; varients] to my config file:
> &gt; &gt;
> &gt; &gt; but neither works.  Any suggestions?
> &gt;
> &gt;Run xev and see what name it gives you when you press the key, that's 
> the
> &gt;name you want to put in. If it says something like NoSym you have to
> &gt;fiddle a bit with xmodmap.
> &gt;
> &gt
> 
> Got idea, but...
> 
> When I hit Alt-Print I got:
> 
> KeyPress event, serial 29, synthetic NO, window 0x5000001,
>     root 0x40, subw 0x0, time 89327762, (80,90), root:(140,465),
>     state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
>     XLookupString gives 0 bytes:  ""
> 
> KeyPress event, serial 29, synthetic NO, window 0x5000001,
>     root 0x40, subw 0x0, time 89329664, (80,90), root:(140,465),
>     state 0x8, keycode 111 (keysym 0xff15, Sys_Req), same_screen YES,
>     XLookupString gives 0 bytes:  ""
> 
> and for just Print, I got
> 
> KeyPress event, serial 24, synthetic NO, window 0x5000001,
>     root 0x40, subw 0x0, time 89309548, (524,100), root:(584,475),
>     state 0x0, keycode 111 (keysym 0xff61, Print), same_screen YES,
>     XLookupString gives 0 bytes:  ""
> 
> 
> Both of these cases should have triggered somethink with my previoius set 
> up...
> 
> thanks for your suggestion though
> 
> Richard
> 
> _________________________________________________________________
> MSN Premium: Up to 11 personalized e-mail addresses and 2 months FREE*   
> http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines




More information about the openbox mailing list