Commit 1a815a37 authored by Dylan Araps's avatar Dylan Araps

Image: If $image_source is set to ascii display a warning in -v

parent a741929f
...@@ -1898,6 +1898,12 @@ get_image_backend() { ...@@ -1898,6 +1898,12 @@ get_image_backend() {
case "$image_source" in case "$image_source" in
"wall"*) get_wallpaper 2>/dev/null ;; "wall"*) get_wallpaper 2>/dev/null ;;
"off") image_backend="off"; return ;; "off") image_backend="off"; return ;;
"ascii")
to_ascii "Image: \$image_source set to 'ascii', falling back to ascii mode. "
err "Image: Change \$image_source to another value to use image mode."
return
;;
*) *)
if [[ -d "$image_source" ]]; then if [[ -d "$image_source" ]]; then
files=("${image_source%/}"/*.{png,jpg,jpeg}) files=("${image_source%/}"/*.{png,jpg,jpeg})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment