Tent Mode Screen Rotation on a Framework 12 running Omarchy

Map F9 to a script that toggles 180° screen rotation for quick tent mode.

TL;DR: Map F9 to a script that toggles 180° screen rotation for quick tent mode.

The Framework 12 has a 360° hinge that allows you to completely flip the screen over and turn it into a tablet. That means you can also flip the screen over and have it stand in a low-footprint "tent mode" for watching video without the keyboard being in the way. To do this, the screen needs to be rotated 180°. This write-up shows how to map the F9 key to perform this rotation toggle.

Setup

Toggle Script

Create ~/.local/bin/toggle-rotate.sh:

#!/bin/bash
panel="eDP-1"
current=$(hyprctl monitors -j | jq -r --arg name "$panel" '.[] | select(.name==$name) | .transform')
if [ "$current" = "2" ]; then
  hyprctl keyword monitor "$panel,preferred,auto,auto,transform,0"
else
  hyprctl keyword monitor "$panel,preferred,auto,auto,transform,2"
fi

Make it executable:

chmod +x ~/.local/bin/toggle-rotate.sh

Key Binding

In Omarchy, Hyprland bindings are defined in ~/.config/hypr/bindings.conf.

Open this file and add:

bindd = , F9, Toggle rotate, exec, ~/.local/bin/toggle-rotate.sh

F9 is the Fn-layer key on the Framework 12 that has a monitor icon.

Reload Hyprland:

hyprctl reload

Usage

  • Press F9 → flips screen 180°.
  • Press F9 again → flips back.

Notes

  • Don’t edit hyprland.conf directly — Omarchy splits config into modular files like bindings.conf.
  • If Omarchy updates bind F9 in the future, unbind first:
unbind = F9
bindd = , F9, Toggle rotate, exec, ~/.local/bin/toggle-rotate.sh