if [[ ! -z "$IS_GAMEMODE" ]]; then
kscreen-doctor output.1.rotation.normal 2>&1 | tee -a /tmp/bazrotfix.logkscreen-doctor output.1.rotation.normal earlier in nested desktop, it worked
left, nested should be normal, but previously normal was only required if nested got borked somehow.IS_GAMEMODE logic to be more robust, tested and it worksujustif [[ ! -z "$IS_GAMEMODE" ]]; then
#kscreen-doctor output.1.rotation.normal 2>&1 | tee -a /tmp/bazrotfix.logkscreen-doctor output.1.rotation.normalleftnormalIS_GAMEMODESTEAM_PID=$(cat $HOME/.steam/steam.pid)
STEAM_CMDLINE_PATH=/proc/$STEAM_PID/cmdline
STEAM_CMDLINE=$(cat $STEAM_CMDLINE_PATH)
IS_GAMEMODE=$(echo $STEAM_CMDLINE | grep gamepadui*)