Swayidle
This commit is contained in:
parent
b74916095a
commit
dda78546c9
3 changed files with 14 additions and 1 deletions
|
|
@ -140,6 +140,7 @@
|
|||
{
|
||||
home-manager.users.bertof.imports = [
|
||||
./modules/hm/hyprland.nix
|
||||
./modules/hm/swayidle.nix
|
||||
];
|
||||
}
|
||||
] ++ homeManagerModules ++ [
|
||||
|
|
@ -168,6 +169,7 @@
|
|||
{
|
||||
home-manager.users.bertof.imports = [
|
||||
./modules/hm/hyprland.nix
|
||||
./modules/hm/swayidle.nix
|
||||
];
|
||||
}
|
||||
] ++ homeManagerModules ++ [
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
|
||||
# wayland.windowManager.hyprland = { };
|
||||
|
||||
|
||||
xdg.configFile."hypr/hyprland.conf".text =
|
||||
let
|
||||
strPalette = pkgs.lib.nix-rice.palette.toRgbaShortHex pkgs.rice.colorPalette;
|
||||
|
|
|
|||
12
modules/hm/swayidle.nix
Normal file
12
modules/hm/swayidle.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ pkgs, ... }: {
|
||||
services.swayidle = {
|
||||
enable = true;
|
||||
events = [
|
||||
{ event = "before-sleep"; command = "${pkgs.way-lockscreen}/bin/way-lockscreen"; }
|
||||
{ event = "lock"; command = "${pkgs.way-lockscreen}/bin/way-lockscreen"; }
|
||||
];
|
||||
timeouts = [
|
||||
{ timeout = 60; command = "${pkgs.way-lockscreen}/bin/way-lockscreen"; }
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue