]> www.git.dmfe.net Git - dotfiles/commitdiff
Fix i3lock script.
authorDmitry Fedotov <dm.fe@yandex.ru>
Wed, 3 Mar 2021 20:33:14 +0000 (23:33 +0300)
committerDmitry Fedotov <dm.fe@yandex.ru>
Wed, 3 Mar 2021 20:33:14 +0000 (23:33 +0300)
scripts/screen-locker.sh

index b5322fc54eeec17d5a9e0a9140d0c46a4beaa387..ec95f27a743dbf1bfd767b1806110f07eaa08297 100755 (executable)
@@ -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