diff --git a/waldl b/waldl index 4d28621..93ff6c6 100755 --- a/waldl +++ b/waldl @@ -31,15 +31,14 @@ sorting=relevance quality=large # atleast : least res atleast=1920x1080 +# the menu command used when no query is provided +menu_command="rofi -dmenu -l 0 -p 'search wallpapers'" # allow the user to customize the defaults [ -e "$HOME/.config/waldlrc" ] && . "$HOME/.config/waldlrc" -# the menu command used when no query is provided sh_menu () { - : | dmenu -p "search wallhaven:" - # ROFI: comment the previous line and uncomment the next line for rofi - # rofi -dmenu -l 0 -p "search wallpapers" + eval "$menu_command" } ##########################