create autoxsetwacom script

This commit is contained in:
Guilherme Rugai Freire 2022-03-20 19:13:26 -03:00
parent ea41b37b04
commit 80e6474a7c
No known key found for this signature in database
GPG Key ID: FC05BE5CD322C427
3 changed files with 17 additions and 0 deletions

7
autoxsetwacom/README.md Normal file
View File

@ -0,0 +1,7 @@
# autoxsetwacom
## About
List wacom STYLUS device and set its area to the first monitor, while respection the 16/9 aspect ratio
## Requirements
- xf86-input-wacom

9
autoxsetwacom/autoxsetwacom.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
# List wacom STYLUS device and set its area to the first monitor, while respection the 16/9 aspect ratio
device_id="$(xsetwacom list devices | grep STYLUS | cut -f2 | cut -d' ' -f2)"
xsetwacom set "$device_id" MapToOutput 1920x1080+0+0
xsetwacom set "$device_id" Area 0 0 15200 8550

1
bin/autoxsetwacom Symbolic link
View File

@ -0,0 +1 @@
../autoxsetwacom/autoxsetwacom.sh