Exact decimals
Numbers are decimals, not floats, so 0.1 + 0.2 is 0.3 and 16-digit integers show exactly. Past a decimal's range it falls back to floating point, so 10 ^ 308 still works.
0.1 + 0.2 = 0.3
Calculator for Linux
Alias Calc opens its window in 3 ms, idles in one thread, waking only for the compositor's ping, and does exact decimal math. It takes its colours from your desktop theme and works with the keyboard and a screen reader.
Benchmarks
Time from launch until the compositor reports the window open, memory 2 s later, and wakeups over the next 5 idle seconds. The one wakeup left is the compositor's ping, which every window gets.
Median of 10 runs of Alias Calc 0.1.2 with bench/run, on Hyprland 0.57 with a 4K display at scale 1. Memory is proportional set size. Run the benchmark yourself
Features
Numbers are decimals, not floats, so 0.1 + 0.2 is 0.3 and 16-digit integers show exactly. Past a decimal's range it falls back to floating point, so 10 ^ 308 still works.
0.1 + 0.2 = 0.3
Every key has a key: 0–9 . + - * (or x) / ^ %, Enter or =, Backspace (it repeats), C or Escape, and S to change sign. The numpad works with NumLock on or off.
Tab, arrows, Space
Ctrl+C copies the result without separators. Paste a number with or without them: 1,234.5, 1 234,5 and 12,34 all work, and anything else is ignored.
Ctrl+C · Ctrl+V
On aliasOS or Omarchy, the colours come from your live theme and change the moment it does. Any theme still meets WCAG AA: a colour that would be hard to read is adjusted.
Built-in dark palette otherwise
With a supported screen reader running when it opens, every key is a named button and the result is read out when it changes. The support loads only then, so it costs nothing otherwise; start the screen reader first.
Loads only when needed
Drawn on the CPU straight into a Wayland buffer, sharp at fractional scales. Besides the C runtime, it links only libxkbcommon.
1.05 MB, one thread
Themes
Four themes, each window at its smallest size. Alias Calc reads three colours from the theme and works out the rest, nudging any text that would fall under 4.5:1.
Install
$ git clone https://github.com/aliasproject/alias-calc
$ cd alias-calc
$ ./install.sh # build, install into ~/.localIt installs the binary, the screen reader library, a desktop entry ("Calculator" in your launcher) and the icons. To remove them, run ./install.sh uninstall in the same folder.
On aliasOS, it's in the aliasOS package repository:
$ sudo pacman -S alias-calcPackages for other distributions aren't published yet. Until then, build from source.