Why does my Bash variable come back empty when the command works in the terminal?
I'm trying to update an old Steam Deck screen-rotation script. The original version used xrandr, but after switching from X11 to Wayland, I rewrote it to use kscreen-doctor…