schlock: sandbox + auto-launch via .desktop file
This commit is contained in:
parent
526a02bb73
commit
041ce0654e
|
@ -10,12 +10,14 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
sane.programs.schlock = {
|
sane.programs.schlock = {
|
||||||
|
sandbox.method = "bwrap";
|
||||||
|
sandbox.whitelistWayland = true;
|
||||||
|
|
||||||
secrets.".config/schlock/schlock.pin" = ../../../secrets/common/schlock.pin.bin;
|
secrets.".config/schlock/schlock.pin" = ../../../secrets/common/schlock.pin.bin;
|
||||||
};
|
};
|
||||||
# TODO: needs access to schlock.pin inside of the swayidle sandbox
|
|
||||||
# sane.programs.swayidle.config = lib.mkIf cfg.enabled {
|
sane.programs.swayidle.config = lib.mkIf cfg.enabled {
|
||||||
# actions.schlock.command = "schlock -p ~/.config/schlock/schlock.pin";
|
actions.schlock.desktop = "schlock.desktop";
|
||||||
# # actions.swaylock.desktop = "schlock.desktop"; #< TODO: make a .desktop file
|
actions.schlock.delay = 1800;
|
||||||
# actions.schlock.delay = 40; #< TODO: tune
|
};
|
||||||
# };
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user