xinput installieren:
Code: Alles auswählen
sudo apt install xinput
Listet alle Geräte auf:
xinput --list
Bash Skripte erstellen:
Verzeichnis erstellen
Code: Alles auswählen
mkdir $HOME/script/
Code: Alles auswählen
sudo nano $HOME/script/monitor_normal.sh
Code: Alles auswählen
#!/bin/sh
xrandr -o normal
xinput set-prop "NAME DEVICE" 'Coordinate Transformation Matrix' 1 0 0 0 1 0 0 0 1
Code: Alles auswählen
sudo chmod +x $HOME/script/monitor_normal.sh
Code: Alles auswählen
sudo nano $HOME/script/monitor_right.sh
Code: Alles auswählen
#!/bin/sh
xrandr -o right
xinput set-prop "NAME DEVICE" 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1
Code: Alles auswählen
sudo chmod +x $HOME/script/monitor_right.sh
Code: Alles auswählen
sudo nano $HOME/.trinity/Autostart/monitor_right.desktop
Code: Alles auswählen
[Desktop Entry]
Comment=
Comment[de]=
Exec[$e]='$HOME/script/monitor_right.sh'
GenericName=
GenericName[de]=
Icon=application-x-executable
MimeType=
Name=
Name[de]=
Path[$e]=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DCOP-ServiceType=
X-TDE-SubstituteUID=false
X-TDE-Username=
Code: Alles auswählen
sudo chmod +x $HOME/.trinity/Autostart/monitor_right.desktop