Add a toggle for touchscreen on supported devices (#5510)
* Add minimum brightness cap to prevent OLED displays turning off * Revert "Add minimum brightness cap to prevent OLED displays turning off" This reverts commit fe855ecf9aeacfa1b9ffcff3d43adb10908435e5. * Add touchscreen toggle support * Use finger glyph --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
co-authored by
David Heinemeier Hansson
parent
c078d7ad05
commit
cdb9694360
@@ -194,10 +194,15 @@ show_hardware_menu() {
|
||||
options="$options\n Touchpad"
|
||||
fi
|
||||
|
||||
if omarchy-hw-touchscreen; then
|
||||
options="$options\n Touchscreen"
|
||||
fi
|
||||
|
||||
case $(menu "Toggle" "$options") in
|
||||
*Laptop*) omarchy-hyprland-monitor-internal toggle ;;
|
||||
*Mirror*) omarchy-hyprland-monitor-internal-mirror toggle;;
|
||||
*Touchpad*) omarchy-toggle-touchpad ;;
|
||||
*Touchscreen*) omarchy-toggle-touchscreen ;;
|
||||
*"Hybrid GPU"*) present_terminal omarchy-toggle-hybrid-gpu ;;
|
||||
*) back_to show_trigger_menu ;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user