init
This commit is contained in:
5
bin/calculator
Executable file
5
bin/calculator
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
EXPRESSION=$(printf "" | dmenu -b -w $(xdotool getactivewindow) -p "calculator")
|
||||
RESULT=$(qalc $EXPRESSION)
|
||||
printf "" | dmenu -b -w $(xdotool getactivewindow) -p "$RESULT"
|
||||
echo $RESULT | sed 's/^[^=≈]*[=≈]//' | xclip -selection clipboard
|
||||
Reference in New Issue
Block a user