Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change login mechanism #5

Open
mecattaf opened this issue Oct 7, 2024 · 0 comments
Open

change login mechanism #5

mecattaf opened this issue Oct 7, 2024 · 0 comments

Comments

@mecattaf
Copy link
Owner

mecattaf commented Oct 7, 2024

We follow this user izdener/hyprland@d7be086#diff-9a0348c383b4c088088732bca60eca8b6541cab989a9dc08f48c5becdff525c4R10

would change in config/files/greetd/usr/etc/greetd/

hyprland.conf:

exec-once = greetd; hyprctl dispatch exit

greetd-useradd:

#!/usr/bin/sh

getent passwd greeter > /dev/null || useradd -r -g -M video greeter -c "Greetd Greeter Account" -d /var/lib/greetd -s /usr/sbin/nologin greeter

and config.toml:

[terminal]
vt = 1

[default_session]
command = "Hyprland --config /etc/greetd/hyprland.conf"
user = "greeter"

Also we note the file config/systemd/system/greetd-boot.service

# See:
# 	- https://github.com/ublue-os/cinnamon/blob/bf44562ddbed670cdd0d03a45ea08bdb8a6e96a7/system_files/usr/lib/systemd/system/ublue-lightdm-workaround.service#L4
# 	- https://github.com/ublue-os/main/issues/224#issuecomment-1987851271
[Unit]
Description=Create SDDM user on system boot
Before=greetd.service
[Service]
Type=oneshot
ExecStart=/usr/etc/sddm/greetd-useradd
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target

Change that to start sway instead of hyprland

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant