From de4ebd8519872b03e7854d99db3169d0a168658a Mon Sep 17 00:00:00 2001 From: buffet Date: Sat, 10 Feb 2024 17:41:20 +0100 Subject: [PATCH] feat: switch to swayfx and employ autotiling-rs --- hosts/alice/sway.nix | 5 ++++- users/buffet/sway.nix | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/hosts/alice/sway.nix b/hosts/alice/sway.nix index 7938ac7..a3c04ac 100644 --- a/hosts/alice/sway.nix +++ b/hosts/alice/sway.nix @@ -1,5 +1,8 @@ {pkgs, ...}: { - programs.sway.enable = true; + programs.sway = { + enable = true; + package = pkgs.swayfx.overrideAttrs (_: {passthru.providedSessions = ["sway"];}); + }; xdg.portal = { enable = true; diff --git a/users/buffet/sway.nix b/users/buffet/sway.nix index 6b9d47a..a73ccb9 100644 --- a/users/buffet/sway.nix +++ b/users/buffet/sway.nix @@ -8,6 +8,7 @@ in { home-manager.users.buffet = { wayland.windowManager.sway = { enable = true; + package = pkgs.swayfx.overrideAttrs (_: {passthru.providedSessions = ["sway"];}); systemd.enable = true; wrapperFeatures.gtk = true; @@ -182,6 +183,10 @@ in { extraConfig = '' for_window [title="."] title_format "" for_window [title="^oyster$"] floating enable + + corner_radius 8 + smart_corner_radius enable + shadows enable ''; }; @@ -206,5 +211,21 @@ in { ring-wrong-color = bright.white; }; }; + + systemd.user.services = { + autotile-rs = { + Unit = { + Description = "Autotiling for sway (and possibly i3)"; + }; + + Service = { + ExecStart = "${pkgs.autotiling-rs}/bin/autotiling-rs"; + }; + + Install = { + WantedBy = ["sway-session.target"]; + }; + }; + }; }; }