Files
arthur-os/bin/omarchy-hw-touchpad
2026-04-28 12:03:46 -04:00

7 lines
243 B
Bash
Executable File

#!/bin/bash
# omarchy:summary=Print the detected Hyprland touchpad or trackpad device name
device=$(hyprctl devices -j | jq -r '[.mice[] | .name | select(test("touchpad|trackpad"; "i"))] | first // empty')
[[ -n $device ]] && echo "$device"