From 869ca2255e771d674f40f240509d0afc4287908d Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sun, 28 Apr 2019 18:59:35 +0200 Subject: [PATCH] [sway] update lock.sh due to shellcheck --- sway/lock.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sway/lock.sh b/sway/lock.sh index d14e183..1fc5e48 100755 --- a/sway/lock.sh +++ b/sway/lock.sh @@ -6,15 +6,15 @@ swaylock_args=() swaylock_args+=(-e) for output in $(swaymsg -t get_outputs | jq -r '.[] .name'); do - image=$(mktemp --suffix=.png) - images+=($image) - swaylock_args+=(-i $output:$image) - grim -o $output $image + image=$(mktemp --suffix=.png) + images+=("$image") + swaylock_args+=(-i "$output":"$image") + grim -o "$output" "$image" done printf '%s\n' "${images[@]}" | xargs -P 0 -I{} convert -resize 20% -level 0%,100%,0.9 -blur 0x2 -resize 500% {} {} physlock -l prevent tty switching -swaylock ${swaylock_args[@]} -s center +swaylock "${swaylock_args[@]}" -s center physlock -L reenable tty switching -rm ${images[@]} +rm "${images[@]}"