|
|
@@ -103,6 +103,29 @@ KillUserProcesses=no"; then
|
|
|
reload_needed=1
|
|
|
fi
|
|
|
|
|
|
+# ---------------------------------------------------------------------------
|
|
|
+# greetd: autologin straight into sway.
|
|
|
+#
|
|
|
+# The stock package config drops you at an agreety prompt running /bin/sh, so
|
|
|
+# without this greetd starts but never gets you into a session. Declared here
|
|
|
+# because it lives in /etc, outside what dotsync can manage -- it was previously
|
|
|
+# hand-edited on jellyfish only, which is exactly the drift this file exists to
|
|
|
+# stop.
|
|
|
+# ---------------------------------------------------------------------------
|
|
|
+if install_file /etc/greetd/config.toml \
|
|
|
+"[terminal]
|
|
|
+vt = 1
|
|
|
+
|
|
|
+[default_session]
|
|
|
+command = \"agreety --cmd sway\"
|
|
|
+user = \"greeter\"
|
|
|
+
|
|
|
+[initial_session]
|
|
|
+command = \"sway\"
|
|
|
+user = \"$USER\""; then
|
|
|
+ log_warn "greetd config changed -- takes effect at next logout/reboot"
|
|
|
+fi
|
|
|
+
|
|
|
# ---------------------------------------------------------------------------
|
|
|
# iwd: shorten the stop timeout so shutdown isn't held up for 90s.
|
|
|
# ---------------------------------------------------------------------------
|