add swaylock, swayidle

This commit is contained in:
Kabbone 2022-10-15 15:41:21 +02:00
parent 1382468de2
commit 059666fb3b
3 changed files with 18 additions and 0 deletions

View File

@ -128,6 +128,7 @@
#obs-studio # Recording/Live Streaming
];
file.".config/wall".source = ../modules/themes/wall.jpg;
file.".config/lockwall".source = ../modules/themes/lockwall.jpg;
pointerCursor = { # This will set cursor systemwide so applications can not choose their own
name = "Dracula-cursors";
package = pkgs.dracula-theme;

View File

@ -115,4 +115,21 @@
exec-once=${pkgs.blueman}/bin/blueman-applet
'';
};
programs.swaylock.settings = {
color = "000000";
image = "$HOME/.config/wall";
};
services.swayidle = {
enable = true;
events = [
{ event = "before-sleep"; command = "${pkgs.swaylock}/bin/swaylock"; }
{ event = "lock"; command = "${pkgs.swaylock}/bin/swaylock -fF"; }
{ event = "after-resume"; command = "${pkgs.hyprland}/bin/hyprctl dispatcher dpms on"; }
];
timeouts = [
{ timeout = 300; command = "${pkgs.swaylock}/bin/swaylock -fF"; }
{ timeout = 600; command = "${pkgs.hyprland}/bin/hyprctl dispatcher dpms off"; }
];
};
}

BIN
modules/themes/lockwall.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 KiB