Merge pull request #201 from drokath/feature/generic_handhelds

feat: add handygccs
This commit is contained in:
RJ Trujillo 2023-09-20 16:56:10 -06:00 committed by GitHub
commit a362df1806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -284,6 +284,7 @@ RUN rpm-ostree install \
jupiter-fan-control \
jupiter-hw-support-btrfs \
powerbuttond \
HandyGCCS \
vpower \
ds-inhibit \
steam_notif_daemon \
@ -411,6 +412,7 @@ RUN rm /usr/share/applications/wine*.desktop && \
systemctl enable sddm.service \
; fi && \
systemctl enable bazzite-autologin.service && \
systemctl enable handycon.service && \
systemctl enable jupiter-fan-control.service && \
systemctl enable btrfs-dedup@run-media-mmcblk0p1.timer && \
systemctl enable vpower.service && \

View File

@ -24,11 +24,13 @@ elif [[ ${BASE_IMAGE_NAME} =~ "kinoite" ]]; then
else
sed -i 's/.*Session=.*/Session=plasmax11.desktop/g' ${SDDM_CONF}
fi
systemctl stop handycon.service
elif [[ ${BASE_IMAGE_NAME} =~ "silverblue" ]]; then
if ${DESKTOP_WAYLAND}; then
sed -i 's/.*Session=.*/Session=gnome-wayland.desktop/g' ${SDDM_CONF}
else
sed -i 's/.*Session=.*/Session=gnome-xorg.desktop/g' ${SDDM_CONF}
fi
systemctl stop handycon.service
fi
sed -i 's/.*User=.*/User='${USER}'/g' ${SDDM_CONF}

View File

@ -121,6 +121,12 @@ fi
echo "Session=$session_launcher"
} > "$CONF_FILE"
if [[ $session_launcher = "gamescope-session.desktop" ]]; then
systemctl start handycon.service
else
systemctl stop handycon.service
fi
echo "Updated system autologin session to $session_launcher"
systemctl reset-failed sddm
systemctl restart sddm