otter-calc evaluates math expressions from the command line. Type an expression, get the result. Pass --copy to put it on the clipboard.
Usage
Pass your expression as a single argument or as multiple arguments. otter-calc joins them before evaluating.
otter-calc '2 + 3 * 4' # evaluates to 14
otter-calc 2 + 3 '* 4' # arguments are joined
otter-calc --copy '(2 + 3) * 4' # evaluate and copy result
Configuration
otter-calc reads ~/.config/otter-shell/otter-calc.conf.
copy_result: true always copies the result without passing --copy
--copy uses the shared Otter clipboard helper (otter-copy). In packaged
installs, wl-copy is shadowed to otter-copy so clipboard integration works
transparently.