Extract omarchy-hw-touchpad and simplify conditionals
This commit is contained in:
+1
-1
@@ -170,7 +170,7 @@ show_share_menu() {
|
||||
show_toggle_menu() {
|
||||
local options=" Screensaver\n Nightlight\n Idle Lock\n Top Bar\n Workspace Layout\n Window Gaps\n 1-Window Ratio\n Monitor Scaling\n Laptop Display"
|
||||
|
||||
if hyprctl devices -j 2>/dev/null | jq -e '[.mice[] | select(.name | test("touchpad|trackpad"; "i"))] | length > 0' >/dev/null; then
|
||||
if [[ -n "$(omarchy-hw-touchpad)" ]]; then
|
||||
options="$options\n Touchpad"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user