Skip to content

Commit 8390186

Browse files
feat(niri): custom lid open/close events
1 parent 6afda91 commit 8390186

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nixos-modules/desktop/niri.kdl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,3 +661,8 @@ recent-windows {
661661
Mod+Shift+grave { previous-window filter="app-id"; }
662662
}
663663
}
664+
665+
switch-events {
666+
lid-close { spawn "notify-send \"Sleeping!\" && systemctl suspend-then-hibernate || systemctl suspend"; }
667+
lid-open { spawn "notify-send" "Welcome back!"; }
668+
}

0 commit comments

Comments
 (0)