Disable tablet configuration

Should use udev for these
This commit is contained in:
Henrik Lissner 2020-01-13 02:11:28 -05:00
parent 25f7a8e5e0
commit 690a2c2852
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -45,12 +45,14 @@
my.alias.teensyload = "sudo teensy-loader-cli -w -v --mcu=atmega32u4"; my.alias.teensyload = "sudo teensy-loader-cli -w -v --mcu=atmega32u4";
# For my intuos4 pro. My cintiq doesn't work on Linux though :( # For my intuos4 pro. My cintiq doesn't work on Linux though :(
services.xserver.wacom.enable = true; services.xserver.wacom.enable = true;
my.init = ''
# lock tablet to main display # TODO Move this to udev
if xinput list --id-only "Wacom Intuos Pro S Pen stylus"; then # my.init = ''
xinput map-to-output $(xinput list --id-only "Wacom Intuos Pro S Pen stylus") DVI-I-1 # # lock tablet to main display
xinput map-to-output $(xinput list --id-only "Wacom Intuos Pro S Pen eraser") DVI-I-1 # if xinput list --id-only "Wacom Intuos Pro S Pen stylus" 2>&1 >/dev/null; then
xinput map-to-output $(xinput list --id-only "Wacom Intuos Pro S Pen cursor") DVI-I-1 # xinput map-to-output $(xinput list --id-only "Wacom Intuos Pro S Pen stylus") DVI-I-1
fi # xinput map-to-output $(xinput list --id-only "Wacom Intuos Pro S Pen eraser") DVI-I-1
''; # xinput map-to-output $(xinput list --id-only "Wacom Intuos Pro S Pen cursor") DVI-I-1
# fi
# '';
} }