mirror of
https://github.com/GRFreire/scripts.git
synced 2026-01-08 04:19:39 +00:00
create autoxsetwacom script
This commit is contained in:
parent
ea41b37b04
commit
80e6474a7c
7
autoxsetwacom/README.md
Normal file
7
autoxsetwacom/README.md
Normal 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
9
autoxsetwacom/autoxsetwacom.sh
Executable 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
1
bin/autoxsetwacom
Symbolic link
@ -0,0 +1 @@
|
||||
../autoxsetwacom/autoxsetwacom.sh
|
||||
Loading…
Reference in New Issue
Block a user