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

Closing a window doesn't work with alt F4 kill shortcut

asked 2014-10-27 12:26:43 +0000

wu gravatar image

Hi there I'm new to i3 trying to change my config file to the default shortcuts is used with KDE

here is what i doo

set $mod Mod4
set $alt Mod1

bindsym $mod+Shift+q kill
bindsym $alt+F4      kill

And now the interesting part $mod+Shift+q kill works but bindsym $alt+F4 kill doesn't.

Errorlog:

ERROR: Expected one of these tokens: 'window', 'client', <end>
ERROR: Your command: kill                      # kill focused window
ERROR:                                         ^^^^^^^^^^^^^^^^^^^^^
/run/user/1000/i3/errorlog.10202 (END)

no clue what to do

note: bindsym $alt+F2 exec dmenu_run works perfect

note: full config file is here : github.com/wuschLOR/.i3

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-10-27 21:48:53 +0000

cee gravatar image

You are not allowed to have a comment on the same line as your command.
Hence The Error:

 # kill focused window
edit flag offensive delete link more

Comments

oh i feel stupid right now .... it works without comments ty! Looking at my conifg I did that a lot but didn't got any error messages - strange

wu gravatar imagewu ( 2014-10-27 23:28:37 +0000 )edit

Same here, thanks for the fix!! WEIRD bc end-of-line comments are fine on other keybindings.

moodboom gravatar imagemoodboom ( 2015-10-03 14:54:28 +0000 )edit

Question Tools

Stats

Asked: 2014-10-27 12:26:43 +0000

Seen: 1,944 times

Last updated: Oct 27 '14