7 lines
243 B
Bash
Executable File
7 lines
243 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# archypr: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"
|