Add back more functions from Sway into Niri, add a standard naming scheme

This commit is contained in:
Jimbo 2024-12-04 02:54:40 -05:00
parent ac4da6559d
commit 8d1271c017
18 changed files with 128 additions and 117 deletions

View 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'
'')
];
}