File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
system_files/deck/shared/usr/libexec Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 44# Author: d3Xt3r
55
66SYS_ID=" $( cat /sys/devices/virtual/dmi/id/product_name) "
7+ IS_GAMEMODE=" $( cat /proc/* /comm | grep gamescope-ses* ) "
78
89sleep 1
910echo $( date ' +%Y-%m-%d %H:%M:%S' ) Starting Bazzite Desktop Orientation Fix script...| tee -a /tmp/bazrotfix.log
1011
11- IS_GAMEMODE=" $( cat /proc/* /comm | grep gamescope-ses* ) "
12-
13- if [[ ! -z " $IS_GAMEMODE " ]]; then
14- exit 0
15- fi
16-
1712# This bit is needed to allow enough time for the desktop to load, otherwise the fix won't work
1813# Since Steam launches automatically in the Desktop mode in Bazzite-Deck, we can use it
1914# to determine whether or not the desktop has loaded.
@@ -30,7 +25,9 @@ kscreen-doctor --outputs 2>&1 | tee -a /tmp/bazrotfix.log
3025# Fix desktop orientation
3126# Rotation options: right, normal, left, inverted
3227echo $( date ' +%Y-%m-%d %H:%M:%S' ) Fixing desktop orientation... | tee -a /tmp/bazrotfix.log
33- if [[ " :83E1:" =~ " :$SYS_ID " ]]; then
28+ if [[ -z " $IS_GAMEMODE " ]]; then
29+ kscreen-doctor output.1.rotation.normal 2>&1 | tee -a /tmp/bazrotfix.log
30+ elif [[ " :83E1:" =~ " :$SYS_ID " ]]; then
3431 kscreen-doctor output.1.rotation.left 2>&1 | tee -a /tmp/bazrotfix.log
3532else
3633 kscreen-doctor output.1.rotation.normal 2>&1 | tee -a /tmp/bazrotfix.log
You can’t perform that action at this time.
0 commit comments