Skip to content

Instantly share code, notes, and snippets.

View addam's full-sized avatar

Addam Dominec addam

View GitHub Profile
@Migacz85
Migacz85 / autorotation.sh
Last active March 18, 2023 18:31
Autorotation of your linux display script. Tested on Manjaro KDE, firstly go to https://github.com/hadess/iio-sensor-proxy, make and install (dont worry that is for GNOME ). When installed correctly monitor-sensor should work from command line giving you outputs from sensors. On the end make that script, and execute. It should work. Enjoy :)
#!/bin/bash
#This script will automaticly rotate your screen and change correctly touches from the screen.
#Before running the script:
#go to https://github.com/hadess/iio-sensor-proxy and and follow all steps to install the code.
#find your TOUCHPAD, and TRANSFORM, variables. You can find them using
#typing in terminal:
#xinput list
#tested on hp x360 13s-s150sa, manjaro kde
#in case when you dont want install iio-sensor-proxy you can use this script:
#https://gist.github.com/tuxflo/5b400c86a5ebde871d94c6bff94ad6cb