My build of nnn with minor changes
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

17 行
516 B

  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