Adding options for xwallpaper OR feh.

This commit is contained in:
Derek Taylor
2021-04-21 16:45:11 -05:00
parent 43d8eb6d21
commit 99925db6a3

View File

@@ -35,7 +35,7 @@ do
case "$1" in case "$1" in
"c") "c")
xclip -selection clipboard -target image/png "$file" && xclip -selection clipboard -target image/png "$file" &&
notify-send "$file has been copied to clipboard." && exit 0 notify-send "$file has been copied to clipboard." && exit 0
;; ;;
"d") "d")
[ "$(printf "No\\nYes" | dmenu -i -p "Really delete $file?")" = "Yes" ] && [ "$(printf "No\\nYes" | dmenu -i -p "Really delete $file?")" = "Yes" ] &&
@@ -52,7 +52,7 @@ do
;; ;;
"w") "w")
feh --bg-scale "$file" && feh --bg-scale "$file" &&
notify-send "$file has been set as your wallpaper." && exit 0 notify-send "$file has been set as your wallpaper." && exit 0
;; ;;
"x") "x")
xwallpaper --stretch "$file" && xwallpaper --stretch "$file" &&
@@ -61,7 +61,7 @@ do
touch $filename touch $filename
fi fi
echo "$file" > $HOME/.xwallpaper && echo "$file" > $HOME/.xwallpaper &&
notify-send "$file has been set as your wallpaper." && exit 0 notify-send "$file has been set as your wallpaper." && exit 0
;; ;;
"7") "7")
rotate 270 rotate 270