summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-10-02 04:01:55 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-10-02 04:01:55 +0100
commitabd09118c8571d30dce0bd8217d8fee251701c56 (patch)
treeb818329093185970fed00952b53dfefeac087cf0
parent8f5c6a759370c86f72b19773e777d11062635766 (diff)
autologin into lxqt session as wellHEADmaster
-rwxr-xr-xredcorelive-openrc.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/redcorelive-openrc.sh b/redcorelive-openrc.sh
index e808cbb..f9376db 100755
--- a/redcorelive-openrc.sh
+++ b/redcorelive-openrc.sh
@@ -27,7 +27,9 @@ livePasswd() {
}
liveLogin() {
- if [[ -e "/usr/share/xsessions/qtile.desktop" ]] ; then
+ if [[ -e "/usr/share/xsessions/lxqt.desktop" ]] ; then
+ sed -e "0,/User=/s//User=redcore/" -e "0,/Session=/s//Session=lxqt/" /etc/sddm.conf.d/00redcore.conf | tee /etc/sddm.conf.live > /dev/null 2>&1
+ elif [[ -e "/usr/share/xsessions/qtile.desktop" ]] ; then
sed -e "0,/User=/s//User=redcore/" -e "0,/Session=/s//Session=qtile/" /etc/sddm.conf.d/00redcore.conf | tee /etc/sddm.conf.live > /dev/null 2>&1
elif [[ -e "/usr/share/wayland-sessions/plasma.desktop" ]] ; then
sed -e "0,/User=/s//User=redcore/" -e "0,/Session=/s//Session=plasma/" /etc/sddm.conf.d/00redcore.conf | tee /etc/sddm.conf.live > /dev/null 2>&1