commit cc2efd22d660073fec9f1cc86750ef8b983e73f5
parent c9523f99d3ff5d2a3cc0ef78b1b811d49423f342
Author: Hannah Izzie Gesser <hannah@totient.eu>
Date: Tue, 4 Nov 2025 11:17:19 +0100
parent c9523f99d3ff5d2a3cc0ef78b1b811d49423f342
Author: Hannah Izzie Gesser <hannah@totient.eu>
Date: Tue, 4 Nov 2025 11:17:19 +0100
hm/swayr: Init
1 file changed, 31 insertions(+), 0 deletions(-)
diff --git a/config/home/void/programs/swayr.nix b/config/home/void/programs/swayr.nix @@ -0,0 +1,31 @@ +{ + config, + lib, + ... +}: + +{ + + config = { + + programs.swayr = { + enable = true; + extraConfig = '' + [format] + window_format = "{app_name} - {title} - Workspace: {workspace_name}\u0000icon\u001f{app_icon}" + ''; # We do this here because `settings` does weird string escapism shenanigans that break backslashes; '\\' -> '\\\\' + settings = { + menu = { + executable = "${config.programs.fuzzel.package}/bin/fuzzel"; + args = [ + "--dmenu" + "--lines=30" + "--prompt=Select Window: " + "--width=150" + ]; + }; + }; + systemd.enable = true; + }; + }; +}