talos: home: handle lid switch in sway

This commit is contained in:
Antoine Martin 2025-02-17 14:15:53 +01:00
parent 4a4e9cc30f
commit 76b89f8ea8

View file

@ -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;