Skip to content

tkapias/bemenu-qalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bemenu-qalc

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.

preview

The preview uses my wrapper for bemenu: bemenu-orange-wrapper.

Dependencies

Optional

Installation

Dependencies

  1. Follow bemenu-orange-wrapper instructions.

  2. Next:

# xclip, setsid, qalc, qalculate-gtk
sudo apt install xclip util-linux qalc qalculate-gtk

bemenu-qalc

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

Features

  • History: persistant, resetable.
  • Clipboard: copy the last result.
  • Keybindings: bemenu Default + Vim-like, displayable.
  • Previous result: auto reuse, clearable.
  • Link to GUI: qalculate-gtk

Usage

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.

Integrations

  • Binding example for bemenu-qalc in i3wm:
bindsym $mod+c exec --no-startup-id "bemenu-qalc"

About

A simple bemenu calculator using qalc.

Topics

Resources

License

Stars

Watchers

Forks

Languages