You are not logged in.
Hello guys,
I have the following keybindings on AwesomeWM but they only work if a have a terminal with focus. I already tried with the key code I got from xmodmap -pk
awful.key({}, "XF86TouchpadToggle", function () awful.util.spawn("toggleinput --name ETPS/2 Elantech Touchpad") end),
awful.key({}, "XF86AudioLowerVolume", function () awful.util.spawn("ponymix decrease 1") end),
awful.key({}, "XF86AudioRaiseVolume", function () awful.util.spawn("ponymix increase 1") end),
awful.key({}, "XF86AudioMute", function () awful.util.spawn("ponymix toggle") end),
awful.key({}, "XF86MonBrightnessDown", function () awful.util.spawn("xbacklight -dec 5%") end),
awful.key({}, "XF86MonBrightnessUp", function () awful.util.spawn("xbacklight -inc 5%") end),
awful.key({}, "XF86Calculator", function () awful.util.spawn_with_shell("bc") end),
Thanks for the help.
Last edited by Hugao (2017-01-18 00:02:37)
Offline
Does it have to be a terminal, or does any (focused) window do?
I'd say, awesome forgets to select the keys on the root window in case. Or do you maybe update the keymap after login? Does it work after restarting the awesome process?
Online
This doesn't directly answer your question, but even though I use Awesome as well, I instead use xbindkeys for the multimedia keys.
Offline
Does it have to be a terminal, or does any (focused) window do?
I'd say, awesome forgets to select the keys on the root window in case. Or do you maybe update the keymap after login? Does it work after restarting the awesome process?
Yes it works on any focused window and keeps the same behaviour after restart awesome.
I have this before start awesome.
setxkbmap pt
toggleinput --name ETPS/2 Elantech Touchpad
numlockx &
exec awesome
This doesn't directly answer your question, but even though I use Awesome as well, I instead use xbindkeys for the multimedia keys.
Thanks for the tip, I will try with Xbindkeys
Offline
Maybe you put this part of your keybindings in the bindings for clients and not in the global table?
Offline
Hey sorry for the time, I end up using Xbindkeys and it's working like a charm.
Offline