Toggle hybrid GPU mode via supergfxctl (#4277)

* Toggle hybrid GPU mode via supergfxctl

Very useful for Asus G14 and other laptops with NVIDIA + AMD iGPU
combos.

* Use correct exit

* Simplify

* Wording

* Revise switching process

* Spacing

* These are sudo actions

* Make it exe

* No need for extensions

Matches existing style

* Relying on the new config should be enough since we are restarting anyway

* Prevent race condition

* Reminder to add to OPR
This commit is contained in:
David Heinemeier Hansson
2026-01-19 16:11:23 -05:00
committed by GitHub
parent 4701726c83
commit 2c7b283aef
4 changed files with 88 additions and 1 deletions

View File

@@ -88,10 +88,11 @@ show_learn_menu() {
}
show_trigger_menu() {
case $(menu "Trigger" " Capture\n Share\n󰔎 Toggle") in
case $(menu "Trigger" " Capture\n Share\n󰔎 Toggle\n Tweaks") in
*Capture*) show_capture_menu ;;
*Share*) show_share_menu ;;
*Toggle*) show_toggle_menu ;;
*Tweaks*) show_tweaks_menu ;;
*) show_main_menu ;;
esac
}
@@ -143,6 +144,13 @@ show_toggle_menu() {
esac
}
show_tweaks_menu() {
case $(menu "Tweaks" " Toggle Hybrid GPU") in
*"Toggle Hybrid GPU"*) present_terminal omarchy-toggle-hybrid-gpu ;;
*) show_trigger_menu ;;
esac
}
show_style_menu() {
case $(menu "Style" "󰸌 Theme\n Font\n Background\n Hyprland\n󱄄 Screensaver\n About") in
*Theme*) show_theme_menu ;;