A small calculator overlay with proper operator precedence.

yay -S pemdash
cargo run --release
Type an expression. The result updates as you type.
Enter copies the result and closes pemdash.Escape closes pemdash.Copy copies 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)
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
}
10 commits
Rust
88.3%
Just
6.8%
Shell
4.9%
A small calculator overlay with proper operator precedence.

yay -S pemdash
cargo run --release
Type an expression. The result updates as you type.
Enter copies the result and closes pemdash.Escape closes pemdash.Copy copies 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)
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
}
10 commits
Rust
88.3%
Just
6.8%
Shell
4.9%