8000 GitHub - omacom/omacalc: Omarchy's simple calculator · GitHub
[go: up one dir, main page]

Skip to content
omacomPublic

About

Omarchy's simple calculator

Resources

Stars

25 stars

Watchers

1 watching

Forks

Latest commit

 

History

21 Commits

Folders and files

Repository files navigation

Omacalc

A dead-simple calculator built with Qt Quick and C++ that automatically follows the Omarchy theme and system dark/light mode.

Omacalc with the Tokyo Night theme

Install

Install via the Omarchy Package Repository via the omacalc package.

Usage

The keypad covers the basics: the four arithmetic operators with the usual precedence (× and ÷ before + and −), decimals, percent, sign toggle, and backspace. The expression builds up above the display and stays visible with the result after =, so 42 × 3 + 7 reads back exactly as it was entered. From the keyboard, ^ raises to a power ahead of everything else, so 2 × 3 ^ 2 gives 18.

Numbers are grouped with thousands separators as you type, in the display and the expression line alike, so 1234567.89 reads as 1,234,567.89. The fraction is left ungrouped.

Percent follows the familiar calculator convention: with a pending + or − it takes that percentage of the running total (200 + 10 % = gives 220), while with ×, ÷, or ^ — or on its own — it simply divides by 100.

Everything works from the keyboard too:

  • 0-9, ., +, -, * or x, /, ^, and % enter digits and operators. The numpad enters digits whether or not NumLock is on.
  • Enter or = calculates.
  • Backspace deletes the last digit.
  • C or Escape clears.
  • S toggles the sign.
  • Ctrl+C or Super+C copies the result, without separators.
  • Ctrl+V or Super+V pastes a number, with or without separators.

Colors follow the current Omarchy theme (~/.local/state/omarchy/current/theme/colors.toml) and re-tint live when the theme changes. Text follows the desktop text size — omarchy display text size, or GNOME's text-scaling-factor.

Requirements

  • Qt 6: qt6-base, qt6-declarative
  • xdg-desktop-portal and a portal backend

The iA Writer Mono font is bundled under the SIL Open Font License 1.1; see fonts/OFL.txt. The font is copyright Information Architects Inc. and based on IBM Plex, copyright IBM Corp.

Development

bin/build compiles build/omacalc with CMake, and bin/test builds and runs the tests offscreen. Building needs cmake, make, and a C++ compiler on top of the Qt packages above. The package itself is built in omarchy-pkgs.

About

Omarchy's simple calculator

Resources

Stars

25 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0