From 8b05a14c3489de64e2a5b6cdef95cb0f126cddb1 Mon Sep 17 00:00:00 2001 From: Dmitry Fedotov Date: Wed, 3 Mar 2021 23:33:14 +0300 Subject: [PATCH] Fix i3lock script. --- scripts/screen-locker.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/screen-locker.sh b/scripts/screen-locker.sh index b5322fc..ec95f27 100755 --- a/scripts/screen-locker.sh +++ b/scripts/screen-locker.sh @@ -5,6 +5,8 @@ icon_file="$(ls $icons_dir | sort -R | head -n 1)" icon=$HOME/$icons_dir/$icon_file tmp_bg=/tmp/screen.png +[[ -f "${tmp_bg}" ]] && rm -f "${tmp_bg}" + #echo $icon scrot $tmp_bg -- 2.39.5