update theme

This commit is contained in:
2023-10-13 12:30:13 +02:00
parent 9346aee86d
commit f8070f6e51
37 changed files with 3017 additions and 3364 deletions

View File

@@ -1,5 +1,8 @@
#+TITLE: Drawing Tablet - Xournal
#+SETUPFILE: ./setup/org-setup-file.org
#+PROPERTY: header-args:bash :comments both :mkdirp yes
#+PROPERTY: header-args:bash+ :shebang "#!/usr/bin/env bash"
#+PROPERTY: header-args:bash+ :tangle-mode (identity #o555)
* =xournalpp=
@@ -50,3 +53,48 @@ Special lines in =settings.xml=:
<property name="eagerPageCleanup" value="true"/>
<property name="pageTemplate" value="xoj/template&#10;copyLastPageSettings=false&#10;size=600.0x400.0&#10;backgroundType=plain&#10;backgroundColor=#ffffff&#10;"/>
#+end_src
* Automatically configure tablet
See [[https://unix.stackexchange.com/questions/65788/why-doesnt-xsetwacom-work-from-udev][here]].
=sudoedit /etc/udev/rules.d/99-huion-tablet.rules=
#+begin_src conf :tangle no
SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="256c", ATTRS{idProduct}=="006d", RUN="/home/thomas/.local/scripts/setup-huion-tablet.sh"
#+end_src
Then two scripts are used.
The first one is just used to call the second one in the background
#+begin_src bash :tangle ~/.local/scripts/setup-huion-tablet.sh
/home/thomas/.local/scripts/setup-huion-tablet-script.sh &
#+end_src
And this is the second one with the actual config:
#+begin_src bash :tangle ~/.local/scripts/setup-huion-tablet-script.sh
sleep 2
DISPLAY=:0
XAUTHORITY=/home/thomas/.Xauthority
export DISPLAY XAUTHORITY
# Pen Buttons
xsetwacom set "HUION Huion Tablet_H320M Pen stylus" button 1 1 # Left click
xsetwacom set "HUION Huion Tablet_H320M Pen stylus" button 2 2 # Right click
xsetwacom set "HUION Huion Tablet_H320M Pen stylus" button 3 3 # Middle click
# Top Buttons
xsetwacom set "HUION Huion Tablet_H320M Pad pad" button 1 key Ctrl T # Tools
xsetwacom set "HUION Huion Tablet_H320M Pad pad" button 2 key Ctrl Shift A # Hand Tool
xsetwacom set "HUION Huion Tablet_H320M Pad pad" button 3 key Ctrl Shift D # Default Tool
# Round Buttons (Top, Bottom, Middle, Left, Right)
xsetwacom set "HUION Huion Tablet_H320M Pad pad" button 8 key Ctrl Shift + # Zoom
xsetwacom set "HUION Huion Tablet_H320M Pad pad" button 9 key Ctrl - # Unzoom
xsetwacom set "HUION Huion Tablet_H320M Pad pad" button 10 key Ctrl S # Save
xsetwacom set "HUION Huion Tablet_H320M Pad pad" button 11 key Ctrl Z # Undo
xsetwacom set "HUION Huion Tablet_H320M Pad pad" button 12 key Ctrl Y # Redo
# Bottom Buttons
xsetwacom set "HUION Huion Tablet_H320M Pad pad" button 13 key Ctrl Shift O # Select
xsetwacom set "HUION Huion Tablet_H320M Pad pad" button 14 key Ctrl Shift E # Errase
xsetwacom set "HUION Huion Tablet_H320M Pad pad" button 15 key Ctrl Q # Quit
#+end_src