aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin/wacommode
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-02-20 14:51:33 +0100
committerlonkaars <loek@pipeframe.xyz>2022-02-20 14:51:33 +0100
commit20dd2e2ad6b3b0071395fa99937c1d599cca75d4 (patch)
treef46e4ea8f23553b0f72440c983015bbd448722ed /.local/share/bin/wacommode
parent3fc865c55d283f13101966b782ae44aec09a8b65 (diff)
better wacom config script
Diffstat (limited to '.local/share/bin/wacommode')
-rwxr-xr-x.local/share/bin/wacommode45
1 files changed, 45 insertions, 0 deletions
diff --git a/.local/share/bin/wacommode b/.local/share/bin/wacommode
new file mode 100755
index 0000000..c213118
--- /dev/null
+++ b/.local/share/bin/wacommode
@@ -0,0 +1,45 @@
+#!/bin/sh
+
+defaults () {
+ # smoothing
+ setwacom Suppress 2
+ setwacom RawSample 5
+
+ # full pen area
+ setwacom Area 0 0 15200 9500
+
+ setwacom Rotate none
+}
+
+topleft() {
+ notify-send "screen 1 only (landscape)"
+
+ setwacom MapToOutput 1920x1080+0+410
+}
+
+bottomleft() {
+ notify-send "screen 2 only (portrait)"
+
+ setwacom Rotate ccw
+ setwacom MapToOutput 1080x1920+1920+0
+}
+
+topright() {
+ notify-send "screen 1 only [osu] (landscape)"
+
+ setwacom Suppress 0
+ setwacom RawSample 1
+
+ setwacom Area 0 1623 7600 5898
+ setwacom MapToOutput 1920x1080+0+410
+}
+
+bottomright() {
+ notify-send "both screens (landscape)"
+
+ setwacom Area 0 0 11875 7600
+ setwacom MapToOutput 3000x1920+0+0
+}
+
+defaults
+$1