Add back more functions from Sway into Niri, add a standard naming scheme
This commit is contained in:
parent
ac4da6559d
commit
8d1271c017
18 changed files with 128 additions and 117 deletions
10
modules/home/wms/niri/programs/sleep-niri/default.nix
Normal file
10
modules/home/wms/niri/programs/sleep-niri/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ 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'
|
||||
'')
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue