home/fuji: change locker script for att_lock
This commit is contained in:
+5
-5
@@ -287,15 +287,15 @@ in
|
|||||||
LOCK_ARGS=""
|
LOCK_ARGS=""
|
||||||
for OUTPUT in $( ${inputs.att_wm.packages.${system}.default}/bin/att_wmctl state | ${lib.getExe pkgs.jq} -r '.outputs[].name')
|
for OUTPUT in $( ${inputs.att_wm.packages.${system}.default}/bin/att_wmctl state | ${lib.getExe pkgs.jq} -r '.outputs[].name')
|
||||||
do
|
do
|
||||||
TMP_FILE=$(${pkgs.coreutils}/bin/mktemp /tmp/.swaylock_ss_XXXXXX.png)
|
TMP_FILE=$(${pkgs.coreutils}/bin/mktemp /tmp/.swaylock_ss_XXXXXX.ppm)
|
||||||
${lib.getExe pkgs.grim} -t ppm -o $OUTPUT - | \
|
${lib.getExe pkgs.grim} -t ppm -o $OUTPUT - | \
|
||||||
${lib.getExe pkgs.ffmpeg} -y -loglevel 0 -i - -vframes 1 -vf "boxblur=10" "$TMP_FILE"
|
${lib.getExe pkgs.ffmpeg} -y -loglevel 0 -i - -vframes 1 -vf "boxblur=10" "$TMP_FILE"
|
||||||
LOCK_ARGS="$LOCK_ARGS --image $OUTPUT:$TMP_FILE"
|
|
||||||
ALL_IMGS="$ALL_IMGS $TMP_FILE"
|
ALL_IMGS="$ALL_IMGS $TMP_FILE"
|
||||||
done
|
done
|
||||||
${lib.getExe inputs.att_lock.packages.${system}.default} -i $ALL_IMGS
|
${lib.getExe inputs.att_lock.packages.${system}.default} -i $ALL_IMGS &
|
||||||
${pkgs.coreutils}/bin/shred $ALL_IMGS
|
${pkgs.coreutils}/bin/sleep 0.2
|
||||||
${pkgs.coreutils}/bin/rm $ALL_IMGS
|
${pkgs.coreutils}/bin/shred $ALL_IMGS &
|
||||||
|
${pkgs.coreutils}/bin/rm $ALL_IMGS &
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user