[Bin] Begin to fix wacom-setup, still bugged, see TODO

This commit is contained in:
Lucien Cartier-Tilet 2021-02-04 09:14:14 +01:00
parent 051a4a05de
commit 84de2cce7e
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -293,14 +293,9 @@ I made a small and quick utility to set up my Wacom tablet so it is only bound t
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: Wacom_setup-Set_our_variables-3cb6d58e :CUSTOM_ID: Wacom_setup-Set_our_variables-3cb6d58e
:END: :END:
Lets first declare our function that will be called to set our variables.
#+BEGIN_SRC fish
function set_device
#+END_SRC
We need some variables in order to correctly set our tablet. First, lets get declare what the name of our tablet is, and what the name of its touchpad is. We need some variables in order to correctly set our tablet. First, lets get declare what the name of our tablet is, and what the name of its touchpad is.
#+BEGIN_SRC fish #+BEGIN_SRC fish
set -g DEVICE "Wacom USB Bamboo PAD Pen stylus" set -g DEVICE "Wacom Co.,Ltd. Bamboo Pad, USB stylus"
set -g DEVICETOUCH "Wacom USB Bamboo PAD Finger touch" set -g DEVICETOUCH "Wacom USB Bamboo PAD Finger touch"
#+END_SRC #+END_SRC
@ -322,11 +317,6 @@ Now we can get the X and Y areas.
set -g AREAY (echo $AREATOT | awk '{print $4}') set -g AREAY (echo $AREATOT | awk '{print $4}')
#+END_SRC #+END_SRC
Now lets close our function.
#+BEGIN_SRC fish
end
#+END_SRC
*** Select our screen *** Select our screen
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: Wacom_setup-Select_our_screen-7822c0c3 :CUSTOM_ID: Wacom_setup-Select_our_screen-7822c0c3
@ -428,11 +418,22 @@ end
:END: :END:
Back to the main body of the script, we can now launch the functions sequencially. Back to the main body of the script, we can now launch the functions sequencially.
#+BEGIN_SRC fish #+BEGIN_SRC fish
set_device
set_screen set_screen
adjust_device adjust_device
#+END_SRC #+END_SRC
*** TODO Fix this script :noexport:
:PROPERTIES:
:CUSTOM_ID: cli-utilities-Wacom-setup-Fix-this-script-76ddec7c
:END:
When running this script, I get the following error:
#+BEGIN_SRC text
Unable to find an output 'HDMI1'.
unable to find device Wacom USB Bamboo PAD Finger touch
Cannot find device 'Wacom USB Bamboo PAD Finger touch'.
#+END_SRC
The first one is caused by ~xsetwacom~. The second one, I do not know where I should find ~Wacom USB Bamboo PAD Finger touch~.
* Emacs stuff * Emacs stuff
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: Emacs-stuff-8e76efd4 :CUSTOM_ID: Emacs-stuff-8e76efd4