-
OMG, I'm so stuck. Please, I beg you, someone show me how to properly rebind The problem I have is that Alt is still being recognized as "pressed" in the "on_press" handler, therefore simply emmiting Ctrl+BS (I think) is turning it into Ctl+Alt+BS, and that's obviously not what I want. But if I try to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hmmm, I had to throw some time warping 'magic', it looks like maybe it's working, but I need to watch it, it still might break in some weird way later. (awful.keygrabber
{:keybindings
[(awful.key
;; Alt+Backspace works just like on Mac
{:modifiers [:Mod1] :key :BackSpace
:on_press (fn []
(root.fake_input :key_release :Alt_R)
(gears.timer.weak_start_new
0.01
(fn []
(root.fake_input :key_release :BackSpace)
(root.fake_input :key_press :Control_L)
(root.fake_input :key_press :BackSpace)
(root.fake_input :key_release :BackSpace)
(root.fake_input :key_release :Control_L)
(root.fake_input :key_press :Alt_R))
false))})]
:stop_key :Mod1
:stop_event "release"
:export_keybindings true
:root_keybindings [(awful.key {:modifiers [:Mod1] :key :BackSpace})]}) |
Beta Was this translation helpful? Give feedback.
Hmmm, I had to throw some time warping 'magic', it looks like maybe it's working, but I need to watch it, it still might break in some weird way later.