After upgrading i3, I see error messages when accidentally pressing keybinding X
When I press X, I get an error. I often press X by accident and don’t want to see that error. What can I do about it?
When I press X, I get an error. I often press X by accident and don’t want to see that error. What can I do about it?
Since commit http://code.stapelberg.de/git/i3/comm..., i3 will report errors in any keybinding. This deals with a very common case of mistakes, such as people configuring bindsym Mod1+x firefox
instead of bindsym Mod1+x exec firefox
or having typos in configured commands.
To disable error reporting for a particular binding, change it from this:
bindsym Mod1+x move absolute position center
to this:
bindsym Mod1+x exec --no-startup-id i3-msg move absolute position center >/dev/null 2>&1
This will send the command to i3 using the IPC interface and redirect any errors (or output) to /dev/null
.
Asked: 2012-08-07 06:34:38 +0000
Seen: 169 times
Last updated: Aug 07 '12