diff options
| author | Leander Scherer <leander@schererleander.de> | 2026-03-16 21:51:08 +0100 |
|---|---|---|
| committer | Leander Scherer <leander@schererleander.de> | 2026-03-16 21:51:08 +0100 |
| commit | a0d82b0b575dcdc9123ec1e6e6ece38bcdfe22de (patch) | |
| tree | c7d42c6ab33c705b8d93c1827e3e2472cab4bf35 | |
| parent | 7401affec3f050d42f5e72e4a8542c98a59b19aa (diff) | |
feat(sway): remove tuigreet, setup vrr and hdr, tray bar
| -rw-r--r-- | modules/system/sway.nix | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/modules/system/sway.nix b/modules/system/sway.nix index d89847c..501c8d5 100644 --- a/modules/system/sway.nix +++ b/modules/system/sway.nix @@ -13,19 +13,19 @@ ]; }; - services.greetd = { - enable = true; - settings = { - default_session = { - command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd sway"; - user = "greeter"; - }; - }; + environment.sessionVariables = { + WLR_RENDERER = "vulkan"; }; }; flake.modules.homeManager.sway = { lib, pkgs, ... }: + let + wallpaper = pkgs.fetchurl { + url = "https://cloud.schererleander.de/s/BgqELb7xBXna4iX/download"; + sha256 = "0r9jcsn188yygnp6i8x03h75hqwd5g79f07lym165xd33xhgls5x"; + }; + in { wayland.windowManager.sway = { enable = true; @@ -42,7 +42,11 @@ output = { DP-1 = { - resolution = "2160x1440@240Hz"; + resolution = "2560x1440@279.961HZ"; + render_bit_depth = "10"; + adaptive_sync = "true"; + hdr = "on"; + bg = "${wallpaper} fill"; }; }; @@ -55,6 +59,13 @@ border = 0; }; + bars = [ + { + statusCommand = "${pkgs.i3status}/bin/i3status"; + trayOutput = "DP-1"; + } + ]; + keybindings = lib.mkOptionDefault { "XF86AudioPlay" = "exec ${pkgs.playerctl}/bin/playerctl play-pause"; "XF86AudioPrev" = "exec ${pkgs.playerctl}/bin/playerctl previous"; @@ -68,5 +79,10 @@ defaultWorkspace = "workspace number 1"; }; }; + + home.sessionVariables = { + WLR_RENDERER = "vulkan"; + }; + }; } |
