1
0
Fork 0

i3lock -> xsecurelock

master
dump_stack() 2020-01-06 15:29:14 +00:00
parent de4b96d43b
commit ba7812e5ee
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
4 changed files with 5 additions and 5 deletions

View File

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

View File

@ -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")

View File

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

View File

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