display-rotate
This commit is contained in:
11
tools/display-rotate.sh
Executable file
11
tools/display-rotate.sh
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# X11:
|
||||||
|
# xrandr --listactivemonitors
|
||||||
|
# xrandr --output $OUTPUT --rotate (left|right|normal|...)
|
||||||
|
|
||||||
|
# Wayland KDE: https://www.reddit.com/r/kde/comments/11vrbwc/how_do_i_rotate_the_screen_on_kde_with_wayland/
|
||||||
|
# kscreen-doctor --outputs
|
||||||
|
OUTPUT='HDMI-A-3'
|
||||||
|
DIRECTION="$1" # (left|right|normal|inverted)
|
||||||
|
kscreen-doctor "output.$OUTPUT.rotation.$DIRECTION"
|
||||||
Reference in New Issue
Block a user