Move to proper systemctl suspend for sleep, update flake

This commit is contained in:
Jimbo 2024-12-25 02:47:12 -05:00
parent 95f498528d
commit 2d7383076a
8 changed files with 4 additions and 658 deletions

View file

@ -5,7 +5,6 @@
./hotkeys
./inputs
./outputs
./programs
./rules
./theme
];

View file

@ -1,4 +0,0 @@
{ pkgs, ... }:
{
imports = [ ./sleep-niri ];
}

View file

@ -1,10 +0,0 @@
{ pkgs, config, ... }:
{
home.packages = with pkgs; [
(pkgs.writeScriptBin "sleep-niri" ''
swaylock & ${pkgs.swayidle}/bin/swayidle -w \
timeout 1 'niri msg action power-off-monitors' \
resume 'niri msg action power-on-monitors; pkill -9 swayidle'
'')
];
}