talos: home: handle lid switch in sway

This commit is contained in:
Antoine Martin 2025-02-17 14:15:53 +01:00
parent 659aed60d7
commit a812afaf4a

View file

@ -109,6 +109,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;