summaryrefslogtreecommitdiff
path: root/bin/guiscripts/dmcalc
blob: 46c35c6eb62d0502b83a9a1fa23749ba6656f04a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
dmenu -p Calculate: < /dev/null | 
	xargs echo | 
	bc 2>&1 | 
	xargs -I {} echo -e "{}\n" | 
	dmenu -p Answer: -l 1 -g 1 | 
	xclipp
# TODO
# ask for calculation
# shows answer
# if esc -> quit
# if enter, continue with answer