FIX : i3lock after remove yubikey

This commit is contained in:
Alexandre LUCAZEAU 2023-02-10 11:31:17 +01:00
parent 0e52ad26ca
commit 1906ea3e11
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@
};
udev.extraRules = ''
ACTION=="remove", ENV{ID_BUS}=="usb", ENV{ID_VENDOR_ID}=="1050", ENV{ID_MODEL_ID}=="0407", RUN+="${pkgs.i3lock}/bin/i3lock -i /home/alexandre/images/coffee_time.png";
ACTION=="remove", ENV{ID_VENDOR_ID}=="1050", ENV{ID_MODEL_ID}=="0407", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/alexandre/.Xauthority" RUN+="${pkgs.sudo}/bin/sudo -u alexandre ${pkgs.xautolock}/bin/xautolock -locknow"
'';
};
}