From cc93491232edd64b6a04fc25bd76673870bfa05a Mon Sep 17 00:00:00 2001 From: Bernardo Magri Date: Sat, 25 Apr 2026 22:11:47 +0100 Subject: [PATCH] =?UTF-8?q?chore(audit):=20delete-dead=20=E2=80=94=20unuse?= =?UTF-8?q?d=20nomarchy-hw-*=20detection=20scripts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Phase B verdict on four core/system/scripts/nomarchy-hw-* entries flagged `unused?` in the Phase A inventory. Wide grep confirmed the only references were the audit doc itself. Removed: - nomarchy-hw-framework16 (superseded by `nomarchy-hw-match "Laptop 16"` in nomarchy-on-boot) - nomarchy-hw-surface (no caller; "Surface" string would route through nomarchy-hw-match if needed) - nomarchy-hw-intel (no caller; vendor detection isn't a public API — installer/hardware-db.sh handles install-time dispatch and nomarchy.hardware.* options handle build-time) - nomarchy-hw-intel-ptl (same — Panther Lake GPU detection isn't used anywhere) Kept: nomarchy-hw-match (the dispatcher), nomarchy-hw-asus-rog (called by nomarchy-on-boot), nomarchy-hw-vulkan (called by nomarchy-voxtype-install). SCRIPTS.md regenerated: unused? 40 → 36; nix flake check clean. Co-Authored-By: Claude Opus 4.7 --- core/system/scripts/nomarchy-hw-framework16 | 6 ------ core/system/scripts/nomarchy-hw-intel | 5 ----- core/system/scripts/nomarchy-hw-intel-ptl | 5 ----- core/system/scripts/nomarchy-hw-surface | 6 ------ docs/SCRIPTS.md | 8 ++------ 5 files changed, 2 insertions(+), 28 deletions(-) delete mode 100755 core/system/scripts/nomarchy-hw-framework16 delete mode 100755 core/system/scripts/nomarchy-hw-intel delete mode 100755 core/system/scripts/nomarchy-hw-intel-ptl delete mode 100755 core/system/scripts/nomarchy-hw-surface diff --git a/core/system/scripts/nomarchy-hw-framework16 b/core/system/scripts/nomarchy-hw-framework16 deleted file mode 100755 index 5907e75..0000000 --- a/core/system/scripts/nomarchy-hw-framework16 +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -# Detect whether the computer is a Framework Laptop 16. - -[[ $(cat /sys/class/dmi/id/sys_vendor 2>/dev/null) == "Framework" ]] && - nomarchy-hw-match "Laptop 16" diff --git a/core/system/scripts/nomarchy-hw-intel b/core/system/scripts/nomarchy-hw-intel deleted file mode 100755 index 2dc37c0..0000000 --- a/core/system/scripts/nomarchy-hw-intel +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -# Detect whether the computer has an Intel CPU. - -[[ $(grep -m1 "vendor_id" /proc/cpuinfo 2>/dev/null | cut -d: -f2 | tr -d ' ') == "GenuineIntel" ]] diff --git a/core/system/scripts/nomarchy-hw-intel-ptl b/core/system/scripts/nomarchy-hw-intel-ptl deleted file mode 100755 index 9750bd3..0000000 --- a/core/system/scripts/nomarchy-hw-intel-ptl +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -# Detect whether the computer has an Intel Panther Lake GPU. - -lspci | grep -iE 'vga|3d|display' | grep -qi 'panther lake' diff --git a/core/system/scripts/nomarchy-hw-surface b/core/system/scripts/nomarchy-hw-surface deleted file mode 100755 index 4dbb185..0000000 --- a/core/system/scripts/nomarchy-hw-surface +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -# Detect whether the computer is a Microsoft Surface device. - -[[ $(cat /sys/class/dmi/id/sys_vendor 2>/dev/null) == "Microsoft Corporation" ]] && - nomarchy-hw-match "Surface" diff --git a/docs/SCRIPTS.md b/docs/SCRIPTS.md index 13566b9..e08bbfc 100644 --- a/docs/SCRIPTS.md +++ b/docs/SCRIPTS.md @@ -24,7 +24,7 @@ Phase B (per-batch PRs) refines those into `port-from-omarchy`, - `delete-dead` — Phase B verdict: remove and update callers. - `stub-with-notify` — Phase B verdict: temporary `notify-send` stub. -## Scripts (136) +## Scripts (132) | Script | Location | Callers | Status | Notes | | --- | --- | --- | --- | --- | @@ -59,11 +59,7 @@ Phase B (per-batch PRs) refines those into `port-from-omarchy`, | `nomarchy-hibernation-setup` | `core/system/scripts` | features/scripts/utils/nomarchy-menu | `kept` | | | `nomarchy-hook` | `features/scripts/utils` | core/system/scripts/nomarchy-battery-monitor,themes/engine/scripts/nomarchy-font-set, +1 more | `kept` | | | `nomarchy-hw-asus-rog` | `core/system/scripts` | features/scripts/utils/nomarchy-on-boot | `kept` | | -| `nomarchy-hw-framework16` | `core/system/scripts` | — | `unused?` | | -| `nomarchy-hw-intel` | `core/system/scripts` | — | `unused?` | | -| `nomarchy-hw-intel-ptl` | `core/system/scripts` | — | `unused?` | | -| `nomarchy-hw-match` | `core/system/scripts` | core/system/scripts/nomarchy-hw-framework16,core/system/scripts/nomarchy-hw-surface, +1 more | `kept` | | -| `nomarchy-hw-surface` | `core/system/scripts` | — | `unused?` | | +| `nomarchy-hw-match` | `core/system/scripts` | features/scripts/utils/nomarchy-on-boot | `kept` | | | `nomarchy-hw-vulkan` | `core/system/scripts` | features/scripts/utils/nomarchy-voxtype-install | `kept` | | | `nomarchy-launch-about` | `features/scripts/utils` | features/scripts/utils/nomarchy-menu | `kept` | | | `nomarchy-launch-audio` | `features/scripts/utils` | core/home/config/nomarchy/default/hypr/bindings/utilities.conf,features/desktop/waybar/config/config.jsonc, +2 more | `kept` | |