Files
arthur-os/bin/omarchy-hw-match
T
2026-04-28 12:03:46 -04:00

8 lines
260 B
Bash
Executable File

#!/bin/bash
# omarchy:summary=Match against the computer's DMI product name or product family (case-insensitive).
# omarchy:args=<pattern>
grep -qi "$1" /sys/class/dmi/id/product_name 2>/dev/null ||
grep -qi "$1" /sys/class/dmi/id/product_family 2>/dev/null