Okay; here's 'Mk 2'.
I've used the extra code you supplied to add the 'Full-screen' selector. Have added another 'cmd_function' to permit enabling/disabling of the status-bar in full-screen mode (it appears to be hard-coded in normal viewing mode, and isn't switchable.)
Also added an 'info' button, which brings up a second YAD 'text' window, explaining some of the functions.....and a 'Quit' button, to exit.
Code: Select all
#!/bin/sh
#
# Launcher for the 'Q.I.V Slideshow' © Mike Walsh, Sep 2018 - with thanks to the 'Puppy' crew (and Fredx181 in particular) for assistance
#
export load_cmd='@bash -c "button_cmd %1 %2 %3 %4 %5 %6"'
function button_cmd () {
[ $3 = TRUE ] && FS="-f" || FS=""
[ $4 = FALSE ] && SB="-i" || SB=""
qiv -s $FS $SB -m -t -d $2 $1
}
export -f button_cmd
yad --center --window-icon=/usr/local/lib/X11/pixmaps/qiv.png --title="Q.I.V Slideshow" --form --width=450 --text=" Please make your selections:-" \
--form --field="Choose image directory:-:MDIR" '/root' \
--field="Select timeout interval:-:NUM" '1' \
--field="Fullscreen:CHK" "TRUE" \
--field="Enable/disable status bar (full-screen only):CHK" "FALSE" \
--field="Run Q.I.V slideshow":fbtn "$load_cmd" \
--button="Information":qiv-gui-info.sh --button="Quit":1
I think it's fair to say I'm slowly getting the hang of this 'variables' stuff. I'll get there eventually!
Mike.