My build of nnn with minor changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

nwal 521 B

5 years ago
12345678910111213141516
  1. #!/usr/bin/env sh
  2. # Description: Set the selected image as wallpaper using nitrogen. Just put the cursor on a image and run the script.
  3. #
  4. # Shell: POSIX Compliant
  5. # Author: juacq97
  6. if ! [ -z "$1" ]; then
  7. if [ "$(mimetype --output-format %m "$1" | awk -F '/' '{print $1}')" = "image" ]; then
  8. nitrogen --set-zoom-fill --save "$1"
  9. # If you want a system notification, uncomment the next 3 lines.
  10. # notify-send -a "nnn" "Wallpaper changed!"
  11. # else
  12. # notify-send -a "nnn" "No image selected"
  13. fi
  14. fi