Allow nop command without argument

fixes #1318
This commit is contained in:
Ingo Bürk 2015-03-25 17:50:06 +01:00
parent c0a0b99d86
commit e0332b6f07
2 changed files with 23 additions and 0 deletions

View File

@ -2011,6 +2011,27 @@ bindsym $mod+minus scratchpad show
bindsym mod4+s [title="^Sup ::"] scratchpad show bindsym mod4+s [title="^Sup ::"] scratchpad show
------------------------------------------------ ------------------------------------------------
=== Nop
There is a no operation command +nop+ which allows you to override default
behavior. This can be useful for, e.g., disabling a focus change on clicks with
the middle mouse button.
The optional +comment+ argument is ignored, but will be printed to the log file
for debugging purposes.
*Syntax*:
---------------
nop [<comment>]
---------------
*Example*:
----------------------------------------------
# Disable focus change for clicks on titlebars
# with the middle mouse button
bindsym button2 nop
----------------------------------------------
=== i3bar control === i3bar control
There are two options in the configuration of each i3bar instance that can be There are two options in the configuration of each i3bar instance that can be

View File

@ -353,6 +353,8 @@ state MODE:
state NOP: state NOP:
comment = string comment = string
-> call cmd_nop($comment) -> call cmd_nop($comment)
end
-> call cmd_nop(NULL)
state SCRATCHPAD: state SCRATCHPAD:
'show' 'show'