add swaylock, swayidle
This commit is contained in:
parent
1382468de2
commit
059666fb3b
@ -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;
|
||||
|
@ -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
BIN
modules/themes/lockwall.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 285 KiB |
Loading…
Reference in New Issue
Block a user