diff options
-rw-r--r-- | .config/xbindkeys/main | 8 | ||||
-rwxr-xr-x | .local/share/bin/wacommode | 45 |
2 files changed, 49 insertions, 4 deletions
diff --git a/.config/xbindkeys/main b/.config/xbindkeys/main index e78f6e1..6199b61 100644 --- a/.config/xbindkeys/main +++ b/.config/xbindkeys/main @@ -45,13 +45,13 @@ -"sh -c 'export PATH=~/.local/share/bin:$PATH && setwacom Area 0 0 15200 9500 && setwacom MapToOutput 1920x1080+0+410 && setwacom Suppress 2 && setwacom RawSample 5'" +"~/.local/share/bin/wacommode topleft" Mod1 + Control + Mod4 + 1 -"sh -c 'export PATH=~/.local/share/bin:$PATH && setwacom Area 0 0 15200 9500 && setwacom MapToOutput 1920x1080+1920+0 && setwacom Suppress 2 && setwacom RawSample 5'" +"~/.local/share/bin/wacommode bottomleft" Mod1 + Control + Mod4 + 2 -"sh -c 'export PATH=~/.local/share/bin:$PATH && setwacom Area 0 1623 7600 5898 && setwacom MapToOutput 1920x1080+0+410 && setwacom Suppress 0 && setwacom RawSample 1'" +"~/.local/share/bin/wacommode topright" Mod1 + Control + Mod4 + 3 -"sh -c 'export PATH=~/.local/share/bin:$PATH && setwacom Area 0 0 11875 7600 && setwacom MapToOutput 3000x1920+0+0 && setwacom Suppress 2 && setwacom RawSample 5'" +"~/.local/share/bin/wacommode bottomright" Mod1 + Control + Mod4 + 4 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 |