diff --git a/modules/desktop/img/background.png b/modules/desktop/img/background.png new file mode 100644 index 0000000..eff8fc4 Binary files /dev/null and b/modules/desktop/img/background.png differ diff --git a/modules/desktop/img/lockscreen.png b/modules/desktop/img/lockscreen.png new file mode 100644 index 0000000..d28c7ae Binary files /dev/null and b/modules/desktop/img/lockscreen.png differ diff --git a/modules/desktop/sway.nix b/modules/desktop/sway.nix index 444bd58..7168eaa 100644 --- a/modules/desktop/sway.nix +++ b/modules/desktop/sway.nix @@ -20,8 +20,12 @@ dwt = "disabled"; # don't disable-while-typing }; "type:pointer" = { - # pointer_accel = "0.8"; # pointer SPEED, not acceleration - # accel_profile = "flat"; + pointer_accel = "0.1"; # pointer SPEED, not acceleration + }; + }; + output = { + "*" = { + bg = "${./img/background.png} fill"; }; }; modifier = "Mod4"; # super @@ -47,6 +51,9 @@ "XF86AudioNext" = "exec 'playerctl next'"; "XF86AudioPrev" = "exec 'playerctl previous'"; }; + focus = { + followMouse = "no"; + }; terminal = "alacritty"; workspaceAutoBackAndForth = true; bars = [{ command = "${pkgs.waybar}/bin/waybar"; }]; @@ -95,9 +102,16 @@ }; }; + programs.swaylock = { + enable = true; + settings = { + image = "${./img/lockscreen.png}"; + }; + }; + services.swayidle = let - lock = "${pkgs.swaylock}/bin/swaylock --daemonize --color=333333"; + lock = "${pkgs.swaylock}/bin/swaylock --daemonize"; in { enable = true;