How to ignore keybindings if i am using certain app? #3891
-
I have problems using emacs because the keybindings are the same, then awesome responds to them too. How can this be fixed? |
Beta Was this translation helpful? Give feedback.
Answered by
loss-and-quick
Feb 6, 2024
Replies: 1 comment
-
In the end, here's the solution: local function toggle_keybindings(c)
if c.class == "Emacs" then
root.keys({})
else
root.keys(globalkeys)
end
end
client.connect_signal("focus", toggle_keybindings)
client.connect_signal("unfocus", function(c)
root.keys(globalkeys)
end) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
loss-and-quick
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the end, here's the solution: