Skip to content

Hacky solution for getting auto screen rotation to work under GNOME-Wayland

Notifications You must be signed in to change notification settings

Servostar/FlippyGome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FlippyGome

Hacky solution for getting auto screen rotation to work under GNOME-Wayland. It works by pressing a key combination in the background, rotating the screen. The system service detects changes in the sensor using iio-sensor-proxy, calculates the amount of keypresses and then executes the strokes with ydotool.

Requirements

  • iio-sensor-proxy
  • ydotool

Install ydotool for RHEL/CentOS/Fedora:

sudo dnf install ydotool

Install

Run

gsettings set org.gnome.mutter.keybindings rotate-monitor ['XF86RotateWindows', '<Control>F8']

in order to install the keybind required to rotate the screen itself. Clone this repository. Then run install.sh. Done.

About

Hacky solution for getting auto screen rotation to work under GNOME-Wayland

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages