I have the following script.
#!/bin/bash
#DATE=$(date +%F-%T)
select=$( echo -e "whole\narea\nwindow" | rofi -dmenu )
FILE_LOCATION=$(zenity --file-selection --save --confirm-overwrite --title="Save As")
if [[ $select == "whole" ]]; then
# gnome-screenshot -f ~/Pictures/Screenshot-$DATE.png
gnome-screenshot -f $FILE_LOCATION
elif [[ $select == "area" ]]; then
gnome-screenshot --area -f $FILE_LOCATION
elif [[ $select == "window" ]]; then
gnome-screenshot --window -f $FILE_LOCATION
fi
When I run the script, the dialog looks like:
However, it should look like:
I would also like to select the default file type as .png.
How can I do that?


The solution I am currently using is: