mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Speedup login sequence by about 3s
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=Omarchy (Hyprland uwsm)
|
||||||
|
Comment=Omarchy Hyprland session managed by uwsm
|
||||||
|
Exec=uwsm start -g -1 -e -D Hyprland hyprland.desktop
|
||||||
|
TryExec=uwsm
|
||||||
|
Type=Application
|
||||||
@@ -2,16 +2,21 @@
|
|||||||
omarchy-refresh-sddm
|
omarchy-refresh-sddm
|
||||||
|
|
||||||
# Setup SDDM login service
|
# Setup SDDM login service
|
||||||
|
sudo mkdir -p /usr/local/share/wayland-sessions
|
||||||
|
sudo cp "$OMARCHY_PATH/default/wayland-sessions/omarchy.desktop" /usr/local/share/wayland-sessions/omarchy.desktop
|
||||||
|
|
||||||
sudo mkdir -p /etc/sddm.conf.d
|
sudo mkdir -p /etc/sddm.conf.d
|
||||||
if [[ ! -f /etc/sddm.conf.d/autologin.conf ]]; then
|
if [[ ! -f /etc/sddm.conf.d/autologin.conf ]]; then
|
||||||
cat <<EOF | sudo tee /etc/sddm.conf.d/autologin.conf
|
cat <<EOF | sudo tee /etc/sddm.conf.d/autologin.conf
|
||||||
[Autologin]
|
[Autologin]
|
||||||
User=$USER
|
User=$USER
|
||||||
Session=hyprland-uwsm
|
Session=omarchy
|
||||||
|
|
||||||
[Theme]
|
[Theme]
|
||||||
Current=omarchy
|
Current=omarchy
|
||||||
EOF
|
EOF
|
||||||
|
else
|
||||||
|
sudo sed -i 's/^Session=hyprland-uwsm$/Session=omarchy/' /etc/sddm.conf.d/autologin.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Prevent password-based SDDM logins from creating an encrypted login keyring
|
# Prevent password-based SDDM logins from creating an encrypted login keyring
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
echo "Use Omarchy UWSM session without graphical.target startup wait"
|
||||||
|
|
||||||
|
sudo mkdir -p /usr/local/share/wayland-sessions
|
||||||
|
sudo cp "$OMARCHY_PATH/default/wayland-sessions/omarchy.desktop" /usr/local/share/wayland-sessions/omarchy.desktop
|
||||||
|
|
||||||
|
if [[ -f /etc/sddm.conf.d/autologin.conf ]]; then
|
||||||
|
sudo sed -i 's/^Session=hyprland-uwsm$/Session=omarchy/' /etc/sddm.conf.d/autologin.conf
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user