/ de-omarchy / bin / omarchy-hw-touchpad
swadhinbiswas Initial de-omarchy: Omarchy UI layer for Arch-based distros · 8/22/2026
9f393b2
7 lines · 243 Bytes
1
2
3
4
5
6
7
#!/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"