File tree 1 file changed +4
-7
lines changed
system_files/deck/shared/usr/libexec
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 4
4
# Author: d3Xt3r
5
5
6
6
SYS_ID=" $( cat /sys/devices/virtual/dmi/id/product_name) "
7
+ IS_GAMEMODE=" $( cat /proc/* /comm | grep gamescope-ses* ) "
7
8
8
9
sleep 1
9
10
echo $( date ' +%Y-%m-%d %H:%M:%S' ) Starting Bazzite Desktop Orientation Fix script...| tee -a /tmp/bazrotfix.log
10
11
11
- IS_GAMEMODE=" $( cat /proc/* /comm | grep gamescope-ses* ) "
12
-
13
- if [[ ! -z " $IS_GAMEMODE " ]]; then
14
- exit 0
15
- fi
16
-
17
12
# This bit is needed to allow enough time for the desktop to load, otherwise the fix won't work
18
13
# Since Steam launches automatically in the Desktop mode in Bazzite-Deck, we can use it
19
14
# to determine whether or not the desktop has loaded.
@@ -30,7 +25,9 @@ kscreen-doctor --outputs 2>&1 | tee -a /tmp/bazrotfix.log
30
25
# Fix desktop orientation
31
26
# Rotation options: right, normal, left, inverted
32
27
echo $( 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
34
31
kscreen-doctor output.1.rotation.left 2>&1 | tee -a /tmp/bazrotfix.log
35
32
else
36
33
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