This commit is contained in:
parent
ce19d6a62c
commit
624ab42f73
26 changed files with 493 additions and 163 deletions
14
.local/bin/scripts/tablet
Executable file
14
.local/bin/scripts/tablet
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
EXT_MON="$(xrandr | grep -ow "\(DP-[0-9]\) connected" | cut -d " " -f 1)"
|
||||
|
||||
map() {
|
||||
xinput --map-to-output "UGTABLET 6 inch PenTablet Mouse" "$1"
|
||||
xinput --map-to-output "UGTABLET 6 inch PenTablet Pen (0)" "$1"
|
||||
xinput --map-to-output "UGTABLET 6 inch PenTablet Eraser (0)" "$1"
|
||||
}
|
||||
|
||||
if [ -n "$EXT_MON" ]; then
|
||||
map "$EXT_MON"
|
||||
else
|
||||
map 'eDP-1'
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue