Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Workaround for screen autorotation issue on Wayland

License

Notifications You must be signed in to change notification settings

vincenzocaputo/wrotate-screen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wrotate-screen

This is a workaround for screen autorotation issue on GNOME Wayland.

The script relies on rotate-monitor key shortcut:

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

You may have to adjust the key code used in the script in order to make the script working properly. See /usr/include/linux/input-event-codes.h for available key codes.

Requirements

  • iio-sensor-proxy
  • ydotool

Quick Install

git clone https://github.com/vincenzocaputo/wrotate-screen
cd wrotate-screen
sudo cp rotate-screen.sh /usr/local/bin/rotate-screen.sh
sudo chmod +x /usr/local/bin/rotate-screen.sh
sudo cp ydotoold.service /usr/local/lib/systemd/system/ydotoold.service
sudo cp rotate-screen.service /usr/local/lib/systemd/system/rotate-screen.service
sudo systemctl enable ydotoold.service
sudo systemctl start ydotoold.service
sudo systemctl enable rotate-screen.service
sudo systemctl start rotate-screen.service

About

Workaround for screen autorotation issue on Wayland

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages