Speedup login sequence by about 3s

This commit is contained in:
David Heinemeier Hansson
2026-04-29 08:09:10 +02:00
parent 4e341fea3e
commit ca9cefe718
3 changed files with 20 additions and 1 deletions
+6
View File
@@ -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
+6 -1
View File
@@ -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
+8
View File
@@ -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