Fixes --lock not working with autodetection when started from zsh, avoids autodetect because of stability issues (#254)

This commit is contained in:
Basti 2021-06-30 18:45:12 +02:00 committed by Sebastian Sellmeier
parent 2b31627d59
commit 906259dd2b
No known key found for this signature in database
GPG key ID: 51E2BE0CCC826F98
2 changed files with 5 additions and 10 deletions

View file

@ -6,16 +6,6 @@
init_config () {
# resolve i3lock-color binary
i3lockcolor_bin="$(command -v i3lock-color)"
if [[ (! -e "$i3lockcolor_bin") && (-e "$(command -v i3lock)") ]]; then
i3lockcolor_bin="$(command -v i3lock)"
else
echo "Can not find locker-binary as 'i3lock' or 'i3lock-color', please make sure it is in your \$PATH!"
exit 1
fi
# default options
display_on=0
span_image=false
@ -57,6 +47,10 @@ init_config () {
source "$USER_CONF"
fi
if [[ ! -v $i3lockcolor_bin ]]; then
i3lockcolor_bin="i3lock-color"
fi
# Please make sure to adjust this before release!
VERSION="@VERSION@"

View file

@ -9,6 +9,7 @@ dim_level=40
blur_level=1
pixel_scale=10,1000
solid_color=333333
# i3lockcolor_bin="" # (manually set full path to i3lock-color)
# default theme
loginbox=00000066