Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add flag to lower resolution and hide watermark #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions bingwallpaper
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,28 @@ path="$HOME/Pictures/Bing/"

# Make it run just once (useful to run as a cron)
run_once=false
while getopts "1" opt; do
while getopts "1w" opt; do
case $opt in
1 )
run_once=true
;;
w )
no_watermark=true
;;
\? )
echo "Invalid option! usage: \"$0 -1\", to run once and exit"
echo "Invalid option!"
echo "Usage: \"$(basename $0) [-1] [-w]\""
echo " -1 to run once and exit"
echo " -w to lower resolution and have no watermark"
exit 1
;;
esac
done

if [ -n "$no_watermark" ]; then
size="1920x1080"
fi

########################################################################
#### DO NOT EDIT BELOW THIS LINE #######################################
########################################################################
Expand Down