Re: [dev] Multimedia keys doesn't send proper keycodes

2012-04-20 Thread Bjartur Thorlacius
On Fri, 20 Apr 2012 21:38:01 -, Carlos Torres wrote: the wonders of execve At least it doesn't try to interpret anything in the filename but control characters. -- -,Bjartur

Re: [dev] Multimedia keys doesn't send proper keycodes

2012-04-20 Thread Carlos Torres
the wonders of execve On Wed, Apr 18, 2012 at 7:52 AM, Alexander Tanyukevich wrote: >> You need to separate the argument from the actual command like so: >> >> static const char *volinccmd[] = {"/home/olek/.bin/pavolume", "increase", >> NULL}; >> >> Otherwise it would try to exec a script named

Re: [dev] Multimedia keys doesn't send proper keycodes

2012-04-18 Thread Alexander Tanyukevich
> You need to separate the argument from the actual command like so: > > static const char *volinccmd[] = {"/home/olek/.bin/pavolume", "increase", > NULL}; > > Otherwise it would try to exec a script named "pavolume increase" in the > folder "/home/olek/.bin" without any arguments. Mea culpa :) T

Re: [dev] Multimedia keys doesn't send proper keycodes

2012-04-18 Thread Eckehard Berns
On Wed, Apr 18, 2012 at 11:06:01AM +0200, Alexander Tanyukevich wrote: > OK. But why my bindings in config.h doesn't work: > [...] > static const char *volinccmd[] = {"/home/olek/.bin/pavolume increase", NULL}; > [...] You need to separate the argument from the actual command like so: static cons

Re: [dev] Multimedia keys doesn't send proper keycodes

2012-04-18 Thread Martti Kühne
On Wed, Apr 18, 2012 at 11:06:01AM +0200, Alexander Tanyukevich wrote: > >> or use xbindkeys to bind those keys, e.g. > > > > Or speckeysd. > > OK. But why my bindings in config.h doesn't work: > > #include "X11/XF86keysym.h" > ... > static const char *volinccmd[] = {"/home/olek/.bin/pavolume inc

Re: [dev] Multimedia keys doesn't send proper keycodes

2012-04-18 Thread Alexander Tanyukevich
>> or use xbindkeys to bind those keys, e.g. > > Or speckeysd. OK. But why my bindings in config.h doesn't work: #include "X11/XF86keysym.h" ... static const char *volinccmd[] = {"/home/olek/.bin/pavolume increase", NULL}; static const char *voldeccmd[] = {"/home/olek/.bin/pavolume decrease", NUL

Re: [dev] Multimedia keys doesn't send proper keycodes

2012-04-17 Thread Bjartur Thorlacius
On Tue, 17 Apr 2012 19:41:33 -, Arian Kuschki wrote: or use xbindkeys to bind those keys, e.g. Or speckeysd. -- -,Bjartur

Re: [dev] Multimedia keys doesn't send proper keycodes

2012-04-17 Thread Arian Kuschki
On 17 April 2012 20:17, Ivan Kanakarakis wrote: > > > On 17 April 2012 21:16, Ivan Kanakarakis wrote: > >> try adding >> >> #include >> >> before the keys array >> >> > > or use the keycode directly, instead of the keysymbol > or use xbindkeys to bind those keys, e.g. a ~$ cat .xbindkeysr

Re: [dev] Multimedia keys doesn't send proper keycodes

2012-04-17 Thread Ivan Kanakarakis
On 17 April 2012 21:16, Ivan Kanakarakis wrote: > try adding > > #include > > before the keys array > > or use the keycode directly, instead of the keysymbol > On 17 April 2012 17:34, Alexander Tanyukevich wrote: > >> > >> > I'm pretty sure the commands are executed. Maybe the error is

Re: [dev] Multimedia keys doesn't send proper keycodes

2012-04-17 Thread Ivan Kanakarakis
try adding #include before the keys array On 17 April 2012 17:34, Alexander Tanyukevich wrote: > > > > I'm pretty sure the commands are executed. Maybe the error is in the > > commands. Have you checked your ~/.xsession-errors (or similar log)? > > You were right: > After removing them fro

Re: [dev] Multimedia keys doesn't send proper keycodes

2012-04-17 Thread Alexander Tanyukevich
> > I'm pretty sure the commands are executed. Maybe the error is in the > commands. Have you checked your ~/.xsession-errors (or similar log)? You were right: After removing them from DWM config keycodes are appeared. Thank you for help. -- Alexander Tanyukevich atanyukev...@gmail.com

Re: [dev] Multimedia keys doesn't send proper keycodes

2012-04-17 Thread Eckehard Berns
On Tue, Apr 17, 2012 at 04:22:25PM +0200, Alexander Tanyukevich wrote: > > The NotifyGrab seems to suggest that there already is an X client that > > grabs that key. Do you have some sort of audio mixer running that might > > grab those keys already? > > They are in dwm config: > {0,

Re: [dev] Multimedia keys doesn't send proper keycodes

2012-04-17 Thread Alexander Tanyukevich
> The NotifyGrab seems to suggest that there already is an X client that > grabs that key. Do you have some sort of audio mixer running that might > grab those keys already? > > -- > Eckehard Berns > They are in dwm config: {0, XF86XK_AudioRaiseVolume, spawn, {.

Re: [dev] Multimedia keys doesn't send proper keycodes

2012-04-17 Thread Eckehard Berns
On Tue, Apr 17, 2012 at 03:52:31PM +0200, Alexander Tanyukevich wrote: > I wanted to bind my XF86AudioLowerVolume XF86AudioRaiseVolume > XF86AudioMute buttons. Bu I was surprised, when I saw that xev, is not > able to understand those buttons. xev output: > > f.e.mute button under dwm: > > Mappin

[dev] Multimedia keys doesn't send proper keycodes

2012-04-17 Thread Alexander Tanyukevich
Hi. I have a problem with keyboard and X configuration and I know that it's not proper mailing list, but I have no idea howto google it or something like that: I wanted to bind my XF86AudioLowerVolume XF86AudioRaiseVolume XF86AudioMute buttons. Bu I was surprised, when I saw that xev, is not able