Teil 2
This commit is contained in:
parent
d4ffef45e9
commit
b3be542fe4
35 changed files with 0 additions and 0 deletions
tablet/.config/scripts
10
tablet/.config/scripts/maptooutput.sh
Executable file
10
tablet/.config/scripts/maptooutput.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
OUTPUT=${1:-LVDS1}
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
IDS=$(./wacomdevices.sh)
|
||||
|
||||
for i in $IDS; do xsetwacom set $i MapToOutput $OUTPUT; done
|
||||
|
18
tablet/.config/scripts/tabletmode.sh
Executable file
18
tablet/.config/scripts/tabletmode.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
INTERN="LVDS1"
|
||||
IDS=$(./wacomdevices.sh)
|
||||
|
||||
if [ "$1" == "on" ]; then
|
||||
#xrandr --output $INTERN --rotate left
|
||||
xrandr --output $INTERN --rotate inverted
|
||||
|
||||
for i in $IDS; do xsetwacom set $i Rotate half; done
|
||||
else
|
||||
#xrandr --output $INTERN --rotate left
|
||||
xrandr --output $INTERN --rotate normal
|
||||
|
||||
for i in $IDS; do xsetwacom set $i Rotate none; done
|
||||
fi
|
3
tablet/.config/scripts/wacomdevices.sh
Executable file
3
tablet/.config/scripts/wacomdevices.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
xsetwacom list dev | awk -F'\t' '{print $2}' | cut -c 5-
|
Loading…
Add table
Add a link
Reference in a new issue