From 76b89f8ea8d76eb721a317c0b7dbbf0cbd89bad6 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 17 Feb 2025 14:15:53 +0100 Subject: [PATCH] talos: home: handle lid switch in sway --- hosts/talos/home.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/talos/home.nix b/hosts/talos/home.nix index 0cfe1a7..d593838 100644 --- a/hosts/talos/home.nix +++ b/hosts/talos/home.nix @@ -106,6 +106,11 @@ in { {command = "swayidle -w idlehint 1 before-sleep \"${lock}\"";} ]; }; + + extraConfig = '' + bindswitch --reload --locked lid:off output eDP-1 enable; + bindswitch --reload --locked lid:on output eDP-1 disable; + ''; }; programs = { fuzzel.enable = true;