From: Dmitry Fedotov Date: Wed, 3 Mar 2021 20:33:14 +0000 (+0300) Subject: Fix i3lock script. X-Git-Url: https://www.git.dmfe.net/?a=commitdiff_plain;h=8b05a14c3489de64e2a5b6cdef95cb0f126cddb1;p=dotfiles Fix i3lock script. --- 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