Skip to content

Commit 8cab8c9

Browse files
committed
handheld: Replace SDDM with Plasma Login Manager
1 parent 1b9927b commit 8cab8c9

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

handheld/cachyos-handheld/PKGBUILD

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ validpgpkeys=(
2323
makedepends=('git')
2424
depends=('gamescope-session-git' 'mangohud' 'jq' 'dmidecode' 'glew' 'glfw' 'glxinfo' 'curl' 'tar'
2525
'scx-scheds' 'scx-tools' 'qt6-tools' 'gamescope-session-steam-git' 'jupiter-hw-support'
26-
'gamescope' 'lib32-gamescope' 'cachyos-vapor' 'cachyos-alacritty-config' 'steam')
26+
'gamescope' 'lib32-gamescope' 'cachyos-vapor' 'cachyos-alacritty-config' 'steam'
27+
'plasma-login-manager')
2728

2829
prepare() {
2930
patch -Np1 -i "${srcdir}/controller-fix.patch" -d "${srcdir}/CachyOS-Handheld"

handheld/cachyos-handheld/cachyos-handheld.install

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ update_user() {
88
elif usr=$(id -nu 1001) && [[ ! -z ${usr} ]]; then
99
echo "Setting ${usr} as name for autologin and decky environment variables."
1010
else
11-
echo "Get user name failed, setting 'User=' in /etc/sddm.conf.d/steam-deckify.conf"
11+
echo "Get user name failed, setting 'User=' in /etc/plasmalogin.conf.d/steam-deckify.conf"
1212
fi
1313
# Autologin
14-
sed -ri "s|^(User=).*|User=${usr}|" /etc/sddm.conf.d/steam-deckify.conf
14+
sed -ri "s|^(User=).*|User=${usr}|" /etc/plasmalogin.conf.d/steam-deckify.conf
1515
# Decky loader
1616
sed -ri "s|^(DECKY_USER=).*|DECKY_USER=${usr}|" /etc/environment.d/handheld.conf
1717
sed -ri "s|^(DECKY_USER_HOME=).*|DECK_USER_HOME=/home/${usr}|" /etc/environment.d/handheld.conf
@@ -70,12 +70,16 @@ post_install() {
7070
systemctl enable "$service" --now
7171
done
7272

73+
# Enable Plasma Login Manager
74+
ln -sf /usr/lib/systemd/system/plasmalogin.service /etc/systemd/system/display-manager.service
75+
76+
# First boot setup
7377
steamos_steam
7478

75-
# Update users sddm config to reflect the changes
79+
# Update users plasmalogin config to reflect the changes
7680
echo "Updating Handheld Configs."
7781
update_user
78-
# echo "If you are installing this without the CachyOS Installation, please update your username in the /etc/sddm.conf.d/*"
82+
# echo "If you are installing this without the CachyOS Installation, please update your username in the /etc/plasmalogin.conf.d/*"
7983
}
8084

8185
pre_upgrade() {
@@ -86,6 +90,9 @@ post_upgrade() {
8690
# Use scx_lavd as default scheduler
8791
scx_lavd_default
8892

93+
# Enable Plasma Login Manager
94+
ln -sf /usr/lib/systemd/system/plasmalogin.service /etc/systemd/system/display-manager.service
95+
8996
# Update files to reflect the changes
9097
echo "Updating Handheld Configs."
9198
update_user

0 commit comments

Comments
 (0)