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