mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
7 lines
243 B
Bash
Executable File
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"
|