#!/usr/bin/env bash

# omarchy:summary=Print the detected Hyprland touchpad or trackpad device name


"${BASH_SOURCE[0]%/*}/omarchy-on-hyprland" || exit 1

device=$(hyprctl devices -j | jq -r '[.mice[] | .name | select(test("touchpad|trackpad"; "i"))] | first // empty')
[[ -n $device ]] && echo "$device"
