Page 2 of 2

Posted: Sun 01 Feb 2015, 11:37
by Geoffrey
Yad image viewer 97bytes

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
Usage: yad-view image file

Posted: Sun 01 Feb 2015, 20:00
by dejan555
Calculator in Xdialog using bc:

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

Posted: Mon 02 Feb 2015, 06:09
by disciple
That's incredibly pointless - much better just to use bc in a terminal! :)