mirror of
https://github.com/kmein/niveum
synced 2026-03-21 12:21:08 +01:00
i3: use i3lock
This commit is contained in:
@@ -5,11 +5,11 @@
|
|||||||
${pkgs.lightlocker}/bin/light-locker &
|
${pkgs.lightlocker}/bin/light-locker &
|
||||||
'';
|
'';
|
||||||
|
|
||||||
services.xserver.xautolock = {
|
services.xserver.xautolock = rec {
|
||||||
enable = true;
|
enable = true;
|
||||||
killer = "${pkgs.systemd}/bin/systemctl suspend";
|
killer = "${pkgs.systemd}/bin/systemctl suspend";
|
||||||
locker = "${pkgs.lightlocker}/bin/light-locker-command -l";
|
locker = "${pkgs.i3lock}/bin/i3lock";
|
||||||
nowlocker = "${pkgs.lightlocker}/bin/light-locker-command -l";
|
nowlocker = locker;
|
||||||
enableNotifier = true;
|
enableNotifier = true;
|
||||||
notifier = ''${pkgs.libnotify}/bin/notify-send -u normal -a xautolock "Locking soon" "The screen will lock in 10 seconds."'';
|
notifier = ''${pkgs.libnotify}/bin/notify-send -u normal -a xautolock "Locking soon" "The screen will lock in 10 seconds."'';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user