forked from Shinonome/dots-hyprland
yad -> kdialog (closes #1367)
This commit is contained in:
@@ -267,7 +267,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" 2>/dev/null || cd "$(xdg-user-dir PICTURES)" || return 1
|
||||||
imgpath="$(yad --width 1200 --height 800 --file --add-preview --large-preview --title='Choose wallpaper')"
|
imgpath="$(kdialog --getopenfilename . --title 'Choose wallpaper')"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
switch "$imgpath" "$mode_flag" "$type_flag" "$color_flag" "$color"
|
switch "$imgpath" "$mode_flag" "$type_flag" "$color_flag" "$color"
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ pkgdesc='Illogical Impulse GTK/Qt Dependencies'
|
|||||||
arch=(any)
|
arch=(any)
|
||||||
license=(None)
|
license=(None)
|
||||||
depends=(
|
depends=(
|
||||||
|
kdialog
|
||||||
qt6-5compat
|
qt6-5compat
|
||||||
qt6-base
|
qt6-base
|
||||||
qt6-declarative
|
qt6-declarative
|
||||||
@@ -22,6 +23,5 @@ depends=(
|
|||||||
upower
|
upower
|
||||||
wtype
|
wtype
|
||||||
xdg-user-dirs-gtk
|
xdg-user-dirs-gtk
|
||||||
yad
|
|
||||||
ydotool
|
ydotool
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user