A little script to toggle between portrait and landscape mode on your handheld, nifty for comic/webtoon consumption in your favorite nesting position. News n’ stuff too if you’re a smelly grown-up.
#!/bin/sh
# current state checker
IS_ROTATED="/tmp/screen_rotate_state"
# check if rotated
if [ -f "$IS_ROTATED" ]; then
kscreen-doctor output.1.rotation.right
rm "$IS_ROTATED"
else
kscreen-doctor output.1.rotation.none
touch "$IS_ROTATED"
fi
Newbies: To execute from a terminal, save file in your path, (I like ~/.local/bin), and don’t forget to make it executable: chmod +x mangaMode.sh
Pin to task bar for quick n easy access, can also make a keyboard (or grip button combo) shortcut in kde’s system settings.
Simulates a stroke if you try to use the mouse, but touch is fine. If anyone knows a way to rotate mouse input in wayland, please do chime in, I’m stumped. I like Komikku for gathering/reading, maybe there’s something better? Ciao ![]()