bin

bin
git clone git://git.zepp.club/bin.git
Log | Files | Refs | README | LICENSE

bud (370B)


      1 #!/bin/sh
      2 
      3 case $1 in
      4     "-s")
      5 	display \
      6     	-page 3200x \
      7     	-sample 3200x \
      8     	-window root \
      9 	~/rules/wall
     10         ;;
     11 
     12     *)
     13         image_path=$(realpath "$1")
     14         if [ -f "$image_path" ]; then
     15 	display \
     16     	-page 3200x \
     17     	-sample 3200x \
     18     	-window root \
     19 	"$image_path"
     20             ln -sf "$image_path" ~/rules/wall
     21         fi
     22         ;;
     23 esac
     24