Skip to content

A small, hacky KDED module for handling automatic screen rotation on tablets and hybrid laptops.

License

Notifications You must be signed in to change notification settings

ZZZXXX0110/kded_rotation

 
 

Repository files navigation

Kded Rotation

KDED module for handling automatic screen rotation

Installation

Run ./install_kded_rotation.sh and install missing dependencies as needed.

You'll most likely need qt5-qtbase-devel, cmake-utils, extra-cmake-modules, iio-sensor-proxy, xrandr, qt5-qtsensors and kf5-kded-devel. Depending on your distribution, these packages might have different names. CMAKE will tell you which packages it is missing.

Usage

orientation-helper is where the actual screen rotation happens. This is achieved by calling xrandr --rotation $value, which works in most circumstances. You can adjust orientation-helper to fit your setup and rebuild to apply.

To reduce or increase the timer before the rotation happens, adjust timer.start(25) in screenrotator.cpp:

void ScreenRotator::startProgress() {
	if (progress == -1) {
		timer.start(25);
		progress = 0;
	}
}

About

A small, hacky KDED module for handling automatic screen rotation on tablets and hybrid laptops.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 41.2%
  • C++ 37.8%
  • CMake 21.0%