meskarune / i3lock-fancy

i3lock script that takes a screenshot of the desktop, blurs the background and adds a lock icon and text
MIT License
1.52k stars 184 forks source link

i3lock-fancy doesn't work, if I installed from source. #191

Closed raaron773 closed 1 year ago

raaron773 commented 2 years ago

If I run it, I get the following error. i3lock-fancy: line 9: convert: command not found i3lock-fancy: line 98: import: command not found

meskarune commented 2 years ago

Make sure you have all the dependencies installed. They are required for the script to work. Convert is from imagemagick

SilverTux commented 2 years ago

Hi,

if you've downloaded the appimage of imagemagick (https://imagemagick.org/archive/binaries/magick) then you'll need some helperscripts I did something like this:

cat <<EOF >/usr/local/bin/convert
#!/usr/bin/env bash

set -euo pipefail

/usr/local/bin/magick convert "${@}"
EOF
cat <<EOF >/usr/local/bin/import
#!/usr/bin/env bash

set -euo pipefail

/usr/local/bin/magick import "${@}"
EOF

It assumes that you've downloaded your magick appimage binary to /usr/local/bin. After this everything works properly.