2023-01-08 02:16:01 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
yay -S greetd greetd-tuigreet
|
|
|
|
|
|
|
|
GREETD_CONFIG="[terminal]
|
|
|
|
vt = 1
|
|
|
|
|
|
|
|
[default_session]
|
|
|
|
command = \"tuigreet --time --cmd sway\"
|
|
|
|
user = \"greeter\""
|
|
|
|
|
|
|
|
sudo mkdir -p /etc/greetd/
|
2023-01-08 19:27:22 +00:00
|
|
|
|
|
|
|
#TODO may be better way to do this
|
|
|
|
echo "$GREETD_CONFIG" > ./.config.toml.tmp
|
|
|
|
sudo cp ./.config.toml.tmp /etc/greetd/config.toml
|
|
|
|
rm ./.config.toml.tmp
|
2023-01-08 02:43:47 +00:00
|
|
|
|
|
|
|
sudo systemctl enable greetd.service
|