Hey all
So this might be old news, but if not, it's an exciting development for xournal note takers. Here's the relevant sections of my xorg.conf:
Code:
Section "InputDevice"
Identifier "stylus"
Driver "wacom"
Option "Device" "/dev/input/by-path/pci-0000:00:0b.1-usb-0:2.3:1.0-event-mouse"
Option "Type" "stylus"
Option "USB" "on"
Option "Button2" "2" # make side-switch a middle-click button
Option "TopX" "218"
Option "TopY" "198"
Option "BottomX" "26271"
Option "BottomY" "16520"
EndSection
Section "InputDevice"
Identifier "eraser"
Driver "wacom"
Option "Device" "/dev/input/by-path/pci-0000:00:0b.1-usb-0:2.3:1.0-event-mouse"
Option "Type" "eraser"
Option "USB" "on"
Option "Button1" "3" # make eraser a right-click
EndSection
Add the
Code:
Option "Button2" "2" # make side-switch a middle-click button
and
Code:
Option "Button1" "3" # make side-switch a right-click button
In the stylus and eraser sections of your xorg, respectively. Restart X with ctrl alt backspace, and you should now be able to set button 2 and 3 settings in xournal - Button 2 is your pen button and button 3 is the eraser!
It is also worthy to note that the pen button no longer serves as a right click - the eraser does however. If you want to reverse this, simply use these lines instead:
In the stylus section:
Code:
Option "Button2" "3" # make side-switch a right-click button
In the eraser section:
Code:
Option "Button1" "2" # make side-switch a middle-click button
This works for me, so hopefully it works for all of you as well!
EDIT: Cleaned up the code tags, thanks Favux for catching all those errors. I will try gimp later tonight and see what I've broken by doing this
Bookmarks