My build of nnn with minor changes
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

16 linhas
444 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