From a89ed00a17ade19184c65e1d0aadd5e7c7770efe Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Fri, 12 Sep 2025 12:26:47 +0200 Subject: [PATCH] [Greetd] Add autologin --- setup | 7 ++++++- system/greetd/config-autologin.toml | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 system/greetd/config-autologin.toml diff --git a/setup b/setup index 7f9e34d..c26061b 100755 --- a/setup +++ b/setup @@ -96,7 +96,12 @@ if [[ "$restart" == "y" ]]; then => Installing System Configs " sudo cp ./system/environment /etc/environment - sudo cp -r ./system/greetd/* /etc/greetd/ + + if [[ "$platform" == "d" ]]; then + sudo cp -r ./system/greetd/config.toml /etc/greetd/ + else + sudo cp -r ./system/greetd/config-autologin.toml /etc/greetd/config.toml + fi hyprctl reload ./scripts/restart-bar diff --git a/system/greetd/config-autologin.toml b/system/greetd/config-autologin.toml new file mode 100644 index 0000000..6528c3d --- /dev/null +++ b/system/greetd/config-autologin.toml @@ -0,0 +1,18 @@ +[terminal] +# The VT to run the greeter on. Can be "next", "current" or a number +# designating the VT. +vt = 1 + +# The default session, also known as the greeter. +[default_session] +command = "tuigreet --cmd Hyprland --time --remember --remember-user-session --asterisks --user-menu --sessions /usr/share/wayland-sessions" + +# The user to run the command as. The privileges this user must have depends +# on the greeter. A graphical greeter may for example require the user to be +# in the `video` group. +user = "greeter" + + +[initial_session] +command = "Hyprland" +user = "janis"