gptouch.sh
is a script designed to manage screen orientation and touchscreen calibration on Linux systems using GNOME on Wayland. It provides a graphical interface for easy interaction and customization.
- Rotate the screen to various orientations: landscape, portrait (right or left), or inverted.
- Automatically adjust the touchscreen calibration to align with the screen orientation.
- Customize script paths and device identifiers via a GUI.
- Apply changes and reboot the system with user confirmation.
gnome-randr-rust
: Required for screen arrangement and rotation in GNOME on Wayland. Please note thatgnome-randr
is not developed by the author ofgptouch.sh
, and full credit forgnome-randr-rust
goes to its respective creators.Zenity
: Used for creating the script's GUI. It is commonly pre-installed on many Linux distributions.sudo
privileges: Necessary for modifying system configurations and performing a reboot.
-
Ensure Zenity, Cargo and gnome-randr are installed on your system:
- Debian:
apt install zenity
, Arch:pacman -S zenity
etc. - Cargo:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- gnome-randr:
cargo install gnome-randr
- Debian:
-
Download
gptouch.sh
and place it in a preferred directory. -
Make the script executable:
chmod +x /path/to/gptouch.sh
-
Run the script:
/path/to/gptouch.sh
-
If prompted, choose to modify the default settings for the script path, output display, and touchscreen device.
-
Select the desired screen orientation from the GUI options.
-
Confirm the changes and, if necessary, approve the system reboot to apply them.
-
Get current output name, e.g.
HDMI-1
orDP-3
etc:gnome-randr
-
Get touchscreen device name:
lsusb
orsudo dmesg | grep -i touch
- This script is specifically tailored for GNOME on Wayland. Compatibility may vary based on system configurations and GNOME/Wayland versions.
- It is recommended to test the script in a controlled environment before using it in a critical setup.
Contributions, issues, and feature requests are welcome! Feel free to check the issues page for contributing.
This project is available under the MIT License. Feel free to use and modify gptouch.sh
as needed.