mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +00:00
plugins/wallpaper: fix indentation
This commit is contained in:
parent
e7abf87c54
commit
83c4c880cc
|
@ -8,29 +8,29 @@
|
||||||
# Author: juacq97
|
# Author: juacq97
|
||||||
|
|
||||||
if [ -n "$1" ]; then
|
if [ -n "$1" ]; then
|
||||||
if [ "$(file --mime-type "$1" | awk '{print $NF}' | awk -F '/' '{print $1}')" = "image" ]; then
|
if [ "$(file --mime-type "$1" | awk '{print $NF}' | awk -F '/' '{print $1}')" = "image" ]; then
|
||||||
if [ "$XDG_SESSION_TYPE" = "x11" ]; then
|
if [ "$XDG_SESSION_TYPE" = "x11" ]; then
|
||||||
if type nitrogen >/dev/null 2>&1; then
|
if type nitrogen >/dev/null 2>&1; then
|
||||||
nitrogen --set-zoom-fill --save "$1"
|
nitrogen --set-zoom-fill --save "$1"
|
||||||
elif type wal >/dev/null 2>&1; then
|
elif type wal >/dev/null 2>&1; then
|
||||||
wal -i "$1"
|
wal -i "$1"
|
||||||
else
|
else
|
||||||
printf "nitrogen or pywal missing"
|
printf "nitrogen or pywal missing"
|
||||||
read -r _
|
read -r _
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if type swww >/dev/null 2>&1; then
|
if type swww >/dev/null 2>&1; then
|
||||||
swww img "$1"
|
swww img "$1"
|
||||||
else
|
else
|
||||||
printf "swww missing"
|
printf "swww missing"
|
||||||
read -r _
|
read -r _
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# If you want a system notification, uncomment the next 3 lines.
|
# If you want a system notification, uncomment the next 3 lines.
|
||||||
# notify-send -a "nnn" "Wallpaper changed!"
|
# notify-send -a "nnn" "Wallpaper changed!"
|
||||||
# else
|
# else
|
||||||
# notify-send -a "nnn" "No image selected"
|
# notify-send -a "nnn" "No image selected"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue