diff --git a/setbg b/setbg index a261975..fcc4bc6 100755 --- a/setbg +++ b/setbg @@ -1,12 +1,12 @@ -#!/bin/sh +#!/bin/bash if [ $# -gt 1 ] then echo "Too many arguments" exit 1 +elif [ $# -eq 1 ] +then + cp $1 $HOME/.local/share/wallpaper.jpg fi -[ $# -eq 1 ] && - cp $1 $HOME/.local/share/wallpaper.jpg - xwallpaper --zoom $HOME/.local/share/wallpaper.jpg