Skip to content

Commit

Permalink
feat(deck): Add Loki Max to rotation fix script and nested desktop de…
Browse files Browse the repository at this point in the history
…faults
  • Loading branch information
KyleGospo committed Jan 27, 2024
1 parent a30b483 commit df51d82
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion system_files/deck/kinoite/usr/libexec/bazzite-rotation-fix
Expand Up @@ -33,7 +33,7 @@ kscreen-doctor --outputs 2>&1 | tee -a /tmp/bazrotfix.log
echo $(date '+%Y-%m-%d %H:%M:%S') Fixing desktop orientation... | tee -a /tmp/bazrotfix.log
if [[ ! -z "$IS_GAMEMODE" ]]; then
kscreen-doctor output.1.rotation.normal 2>&1 | tee -a /tmp/bazrotfix.log
elif [[ ":83E1:" =~ ":$SYS_ID" ]]; then
elif [[ ":83E1:Loki Max:" =~ ":$SYS_ID:" ]]; then
kscreen-doctor output.1.rotation.left 2>&1 | tee -a /tmp/bazrotfix.log
else
kscreen-doctor output.1.rotation.normal 2>&1 | tee -a /tmp/bazrotfix.log
Expand Down
Expand Up @@ -8,7 +8,7 @@ case "$(cat /sys/devices/virtual/dmi/id/product_name)" in
"Jupiter" | "Galileo" | "AYANEO GEEK" | "G1619-05")
STEAMOS_NESTED_DESKTOP_WIDTH=1280
STEAMOS_NESTED_DESKTOP_HEIGHT=800 ;;
"ROG Ally RC71L_RC71L" | "G1618-04" | "G1617-01")
"ROG Ally RC71L_RC71L" | "G1618-04" | "G1617-01" | "Loki Max")
STEAMOS_NESTED_DESKTOP_WIDTH=1920
STEAMOS_NESTED_DESKTOP_HEIGHT=1080 ;;
"AYANEO 2" | "AYANEO 2S" | "AOKZOE A1 AR07" | "G1619-04")
Expand Down
4 changes: 2 additions & 2 deletions system_files/desktop/shared/usr/bin/bazzite-user-setup
Expand Up @@ -11,7 +11,7 @@ BAZZITE_CONFIG_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/bazzite"
mkdir -p "$BAZZITE_CONFIG_DIR"

# SCRIPT VERSION
USER_SETUP_VER=22
USER_SETUP_VER=23
USER_SETUP_VER_FILE="$BAZZITE_CONFIG_DIR/version"
USER_SETUP_FEDORA_VER_FILE="$BAZZITE_CONFIG_DIR/fedora_version"

Expand Down Expand Up @@ -130,7 +130,7 @@ if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" || $IMAGE_NAME =~ "framegam
rm -f "$AUTOSTART_FOLDER/autostart/bazzite-handle-legion-go-rotation.desktop"
fi

if [[ ":ROG Ally RC71L_RC71L:83E1:" =~ ":$SYS_ID" ]] && [[ $BASE_IMAGE_NAME =~ "kinoite" ]]; then
if [[ ":ROG Ally RC71L_RC71L:83E1:Loki Max:" =~ ":$SYS_ID:" ]] && [[ $BASE_IMAGE_NAME =~ "kinoite" ]]; then
if [[ ! -f "$AUTOSTART_FOLDER/autostart/bazzite-rotation-fix.desktop" ]]; then
echo 'Adding rotation fix'
mkdir -p "$AUTOSTART_FOLDER/autostart"
Expand Down

0 comments on commit df51d82

Please sign in to comment.