aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.config
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2025-01-19 13:25:58 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2025-01-19 13:25:58 +0300
commitcc362d3ad8f524eeb234638c5779e50324182567 (patch)
tree1022dd0a5484c8f49485d1749993d4fc9f49b672 /dotfiles/.config
parent63795b4bcbb72711e2f97f5f7390886b208e7f52 (diff)
downloadswayrice-cc362d3ad8f524eeb234638c5779e50324182567.tar.gz
swayrice-cc362d3ad8f524eeb234638c5779e50324182567.zip
niri: enable shadows
Diffstat (limited to 'dotfiles/.config')
-rw-r--r--dotfiles/.config/niri/config.kdl23
1 files changed, 23 insertions, 0 deletions
diff --git a/dotfiles/.config/niri/config.kdl b/dotfiles/.config/niri/config.kdl
index ec4fd69..5553ee2 100644
--- a/dotfiles/.config/niri/config.kdl
+++ b/dotfiles/.config/niri/config.kdl
@@ -206,6 +206,29 @@ layout {
inactive-gradient from="#252832" to="#676775" angle=45
}
+ // You can enable drop shadows for windows.
+ shadow {
+ // Uncomment the next line to enable shadows.
+ on
+
+ // draw-behind-window true
+
+ // You can change how shadows look. The values below are in logical
+ // pixels and match the CSS box-shadow properties.
+
+ // Softness controls the shadow blur radius.
+ softness 15
+
+ // Spread expands the shadow.
+ spread 6
+
+ // Offset moves the shadow relative to the window.
+ offset x=0 y=2
+
+ // You can also change the shadow color and opacity.
+ color "#000a"
+ }
+
// Struts shrink the area occupied by windows, similarly to layer-shell panels.
// You can think of them as a kind of outer gaps. They are set in logical pixels.
// Left and right struts will cause the next window to the side to always be visible.