From 64282d4a933004ef32f34bb44d18c321abb76445 Mon Sep 17 00:00:00 2001
From: Walmes Zeviani <walmes@ufpr.br>
Date: Mon, 26 Jun 2023 16:12:07 -0400
Subject: [PATCH] Improvements.

---
 huion_h1060p_configure.sh       | 3 ++-
 huion_h1060p_install_drivers.sh | 4 ++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/huion_h1060p_configure.sh b/huion_h1060p_configure.sh
index 8410731..715c990 100644
--- a/huion_h1060p_configure.sh
+++ b/huion_h1060p_configure.sh
@@ -33,7 +33,8 @@ lsusb | grep '256c:006d'
 xsetwacom --list devices
 
 # Nome da mesa digitalizadora.
-WACOM=$(xsetwacom --list devices | grep "STYLUS" | awk '{print gensub(/(.+) stylus.*/, "\\1", "g")}')
+# WACOM=$(xsetwacom --list devices | grep "STYLUS" | awk '{print gensub(/(.+) stylus.*/, "\\1", "g")}')
+WACOM=$(xsetwacom --list devices | grep "HID 256c:006d stylus" | awk '{print gensub(/(.+) stylus.*/, "\\1", "g")}')
 echo $WACOM
 
 # Monitores disponíveis.
diff --git a/huion_h1060p_install_drivers.sh b/huion_h1060p_install_drivers.sh
index 9c8b8ba..ab338eb 100644
--- a/huion_h1060p_install_drivers.sh
+++ b/huion_h1060p_install_drivers.sh
@@ -60,6 +60,10 @@ EndSection
 # HID 256c:006d Touch Strip pad   	id: 23	type: PAD
 # HID 256c:006d Dial pad          	id: 24	type: PAD
 
+# ATTENTION: aqui acaba a instalação dos drives. A configuração para uso
+# está no arquivo `huion_h1060p_configure.sh`. Não precisa rodar o
+# restante deste arquivo.
+
 #-----------------------------------------------------------------------
 
 # To print the documentation.
-- 
GitLab