Skip to content

Minimal GTK4 calculator tuned for Omarchy and Hyprland workflows.

License

Notifications You must be signed in to change notification settings

jadabreu/omcalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Omcalc

Minimal GTK4 calculator tuned for Omarchy and Hyprland workflows.

Features

  • Native GTK4 + Libadwaita app written in GJS.
  • Safe expression parser (no eval).
  • Keyboard-first interaction model.
  • Persistent calculation history in ~/.local/state/omcalc/history.json.
  • Theme integration from Omarchy theme files with live refresh.

Project Layout

  • app/gtk4/ contains the app, engine, scripts, and tests.
  • packaging/aur/omcalc-git/ contains AUR packaging files.

Run

./app/gtk4/run.sh

Clear History

./app/gtk4/clear-history.sh

Test

./app/gtk4/test.sh

Hyprland Integration

Apply managed Hyprland window-rule blocks:

./app/gtk4/install.sh

Remove managed blocks:

./app/gtk4/install.sh --uninstall

AUR Packaging

The AUR scaffold is in packaging/aur/omcalc-git/.

Before publishing:

  1. Set your real upstream URL in PKGBUILD.
  2. Regenerate metadata:
cd packaging/aur/omcalc-git
makepkg --printsrcinfo > .SRCINFO

Publish Helper

Use scripts/publish.sh to automate commit/push workflows.

Safer default: stage intentionally first, then run.

Main repo only (staged changes):

./scripts/publish.sh --main-message "Add history wipe hint"

Main repo only with scoped auto-stage:

./scripts/publish.sh --main-message "Add history wipe hint" --auto-stage

Main repo + AUR repo sync/push:

./scripts/publish.sh --main-message "Release update" --sync-aur --auto-stage --regen-srcinfo

If your AUR clone is not in /tmp/aur/omcalc-git, pass:

./scripts/publish.sh --main-message "Release update" --sync-aur --aur-repo /path/to/omcalc-git

Preview without changing anything:

./scripts/publish.sh --main-message "Release update" --sync-aur --dry-run

About

Minimal GTK4 calculator tuned for Omarchy and Hyprland workflows.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published