Generalize and move configs
This commit is contained in:
parent
17f2a16f48
commit
ffb1b6d541
21 changed files with 73 additions and 64 deletions
10
modules/home/wms/sway/swaysleep/default.nix
Normal file
10
modules/home/wms/sway/swaysleep/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
(pkgs.writeScriptBin "swaysleep" ''
|
||||
swaylock & ${pkgs.swayidle}/bin/swayidle -w \
|
||||
timeout 1 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"; pkill -9 swayidle'
|
||||
'')
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue