I3-gaps config file not working on i3wm

Hello there!
Just upgraded from i3-gaps to community/i3wm, but two codes from i3-gaps is not working on the new version. The lines are the following:

bindsym $mod+Ctrl+Up gaps inner current set 0 gaps top current set 0
bindsym $mod+Ctrl+Down gaps inner current set 10 gaps top current set 2

When executing mod+Ctrl+Up, i am prompted with the error:

ERROR: Expected one of these tokens: 'current', 'all'
ERROR: Your command: [id="33554475"] gaps inner set 0 gaps top set  gaps top set 0
ERROR:                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR: Received ConfigureNotify for unknown window 0x00600000
ERROR: Received ConfigureNotify for unknown window 0x00600000
ERROR: Received ConfigureNotify for unknown window 0x00600008
ERROR: Received ConfigureNotify for unknown window 0x00600008
ERROR: Received ConfigureNotify for unknown window 0x0060000d
ERROR: Received ConfigureNotify for unknown window 0x0060000d
ERROR: Received ConfigureNotify for unknown window 0x00600012
ERROR: Received ConfigureNotify for unknown window 0x00600012
ERROR: Received ConfigureNotify for unknown window 0x00600012
ERROR: Received ConfigureNotify for unknown window 0x00600017
ERROR: Received ExposeEvent for unknown window 0x00600017
ERROR: Received ConfigureNotify for unknown window 0x00600017
ERROR: Expected one of these tokens: 'px', <end>
ERROR: Your command: gaps inner current set 0 gaps top current set 0
ERROR:                                        ^^^^^^^^^^^^^^^^^^^^^^

Am I missing something? My command on the error prompt seems to ignore the ‘current’ tag, no matter how many times I save/reload the config file.

This looks like multiple commands per keybinding; that means you probably have to use command chaining. Add a semicolon between those commands. Like so:

bindsym $mod+Ctrl+Up gaps inner current set 0 ; gaps top current set 0
bindsym $mod+Ctrl+Down gaps inner current set 10 ; gaps top current set 2
1 Like

Thanks, it worked! That was pretty simple lol

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.