Commit graph

2 commits

Author SHA1 Message Date
2f77222816 Fix floating: use xdg-terminal-exec --app-id + class-matched rules
The window never floated because install hardcoded `ghostty --class=monitor-tui`.
Ghostty rejects app-ids that aren't valid GTK IDs (no dot) and silently falls
back to class com.mitchellh.ghostty, so the `match:class monitor-tui` rule never
matched and the window tiled.

Switch to the Omarchy convention used by NoCoder/omagrab: launch via
`xdg-terminal-exec --app-id=monitor-tui` (terminal-agnostic; the default kitty
accepts any class) and match the rules on class instead of title:

  windowrule = float on,  match:class ^(monitor-tui)$
  windowrule = center on, match:class ^(monitor-tui)$
  windowrule = size 800 600, match:class ^(monitor-tui)$
  windowrule = pin on,    match:class ^(monitor-tui)$

Drop the per-terminal ghostty/kitty/alacritty/foot detection and broaden the
uninstall cleanup to remove every legacy form (title rules + old paths).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-08 15:27:25 +01:00
c90bdb1ce2 Initial commit: Monitor Configuration TUI for Hyprland/Omarchy
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 14:35:26 +00:00