Hello,

I am trying to emulate media keys in my keyboard by assigning a shortcut 
like Mod4 + a key in the Home block

The code its like this

awful.key({ modkey,}, "Delete", 
  function () awful.util.spawn_with_shell("xdotool key XF86AudioMute")  end 
),

But it didnt work. If I execute the command in a terminal, it works. If I 
asssign some other function to the same key combination, it works too.

I have tried with os.execute() and awful.util.spawn() as well, but no avail.

I also tried something like this that I saw in other post that explained 
that awesome was grabbing the key, so it needed a delay to give me time to 
release the key before xdotool was executed:

awful.key({ modkey,}, "Insert",
   function () awful.util.spawn_with_shell("sh -c 'sleep 0.5;xdotool key 
XF86AudioPlay")  end ),

And didnt work either, so I am out of ideas.
Any help will be greatly appreciated

This is the version of awesome I have
awesome v3.5.5 (Kansas City Shuffle)
 • Build: Apr 11 2014 09:36:33 for x86_64 by gcc version 4.8.2 (nobody@)
 • Compiled against Lua 5.2.3 (running with Lua 5.2)
 • D-Bus support: ✔



-- 
To unsubscribe, send mail to [email protected].

Reply via email to