Needs a recent version of yad for the " --buttons-layout center " to work, just delete that if it doesn't.
Code: Select all
#!/bin/sh
yad --title 'Yad Ꙭ' --window-icon $1 --image $1 --buttons-layout center --button=Quit
Code: Select all
#!/bin/sh
yad --title 'Yad Ꙭ' --window-icon $1 --image $1 --buttons-layout center --button=Quit
Code: Select all
f=0;while [ "$f" != "" ];do f=$(Xdialog --title Calculator --inputbox "Enter formula:" 0 0 "$f" 2>&1);[ "$f" != "" ] && f=$(echo "scale=2;$f" | bc);done