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

@ -1,7 +1,4 @@
{ pkgs, ... }:
{
imports = [
./prop-sway
./sleep-sway
];
imports = [ ./prop-sway ];
}

View file

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