A simple dmenu calculator using qalc, inspired by svenstraro's rofi-calc.
Qalculate (qalc) is a powerful and easy to use calculator supporting complex math, many units, conversions and more...
Exemple use dmenu-calc -c (-c is from dmenu center patch)
The history is store in $HOME/.local/share/dmenu-calc/history. It is deletable (and editable if needed). To make it non-persistent, the path (history_file) can be changed to /tmp/dmenu-calc/history in the script.
git clone https://github.com/Helcoume/dmenu-calc.git( Optional ) Symlink to a directory in your path:
ln -s dmenu-calc/dmenu-calc /path/to/bin Run the script with ./dmenu-calc or dmenu-calc if you added it to your path.
- <Shift-Enter> : show the result of the current entry and copies it to the clipboard
- <Enter> : copy the selected history entry to the clipboard
- <Tab> : copy the selected history to the current entry
- <Escape> : quit
If no history entry matches the current entry, <Enter> has the behavior of <Shift-Enter>.
Any dmenu arguments can be used (even patch ones)
The arg -l 10 is given by default, it can be overwritten. For example dmenu-calc -l 2 to display only 2 lines of history.
