feat(menu): open Doctor in a floating centered terminal
All checks were successful
Check / eval (push) Successful in 4m26s
All checks were successful
Check / eval (push) Successful in 4m26s
Launch nomarchy-doctor via ghostty --class=com.nomarchy.doctor (same pattern as the calendar popup) and match float/size/center windowrules so System › Doctor and the Waybar doctor click no longer tile. Verified: V1 — downstream-template-home builds; menu carries the class; hyprland.conf has float/size/center for com.nomarchy.doctor; windowrule-syntax green (19 rules). V2 live float confirm after nomarchy-home (same class mechanism as calendar).
This commit is contained in:
@@ -491,6 +491,12 @@ in
|
|||||||
"size 60% 65%, match:class ^(com\\.nomarchy\\.calendar)$"
|
"size 60% 65%, match:class ^(com\\.nomarchy\\.calendar)$"
|
||||||
"center 1, match:class ^(com\\.nomarchy\\.calendar)$"
|
"center 1, match:class ^(com\\.nomarchy\\.calendar)$"
|
||||||
|
|
||||||
|
# Doctor sheet (System › Doctor / Waybar custom/doctor click):
|
||||||
|
# nomarchy-menu doctor → ghostty --class=com.nomarchy.doctor.
|
||||||
|
"float 1, match:class ^(com\\.nomarchy\\.doctor)$"
|
||||||
|
"size 55% 70%, match:class ^(com\\.nomarchy\\.doctor)$"
|
||||||
|
"center 1, match:class ^(com\\.nomarchy\\.doctor)$"
|
||||||
|
|
||||||
# Polkit auth (hyprpolkitagent — app id / binary name in the package)
|
# Polkit auth (hyprpolkitagent — app id / binary name in the package)
|
||||||
# and pinentry-qt (keys.nix default; org.gnupg.pinentry-qt desktop).
|
# and pinentry-qt (keys.nix default; org.gnupg.pinentry-qt desktop).
|
||||||
# workspace current: agent was started on ws1 at login; without this
|
# workspace current: agent was started on ws1 at login; without this
|
||||||
|
|||||||
@@ -801,10 +801,13 @@ ${themeRows}
|
|||||||
exec ${cfg.terminal} -e sudo nomarchy-snapshots ;;
|
exec ${cfg.terminal} -e sudo nomarchy-snapshots ;;
|
||||||
|
|
||||||
doctor)
|
doctor)
|
||||||
# Read-only health sheet in a terminal; exit code doesn't matter
|
# Read-only health sheet in a floating, centered ghostty window
|
||||||
# here — the sheet itself is the product.
|
# (class matched by hyprland.nix windowrules). --gtk-single-instance
|
||||||
exec ${cfg.terminal} -e sh -c "nomarchy-doctor
|
# =false forces a fresh window — same pattern as nomarchy-calendar.
|
||||||
printf '\nEnter to close.'; read -r _" ;;
|
# Exit code doesn't matter; the sheet itself is the product.
|
||||||
|
exec ghostty --class=com.nomarchy.doctor --gtk-single-instance=false \
|
||||||
|
-e sh -c "nomarchy-doctor
|
||||||
|
printf '\nEnter to close.'; read -r _" ;;
|
||||||
|
|
||||||
firmware)
|
firmware)
|
||||||
# System ▸ Firmware — fwupd/LVFS update surface (HARDWARE.md §4).
|
# System ▸ Firmware — fwupd/LVFS update surface (HARDWARE.md §4).
|
||||||
|
|||||||
Reference in New Issue
Block a user