Let hypridle handle screen lock before suspend

This commit is contained in:
SebastianStork 2025-02-26 22:06:03 +01:00
parent 148807589c
commit dc57acb9d8
6 changed files with 17 additions and 14 deletions

View file

@ -1,18 +1,12 @@
{ pkgs, lib, ... }:
{
imports = [ ../home.nix ];
home.stateVersion = "23.11";
myConfig.de.theme = "light";
wayland.windowManager.hyprland.settings.monitor = [
"eDP-1,1920x1080@60,0x0,1"
",preferred,auto,1,mirror,eDP-1"
];
home.packages = [
(lib.hiPrio (
pkgs.writeScriptBin "lock-suspend" "loginctl lock-session && sleep 0.5 && systemctl suspend"
))
];
}

View file

@ -3,7 +3,11 @@
imports = [ ../home.nix ];
home.stateVersion = "23.11";
myConfig.de.theme = "dark";
myConfig = {
de.theme = "dark";
hibernation.enable = true;
};
home.packages = [
pkgs.ffmpeg