/ de-omarchy / bin / omarchy-hw-touchscreen
swadhinbiswas Initial de-omarchy: Omarchy UI layer for Arch-based distros · 8/22/2026
9f393b2
7 lines · 220 Bytes
1
2
3
4
5
6
7
#!/bin/bash

# omarchy:summary=Print the detected Hyprland touchscreen or tablet device name

device=$(hyprctl devices -j | jq -r '[.touch[]?.name, .tablets[]?.name] | first // empty')
[[ -n $device ]] && echo "$device"