Unnamed repository; edit this file 'description' to name the repository.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Paul Buetow 50fbc5bc69 add start
2025-04-30 23:25:46 +03:00
autorotate.sh fix 2025-04-30 23:25:31 +03:00
LICENSE Auto rotate bash script for sway 2020-01-30 00:02:21 +03:00
README.md update readm 2024-08-28 12:39:43 +03:00
start.sh add start 2025-04-30 23:25:46 +03:00

sway-autorotate

This is a fork of https://github.com/tedk0n/autorotate_sway_script

This is for auto-rotating Sway on my Microsoft Surface Go 2 tablet running Fedora Linux.

Auto rotate bash script for sway.

Using the output of the monitor-sensor command (part of the iio-sensor-proxy package)

Usage example echo 'monitor-sensor | bash autorotate.sh &> autorotate.log' | at now

Script test and using on lenovo thinkpad helix. Variable WAYLANDINPUT is array devices input which will be rotated after turning the screen Device list can be viewed by command "swaymsg -t get_inputs"