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

10 lines
244 B
Bash
Executable File

#!/bin/bash
# omarchy:summary=Detect whether the system has an active hybrid GPU configuration
if command -v supergfxctl &>/dev/null; then
supergfxctl -s 2>/dev/null | grep -qw Hybrid
else
(($(lspci | grep -cE 'VGA|3D|Display') >= 2))
fi