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 2014-07-11 22:21:04 +0000

tigrezno gravatar image

updated 2014-07-11 22:21:58 +0000

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.

edit retag flag offensive reopen merge delete

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 2014-07-11 22:25:57 +0000

Michael gravatar image
bindsym [key] nop
edit flag offensive delete link more

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 ( 2014-07-11 23:04:50 +0000 )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 ( 2014-07-12 10:22:03 +0000 )edit

that worked, thanks!

tigrezno gravatar imagetigrezno ( 2014-07-12 13:46:54 +0000 )edit

Question Tools

Stats

Asked: 2014-07-11 22:21:04 +0000

Seen: 57 times

Last updated: Jul 11 '14