forked from Shinonome/dots-hyprland
Update switchwall.sh
This commit is contained in:
@@ -330,7 +330,7 @@ main() {
|
|||||||
|
|
||||||
# Only prompt for wallpaper if not using --color and not using --noswitch and no imgpath set
|
# Only prompt for wallpaper if not using --color and not using --noswitch and no imgpath set
|
||||||
if [[ -z "$imgpath" && -z "$color_flag" && -z "$noswitch_flag" ]]; then
|
if [[ -z "$imgpath" && -z "$color_flag" && -z "$noswitch_flag" ]]; then
|
||||||
cd "$(xdg-user-dir PICTURES)/Wallpapers" 2>/dev/null || cd "$(xdg-user-dir PICTURES)" || return 1
|
cd "$(xdg-user-dir PICTURES)/Wallpapers/showcase" 2>/dev/null || cd "$(xdg-user-dir PICTURES)/Wallpapers" 2>/dev/null || cd "$(xdg-user-dir PICTURES)" || return 1
|
||||||
imgpath="$(kdialog --getopenfilename . --title 'Choose wallpaper')"
|
imgpath="$(kdialog --getopenfilename . --title 'Choose wallpaper')"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user