fix(deck): Add KDE-specific fractional scaling option

This commit is contained in:
Kyle Gospodnetich 2024-09-12 12:57:15 -07:00
parent f4b0baa3c5
commit d62cb24ae1
4 changed files with 12 additions and 2 deletions

View File

@ -54,6 +54,10 @@ if [[ "${XDG_SESSION_TYPE}" = "wayland" ]]; then
kscreen-doctor output.eDP.scale.1 \
|| kscreen-doctor output.eDP-1.scale.1 \
|| true
elif /usr/libexec/hwsupport/needs-150-scale; then
kscreen-doctor output.eDP.scale.1.5 \
|| kscreen-doctor output.eDP-1.scale.1.5 \
|| true
elif /usr/libexec/hwsupport/needs-200-scale; then
kscreen-doctor output.eDP.scale.2 \
|| kscreen-doctor output.eDP-1.scale.2 \

View File

@ -1,6 +1,5 @@
#!/usr/bin/bash
# Steam Deck
if /usr/libexec/hwsupport/valve-hardware || [[ ":ROG Ally RC71L:ROG Ally X RC72LA:G1618-04:G1617-01:G1619-05:AIR Plus:AIR 1S:AIR 1S Limited:AIR:AYANEO GEEK:AYANEO 2:AYANEO 2S:AOKZOE A1 AR07:AOKZOE A1 Pro:G1619-04:Win600:Loki Max:Loki Zero:Loki MiniPro:V3:ONEXPLAYER F1:ONEXPLAYER F1L:ONEXPLAYER F1 EVA-01:" =~ ":$SYS_ID:" ]]; then
exit 0
fi

View File

@ -0,0 +1,8 @@
#!/usr/bin/bash
# KDE Specific fractional scaling
if [[ ":83E1:" =~ ":$SYS_ID:" ]]; then
exit 0
fi
exit 1

View File

@ -1,6 +1,5 @@
#!/usr/bin/bash
# Steam Deck
if [[ ":83E1:" =~ ":$SYS_ID:" ]]; then
exit 0
fi