11 lines
205 B
Text
11 lines
205 B
Text
|
#!/bin/sh
|
||
|
|
||
|
docalc() {
|
||
|
res=$(true | dmenu -p "calc" | bc)
|
||
|
[ "$res" = "" ] && exit
|
||
|
next=$(printf "exit\nnext" | dmenu -p "calc;res=${res}")
|
||
|
[ "next" = "${next}" ] && docalc || exit
|
||
|
}
|
||
|
|
||
|
docalc
|