commit 83c4c880cc9f651ed30e505e4883b622cfec8288 parent e7abf87c54804ba232cc384e238d5912d00ad598 Author: NRK <nrk@disroot.org> Date: Tue, 1 Nov 2022 23:03:14 +0600 plugins/wallpaper: fix indentation Diffstat:
| M | plugins/wallpaper | | | 38 | +++++++++++++++++++------------------- |
1 file changed, 19 insertions(+), 19 deletions(-)
diff --git a/plugins/wallpaper b/plugins/wallpaper @@ -8,29 +8,29 @@ # Author: juacq97 if [ -n "$1" ]; then - if [ "$(file --mime-type "$1" | awk '{print $NF}' | awk -F '/' '{print $1}')" = "image" ]; then - if [ "$XDG_SESSION_TYPE" = "x11" ]; then - if type nitrogen >/dev/null 2>&1; then - nitrogen --set-zoom-fill --save "$1" - elif type wal >/dev/null 2>&1; then - wal -i "$1" - else - printf "nitrogen or pywal missing" - read -r _ - fi - else - if type swww >/dev/null 2>&1; then - swww img "$1" - else - printf "swww missing" - read -r _ - fi - fi - + if [ "$(file --mime-type "$1" | awk '{print $NF}' | awk -F '/' '{print $1}')" = "image" ]; then + if [ "$XDG_SESSION_TYPE" = "x11" ]; then + if type nitrogen >/dev/null 2>&1; then + nitrogen --set-zoom-fill --save "$1" + elif type wal >/dev/null 2>&1; then + wal -i "$1" + else + printf "nitrogen or pywal missing" + read -r _ + fi + else + if type swww >/dev/null 2>&1; then + swww img "$1" + else + printf "swww missing" + read -r _ + fi + fi # If you want a system notification, uncomment the next 3 lines. # notify-send -a "nnn" "Wallpaper changed!" # else # notify-send -a "nnn" "No image selected" + fi fi