@@ -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
8185pre_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