A simple bemenu calculator using qalc
(powerful and easy to use calculator, supporting complex math, conversions and more...), inspired by Nicolas RAYMOND's dmenu-calc.
The preview uses my wrapper for bemenu: bemenu-orange-wrapper.
- qalc
- bemenu >= 0.6
- Nerd Fonts (Symbols Only)
- Bash >= 5
- setsid
- xclip
- Debian example with bemenu-orange-wrapper:
-
Next:
# xclip, setsid, qalc, qalculate-gtk
sudo apt install xclip util-linux qalc qalculate-gtk
git clone --depth 1 https://github.com/tkapias/bemenu-qalc.git bemenu-qalc
cd bemenu-qalc
chmod +x bemenu-qalc.bash
- Optional: Symlink to a directory in your user's path:
ln -s $PWD/bemenu-qalc.bash $HOME/.local/bin/bemenu-qalc
- History: persistant, resetable.
- Clipboard: copy the last result.
- Keybindings: bemenu Default + Vim-like, displayable.
- Previous result: auto reuse, clearable.
- Link to GUI: qalculate-gtk
bemenu-qalc relies entirely on the dynamic actions provided inline, bemenu controls and qalc syntax.
The history is stored in $HOME/.local/state/bemenu-qalc-history.txt
. It is persistant and resetable inline.
- Binding example for bemenu-qalc in i3wm:
bindsym $mod+c exec --no-startup-id "bemenu-qalc"