i3lock -> xsecurelock
This commit is contained in:
parent
ebe2fb504e
commit
2732e21f01
@ -14,7 +14,7 @@ in {
|
||||
enable = true;
|
||||
|
||||
time = 5; # minutes
|
||||
locker = "${pkgs.i3lock}/bin/i3lock -n -c 000000";
|
||||
locker = "${pkgs.xsecurelock}/bin/xsecurelock";
|
||||
|
||||
notify = 10; # seconds
|
||||
notifier = "${pkgs.libnotify}/bin/notify-send \"Locking in 10 seconds\"";
|
||||
|
@ -52,7 +52,7 @@ notifySend expireTime shellCommand = spawn
|
||||
++ " \"$(" ++ shellCommand ++ ")\""
|
||||
|
||||
-- M - modMask, M1 - Alt, C - Control, S - Shift. Use xev.
|
||||
keysP = [ ("M-l", spawn "i3lock -n -c 000000")
|
||||
keysP = [ ("M-l", spawn "xsecurelock")
|
||||
, ("<Print>", spawn "escrotum -Cs")
|
||||
, ("<XF86MonBrightnessUp>", spawn "sudo light -A 3")
|
||||
, ("<XF86MonBrightnessDown>", spawn "sudo light -U 3")
|
||||
|
@ -118,7 +118,7 @@ in {
|
||||
ubuntu_font_family noto-fonts-emoji
|
||||
|
||||
# base x
|
||||
rofi xlibs.xmodmap i3lock unstable.kitty
|
||||
rofi xlibs.xmodmap xsecurelock unstable.kitty
|
||||
libnotify gtk_engines x2x evtest
|
||||
pulsemixer arc-theme xclip
|
||||
gnome3.dconf gnome3.dconf-editor gsettings-desktop-schemas gsettings-qt
|
||||
|
@ -30,11 +30,11 @@ in {
|
||||
services = {
|
||||
"force-lock-after-suspend" = {
|
||||
serviceConfig.User = "user";
|
||||
description = "Force i3lock after suspend";
|
||||
description = "Force xsecurelock after suspend";
|
||||
before = [ "suspend.target" "hibernate.target" "hybrid-sleep.target" ];
|
||||
wantedBy = [ "suspend.target" "hibernate.target" "hybrid-sleep.target" ];
|
||||
script = ''
|
||||
DISPLAY=:0 ${pkgs.i3lock}/bin/i3lock -n -c 000000
|
||||
DISPLAY=:0 ${pkgs.xsecurelock}/bin/xsecurelock
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user