Advertisement
Guest User

Untitled

a guest
Aug 27th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/bin/sh
  2. # filename: reddit-wallpaper
  3. # Usage: reddit-wallpaper [POSTNUMBER SUBREDDIT]
  4.  
  5. RWP="/path/to/reddit-wallpaper.py"
  6. DIR="/home/user/Pictures"
  7.  
  8. if [ $1 ]; then
  9. if [ $2 ]; then
  10. python3 $RWP --dir=$DIR --number=$1 --sub=$2
  11. else
  12. python3 $RWP --dir=$DIR --number=$1
  13. fi
  14. else
  15. python3 $RWP --dir=$DIR
  16. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement