Skip to content

Rebind Alt+Backspace to Ctrl+Backspace with keygrabber #3980

Answered by agzam
agzam asked this question in Q&A
Discussion options

You must be logged in to vote

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)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by agzam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant