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

16 行
445 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. # notify-send -a "nnn" "Wallpaper changed!"
  10. else
  11. # notify-send -a "nnn" "You need to select a image"
  12. fi
  13. fi