Only show hybrid gpu toggle if hardware is available

This commit is contained in:
David Heinemeier Hansson committed 2026-04-22 15:05:26 +02:00
1 parent 57b779e249
commit 8953ee822a
3 files changed
+11 -3

No files matched your search

+6 -2
View File
@@ -184,9 +184,13 @@ show_toggle_menu() {
}
show_hardware_menu() {
local options="󰛧 Laptop Display\n Hybrid GPU"
local options="󰛧 Laptop Display"
if [[ -n "$(omarchy-hw-touchpad)" ]]; then
if omarchy-hw-hybrid-gpu; then
options="$options\n Hybrid GPU"
fi
if omarchy-hw-touchpad; then
options="$options\n󰟸 Touchpad"
fi