mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Only show hybrid gpu toggle if hardware is available
This commit is contained in:
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
(($(lspci | grep -cE 'VGA|3D|Display') >= 2))
|
||||
@@ -1,3 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
hyprctl devices -j | jq -r '[.mice[] | .name | select(test("touchpad|trackpad"; "i"))] | first // empty'
|
||||
device=$(hyprctl devices -j | jq -r '[.mice[] | .name | select(test("touchpad|trackpad"; "i"))] | first // empty')
|
||||
[[ -n $device ]] && echo "$device"
|
||||
|
||||
+6
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user