From 0370ee7308c9fb8144ec8cd86fa299831a06f22c Mon Sep 17 00:00:00 2001 From: Anthony Axenov Date: Mon, 9 Mar 2026 09:48:55 +0800 Subject: [PATCH] new drotate util --- utils/.local/bin/drotate | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 utils/.local/bin/drotate diff --git a/utils/.local/bin/drotate b/utils/.local/bin/drotate new file mode 100755 index 0000000..7fca333 --- /dev/null +++ b/utils/.local/bin/drotate @@ -0,0 +1,28 @@ +#!/usr/bin/env bash + +# X11: +# xrandr --listactivemonitors +# xrandr --output $OUTPUT --rotate (normal|left|right|...) + +# 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-1' + +if [[ "$1" == "-h" || "$1" == "--help" ]]; then + cat <