aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2023-12-27 21:51:42 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2023-12-27 21:51:42 +0400
commitc21805bf705bd36a6eb7f79039b759e9af79dfcb (patch)
treee24213b023c8129320daa782c8b0830ea334d519 /resources
parentbfc24182670a0b3e17f79d66474fd291b7110732 (diff)
downloadniri-c21805bf705bd36a6eb7f79039b759e9af79dfcb.tar.gz
niri-c21805bf705bd36a6eb7f79039b759e9af79dfcb.tar.bz2
niri-c21805bf705bd36a6eb7f79039b759e9af79dfcb.zip
layout: Refactor to support window decorations, add border and fullscreen backdrop
Windows are now wrapped in Tiles, which keep track of window-specific decorations. Particularly, I implemented a black fullscreen backdrop, which finally brings fullscreened windows smaller than the screen in line with how the Wayland protocol says they should look—centered in a black rectangle. I also implemented window borders, which are similar to the focus ring, but always visible (and hence affect the layout and sizing).
Diffstat (limited to 'resources')
-rw-r--r--resources/default-config.kdl11
1 files changed, 11 insertions, 0 deletions
diff --git a/resources/default-config.kdl b/resources/default-config.kdl
index a028488a..f2c567f3 100644
--- a/resources/default-config.kdl
+++ b/resources/default-config.kdl
@@ -89,6 +89,17 @@ focus-ring {
inactive-color 80 80 80 255
}
+// You can also add a border. It's similar to the focus ring, but always visible.
+border {
+ // The settings are the same as for the focus ring.
+ // If you enable the border, you probably want to disable the focus ring.
+ off
+
+ width 4
+ active-color 255 200 127 255
+ inactive-color 80 80 80 255
+}
+
cursor {
// Change the theme and size of the cursor as well as set the
// `XCURSOR_THEME` and `XCURSOR_SIZE` env variables.