forked from ublue-os/bazzite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Further setup script cleanup fix(legion): Correct rotation on KDE Wayland (Thanks d3Xt3r)
- Loading branch information
Showing
4 changed files
with
55 additions
and
18 deletions.
There are no files selected for viewing
Empty file.
28 changes: 28 additions & 0 deletions
28
system_files/deck/shared/usr/libexec/bazzite-handle-legion-go-rotation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/bash | ||
|
||
# This script fixes the screen orientation in the Desktop Mode in Bazzite-Deck KDE | ||
# Author: d3Xt3r | ||
|
||
sleep 1 | ||
echo $(date '+%Y-%m-%d %H:%M:%S') Starting Bazzite Desktop Orientation Fix script...| tee -a /tmp/bazrotfix.log | ||
|
||
# This bit is needed to allow enough time for the desktop to load, otherwise the fix won't work | ||
# Since Steam launches automatically in the Desktop mode in Bazzite-Deck, we can use it | ||
# to determine whether or not the desktop has loaded. | ||
while ! pgrep -x "steam" > /dev/null; do | ||
echo $(date '+%Y-%m-%d %H:%M:%S') Waiting for Steam to start.. | tee -a /tmp/bazrotfix.log | ||
sleep 0.5 | ||
done | ||
|
||
sleep 1 | ||
|
||
# Debug: Get current outputs | ||
kscreen-doctor --outputs 2>&1 | tee -a /tmp/bazrotfix.log | ||
|
||
# Fix desktop orientation | ||
# Rotation options: right, normal, left, inverted | ||
echo $(date '+%Y-%m-%d %H:%M:%S') Fixing desktop orientation... | tee -a /tmp/bazrotfix.log | ||
kscreen-doctor output.1.rotation.normal 2>&1 | tee -a /tmp/bazrotfix.log | ||
|
||
echo $(date '+%Y-%m-%d %H:%M:%S') Ending Bazzite Desktop Orientation Fix script >> /tmp/bazrotfix.log | ||
echo -e '\n' >> /tmp/bazrotfix.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters