A small calculator overlay with proper operator precedence.
Install on Arch Linux
Use
Type an expression. The result updates as you type.
Entercopies the result and closes pemdash.Escapecloses pemdash.Copycopies the result without closing.
Supported operators are +, -, *, /, and ^. Constants include pi, e, and tau. Functions include sqrt, sin, cos, tan, abs, ln, log10, min, max, and pow.
Examples:
2 + 2 * 2
-2^2
sin(pi / 2)
50 / sqrt(3) * 1e5
max(2, 8, 3)
Bind to Alt+F2 in niri
Build and install the binary somewhere on PATH, then add a binding to the binds block in ~/.config/niri/config.kdl:
Alt+F2 { spawn "pemdash"; }
A floating-window rule is optional:
window-rule { match app-id="dev.pixelcluster.pemdash" open-floating true }
