this post was submitted on 15 Jan 2024
13 points (84.2% liked)

Linux

48157 readers
859 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
13
How I can enable i3-gaps? (lemmy.dbzer0.com)
submitted 10 months ago* (last edited 10 months ago) by Xirup@lemmy.dbzer0.com to c/linux@lemmy.ml
 

I started to use i3 and I love it so far, and then I tried to enable i3-gaps on i3 but when I tried to enable it I receive this error I don't understand at all...

ERROR: CONFIG: (in file /home/$USER/.config/i3/config)
ERROR: CONFIG: Line 214: # Gaps
ERROR: CONFIG: Line 215: for_window [class="^.*"] border pixel 2
ERROR: CONFIG: Line 216: gaps inner 10
ERROR: CONFIG:           ^^^^^^^^^^^^^
ERROR: CONFIG: Line 217: gaps outer 10
ERROR: CONFIG: Line 218: 
ERROR: CONFIG: Expected one of these tokens: <end>, '#', 'set ', 'set   ', 'set_from_resource', 'include', 'bindsym', 'bindcode', 'bind', 'bar', 'font', 'mode', 'floating_minimum_size', 'floating_maximum_size', 'floating_modifier', 'default_orientation', 'workspace_layout', 'default_border', 'new_window', 'default_floating_border', 'new_float', 'hide_edge_borders', 'for_window', 'assign', 'no_focus', 'focus_follows_mouse', 'mouse_warping', 'focus_wrapping', 'force_focus_wrapping', 'force_xinerama', 'force-xinerama', 'disable_randr15', 'disable-randr15', 'workspace_auto_back_and_forth', 'fake_outputs', 'fake-outputs', 'force_display_urgency_hint', 'focus_on_window_activation', 'title_align', 'show_marks', 'workspace', 'ipc_socket', 'ipc-socket', 'ipc_kill_timeout', 'restart_state', 'popup_during_fullscreen', 'exec_always', 'exec', 'client.background', 'client.focused_inactive', 'client.focused', 'client.unfocused', 'client.urgent', 'client.placeholder'
ERROR: CONFIG: (in file /home/$USER/.config/i3/config)
ERROR: CONFIG: Line 215: for_window [class="^.*"] border pixel 2
ERROR: CONFIG: Line 216: gaps inner 10
ERROR: CONFIG: Line 217: gaps outer 10
ERROR: CONFIG:           ^^^^^^^^^^^^^
ERROR: CONFIG: Line 218: 
ERROR: FYI: You are using i3 version 4.20.1 (2021-11-03)

According to Debian i3 wiki, you just need to add 'gaps inner 10' to your config file to make it work, but I do exactly that and it didn't work, I receive the same exact message.

top 5 comments
sorted by: hot top controversial new old
[–] madmaurice@discuss.tchncs.de 24 points 10 months ago* (last edited 10 months ago)

Your i3 is too old. Perhaps your distro's repository has a package called "i3-gaps" which was the former fork that implemented this feature. i3-gaps was merged back into i3 in the meantime.

Since i3 4.22, you can configure window gaps.

https://i3wm.org/docs/userguide.html#gaps

[–] crunchymunchytoast@lemmy.world 6 points 10 months ago (1 children)

It says at the bottom you're using a version built in Nov 2021, you might just need to update to the latest release (latest Arch release is 4.23-1, built 10-29-2023).

If the version in your repos is that out of date though (you didn't state your distro so there's no telling offhand), your best bet may to be to build it from source and install it.

[–] Xirup@lemmy.dbzer0.com 6 points 10 months ago* (last edited 10 months ago)

Fuck I'm so blind, thanks...

I'm using KDE Neon, that uses Ubuntu LTS so yeah... It's obvious that i'm using a very outdated i3 version.

[–] OneRedFox@beehaw.org 3 points 10 months ago

In regular i3, that feature was added in version 4.22. You should use the i3-gaps fork on your distro if a package for it is available.

[–] lemmy_user_838586@lemmy.ml 2 points 10 months ago

If I'm reading the manual right (I don't use i3), you're missing 'px' on end of your lines, like so:

gaps inner 10px gaps outer 10px

https://i3wm.org/docs/userguide.html#gaps

Its weird that its not consistently needed though, for the workspace and modifying existing gaps in real time, it looks like the postfix 'px' isn't needed.