Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: Color switching for XP Pen #170

Closed
jahagirdar opened this issue Oct 8, 2022 · 4 comments
Closed

Documentation: Color switching for XP Pen #170

jahagirdar opened this issue Oct 8, 2022 · 4 comments
Labels

Comments

@jahagirdar
Copy link

jahagirdar commented Oct 8, 2022

From the man page it is not clear how to implement color switching with XP-Pen Tablet.
My configuration file is

"red Pen" = PEN (size=5 color="red");
"blue Pen" ="red Pen" (color="blue");
 
"default"= "red Pen";
"default"[SHIFT]= "blue Pen";
"10 inch PenTablet Pen (0)"  = "red Pen";
"10 inch PenTablet Pen (0)"[SHIFT]  = "blue Pen";

I am executing the following commands in my terminal.

xinput --create-master mpx 
xinput --reattach 16 18
gromit-mpx
gromit-mpx --toggle 0

My expectation was hitting the shift key and scribbling with the tablet pen will change color. it does not.
Looking at the bug report I can see other are using their tablet with colors. but there was no reference instruction or configuration file :(

@bk138 bk138 added the question label Oct 12, 2022
@bk138
Copy link
Owner

bk138 commented Oct 12, 2022

Hi @jahagirdar, your expectation is right, it should work. I can only offer some ideas why it would not:

@jahagirdar
Copy link
Author

The Physical keyboard is on a different master... "Virtual core keyboard"

I checked the keys on XP-Pen tablet with xev. They generated the following code
Key1:
Key2:
Key3: 'b'
Key4: 'e'
Key5: '^Z'
Key6: '^S'
Key7: '^Z'
Key8: '^Y'
Can this be used in the configuration file to change the pen behavior?

@itcultus
Copy link

This is the configuration I use with my XP-PEN and works relatively OK.

"red Pen" = PEN (size=4 color="red");
"blue Pen" = "red Pen" (color="#4682B4");
"yellow Pen" = "red Pen" (color="#FE8B1B");
"green Marker" = PEN (size=5 color="green" arrowsize=2);

"Eraser" = ERASER (size = 80);

"XP-PEN STYLUS Pen (0)" = "red Pen";
"XP-PEN ERASER Eraser (0)" = "Eraser";

"default" = "red Pen";
"default"[SHIFT] = "blue Pen";
"default"[CONTROL] = "green Marker";
"default"[META] = "yellow Pen";
"default"[Button3] = "Eraser";

@bk138
Copy link
Owner

bk138 commented Sep 6, 2023

OK, closing then.

@bk138 bk138 closed this as completed Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants