schlock: sandbox + auto-launch via .desktop file

This commit is contained in:
Colin 2024-03-07 10:32:01 +00:00
parent 526a02bb73
commit 041ce0654e

View File

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