Skip to content

noctuum/kqalc

Repository files navigation

kqalc

Codacy Badge Codacy Badge

Full qalculate power in KRunner.

KDE Plasma's built-in calculator is limited — no currency conversion with to, no equation solving, no unit arithmetic. kqalc fixes this by wrapping the qalc CLI as a KRunner DBus plugin.

Features

  • Math: qc 2+2, qc sqrt(2), qc sin(pi/4), qc 2^64
  • Currency conversion: qc 5000 GEL to USD, qc 100 EUR to KZT
  • Unit conversion: qc 100 km/h to mph, qc 180 lbs to kg
  • Equations: qc x^2 = 9, qc solve(2x+5=15, x)
  • Exact & approximate results shown side by side where useful
  • Copy to clipboard on selection (Wayland & X11)

Requirements

  • KDE Plasma 6
  • libqalculate (qalc CLI)
  • wl-copy (Wayland) or xclip (X11)

Install

From source

git clone https://github.com/noctuum/kqalc.git
cd kqalc
./install.sh

Requires Go 1.22+. Restart KRunner after install:

kquitapp6 krunner && kstart6 krunner

Debian / Ubuntu

curl -fsSL https://noctuum.github.io/kqalc/gpg-key.asc | sudo tee /usr/share/keyrings/kqalc.asc > /dev/null
echo "deb [signed-by=/usr/share/keyrings/kqalc.asc] https://noctuum.github.io/kqalc stable main" | sudo tee /etc/apt/sources.list.d/kqalc.list
sudo apt update && sudo apt install kqalc

Arch Linux (AUR)

paru -S kqalc-bin

Nix

nix run github:noctuum/kqalc

Usage

Open KRunner (Alt+Space) and type:

qc <expression>

The qc prefix triggers kqalc. Results appear instantly — select to copy to clipboard.

Uninstall

./uninstall.sh

License

GPL-2.0