mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-24 12:00:24 +10:00
Adding options for xwallpaper OR feh.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user