Skip to content

Commit

Permalink
smart gapps bettar
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Oct 29, 2024
1 parent a1ca975 commit 8359aa2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
19 changes: 10 additions & 9 deletions pages/Configuring/Workspace-Rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,18 @@ workspace = w[tg1-4], shadow:false

#### Smart gaps

To replicate "smart gaps" / "no gaps when only" from other WMs/Compositors, use
To replicate "smart gaps" / "no gaps when only" from other WMs/Compositors, use this bad boy:

```ini
workspace = w[t1], gapsout:0, gapsin:0, border: 0, rounding:0
workspace = w[tg1], gapsout:0, gapsin:0, border: 0, rounding:0
```

If you want no gaps when a window is maximised (but not fullscreen), add this rule as well

```ini
workspace = f[1], gapsout:0, gapsin:0, border: 0, rounding:0
workspace = w[t1], gapsout:0, gapsin:0
workspace = w[tg1], gapsout:0, gapsin:0
workspace = f[1], gapsout:0, gapsin:0
windowrulev2 = bordersize 0, floating:0, onworkspace:w[t1]
windowrulev2 = rounding 0, floating:0, onworkspace:w[t1]
windowrulev2 = bordersize 0, floating:0, onworkspace:w[tg1]
windowrulev2 = rounding 0, floating:0, onworkspace:w[tg1]
windowrulev2 = bordersize 0, floating:0, onworkspace:f[1]
windowrulev2 = rounding 0, floating:0, onworkspace:f[1]
```

## Rules
Expand Down
4 changes: 4 additions & 0 deletions pages/FAQ/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,3 +426,7 @@ If you are not using any -git packages, this is a mistake in your distro's packa
### My cursor is a hyprland icon?
This means you have no hyprcursor theme installed, and hyprland failed to find an XCursor theme as well. Install a cursor theme.
### Smart gaps please?
[Here](../Configuring/Workspace-Rules/#smart-gaps).

0 comments on commit 8359aa2

Please sign in to comment.