my-scripts/installers/arch/scripts/greetd-config.sh

20 lines
373 B
Bash
Raw Normal View History

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
sudo systemctl enable greetd.service