commit 50e78038e7536200a2a2b9ae1a3aca3bcbf10df6
parent c2ce3d35f5fa726ef9be6e882a87bcfb8bbb259b
Author: Francesco Saccone <francesco@francescosaccone.com>
Date: Sun, 6 Apr 2025 18:53:44 +0200
refactor: shorten 'unfocused' definition by using a rec
Signed-off-by: Francesco Saccone <francesco@francescosaccone.com>
Diffstat:
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/modules/home/sway/default.nix b/modules/home/sway/default.nix
@@ -75,7 +75,7 @@
output."*".background = "${./background.png} fill";
- colors = {
+ colors = rec {
background = colors.transparent;
focused = {
background = colors.white;
@@ -91,13 +91,7 @@
indicator = colors.background;
text = colors.white;
};
- unfocused = {
- background = colors.background;
- border = colors.background;
- childBorder = colors.background;
- indicator = colors.background;
- text = colors.white;
- };
+ unfocused = focusedInactive;
urgent = {
background = colors.background;
border = colors.red;