🖩 Do live calculations in rofi!
Switch branches/tags
Nothing to show
Clone or download
svenstaro Merge pull request #14 from GladOSkar/patch-2
Dependency instructions (correctly this time)
Latest commit 03f95ce Oct 5, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Fix license more May 17, 2018
.gitignore Ignore autotools BS May 13, 2018
.travis.yml Fix make order May 14, 2018
LICENSE Add LICENSE May 13, 2018
Makefile.am Check for cairo Jul 18, 2018
README.md Dependency instructions (correctly this time) Oct 5, 2018
configure.ac Check for cairo Jul 18, 2018
demo.gif Much smaller gif May 15, 2018



🖩 Do live calculations in rofi!

Build Status AUR license

A rofi plugin that uses libqalculate's qalc to parse natural language input and provide results.

Since this uses libqalculate's amazing qalc you can try natural language queries such 500 + 25% or 5000 EUR to USD or 150 to hex. It can also solve linear equations on the fly. Try 60x + 30 = 50, for instance.

Run rofi like:

rofi -show calc -modi calc -no-show-match -no-sort

It's convenient to bind it to a key combination in i3. For instance, you could use:

bindsym $mod+c exec --no-startup-id "rofi -show calc -modi calc -no-show-match -no-sort"



You need a C compilation toolchain (a cc, autoconf, pkg-config, ...), rofi (version >= 1.5) as well as libqalculate (version > 2.0).

You will also need development headers for rofi and libqalculate. Depending on your distribution these may be included in different packages:

  • Arch, Gentoo: included with rofi, libqalculate
  • OpenSUSE: zypper in rofi qalculate
  • Debian: dpkg --install rofi-dev qalc libqalculate-dev
  • Ubuntu: apt install rofi-dev qalc libqalculate-dev
  • Solus: eopkg it rofi-devel libqalculate-devel
  • CentOS, Fedora: Install qalculate libqalculate-devel (find rofi-devel headers yourself)
  • Others: look it up :)

Some distributions ship an extremely outdated version of libqalculate so you might have to compile your own.


Package Manager

From source

rofi-calc uses autotools as build system. If installing from git, the following steps should install it:

$ autoreconf -i
$ mkdir build
$ cd build/
$ ../configure
$ make
$ make install