Downgraded swaylock-effects
This commit is contained in:
parent
55a83951f0
commit
45f3ec4d53
1 changed files with 13 additions and 4 deletions
|
@ -1,7 +1,16 @@
|
||||||
{pkgs, ...}: {
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
services.swayidle = let
|
services.swayidle = let
|
||||||
|
# Downgraded due to
|
||||||
|
# https://github.com/mortie/swaylock-effects/issues/95
|
||||||
|
swaylock-effects = pkgs.swaylock-effects.overrideAttrs (_: {
|
||||||
|
version = "1.6-3";
|
||||||
|
});
|
||||||
swaylockWithArgs = pkgs.writeScriptBin "swaylockWithArgs" ''
|
swaylockWithArgs = pkgs.writeScriptBin "swaylockWithArgs" ''
|
||||||
${pkgs.swaylock-effects}/bin/swaylock \
|
${swaylock-effects}/bin/swaylock \
|
||||||
--daemonize \
|
--daemonize \
|
||||||
--screenshots \
|
--screenshots \
|
||||||
--clock \
|
--clock \
|
||||||
|
@ -18,7 +27,7 @@
|
||||||
--grace 2 \
|
--grace 2 \
|
||||||
--fade-in 0.2
|
--fade-in 0.2
|
||||||
'';
|
'';
|
||||||
swaylockCommand = "${swaylockWithArgs}/bin/swaylockWithArgs";
|
swaylockCommand = lib.traceVal "${swaylockWithArgs}/bin/swaylockWithArgs";
|
||||||
in {
|
in {
|
||||||
enable = true;
|
enable = true;
|
||||||
events = [
|
events = [
|
||||||
|
@ -28,7 +37,7 @@
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
event = "lock";
|
event = "lock";
|
||||||
command = swaylockCommand;
|
command = "lock";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
timeouts = [
|
timeouts = [
|
||||||
|
|
Loading…
Add table
Reference in a new issue