The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Disabling a key binding? [closed]

asked Jul 11 '14

tigrezno gravatar image

updated Jul 11 '14

I want to disable some keys because if the bindsym doesn't exists, the key is sent to the focused program (using the "win" key with nano for example).

My solution is ugly but works: bindsym [key] exec --no-startup-id :

Do you know of a better solution for this?

I'm looking for a "noop" style command that doesn't involve executing a shell.

Closed for the following reason the question is answered, right answer was accepted by tigrezno
close date 2014-07-12 13:51:43.650899

1 answer

Sort by » oldest newest most voted
0

answered Jul 11 '14

Michael gravatar image
bindsym [key] nop

Comments

mmm it doesn't seems to work in 4.8: ERROR: Expected one of these tokens: <string> ERROR: Your command: nop

tigrezno gravatar imagetigrezno (Jul 11 '14)edit
1

don't ask me why, but the nop command needs a string as a first argument, so just type something like: `bindsym [key] nop foo`

vandannen gravatar imagevandannen (Jul 12 '14)edit

that worked, thanks!

tigrezno gravatar imagetigrezno (Jul 12 '14)edit

Question Tools

Stats

Asked: Jul 11 '14

Seen: 57 times

Last updated: Jul 11 '14