Repository navigation
Omarchy + Rotation on Framework 12 #848
2disbetter
started this conversation in
Manual
Replies: 1 comment
|
I have also created an application that will do this same thing far more efficiently and with far less memory. (A mere 5 meg) It uses the toggle script here as well, so there is some overlap between these two methods. You can the application, FW12Rotate here: Any feedback there through issues or here as comments is appreciated. I hope you find it useful. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Omarchy runs perfectly on a Framework 13 out of the box.
However, it gets ALMOST there on a Framework 12. If you follow the Framework Arch install guide (essentially installing the Framework specific stuff for the rotation functionality, etc.) then the driver needed for rotation will be installed and will be functional.
Hyprland, however, does not have any automatic mechanisms in place to do anything with the info the sensor is outputting.
You can write a sh script that you can have hyprland exec-once on start up that will handle all of this for you.
Couple this with a key combo to toggle a file to enable or disable rotation and it will work fully.
Here is the rotate-screen.sh contents which should be placed in ~/.config/hypr/:
Technically you should only need “eDP-1,transform,1”, but in my testing this did not work. Note that the 1.2 here sets scaling. You will want this to match whatever you have set in the monitor.conf, which is found in the same folder all of these files are in. Makes sure this matches or you’ll be changing your scaling every time you rotate.
Make sure you make this script executable and set the proper permissions:
chmod +x ~/.config/hypr/rotate-screen.shThen you’ll need to add the following to your exec-once area of hyprland.conf:
exec-once = ~/.config/hypr/rotate-screen.shNext you’ll need to create the toggle script to allow you to enable and disable rotation. So create another sh script in the same folder (~/.config/hypr/). Call this file toggle-rotation.sh:
Save and set permissions on it as well:
chmod +x ~/.config/hypr/toggle-rotation.shLastly we can create the keyboard combo that will allow us to enable and disable rotation. When enabling or disabling you will get a notification about the status of rotation that you just set.

So add the following binding to your hyprland.conf file in the same folder:
bind = SUPER, R, exec, ~/.config/hypr/toggle-rotation.shYou can make this whatever key binding you wish. This is probably already used under a normal unmodified Omarchy install, just FYI.
Save everything. You can force hyprland to relaunch through a super+esc and selecting relaunch, or you can just reboot.
Rotation should now work. Try it out just to confirm.
The last thing to add is a possible icon on the waybar that you can click to change rotation (ie: on or off) and to have a visual indicator that it is enabled or not. I have not been able to get that working just yet, but will add to this whenever I manage it.
All reactions