add greetd setup to repo

master
Alex 2023-01-07 20:16:01 -06:00
parent 09678c7f28
commit 0329f03e8b
3 changed files with 30 additions and 0 deletions

View File

@ -17,3 +17,5 @@ wob
tofi
shellcheck-bin
librewolf-bin
greetd
greetd-tuigreet

View File

@ -12,6 +12,19 @@ yay_install() {
makepkg -si
}
greetd_config() {
sudo mkdir -p /etc/greetd/
GREETD_CONFIG="[terminal]
vt = 1
[default_session]
command = \"tuigreet --time --cmd sway\"
user = \"greeter\""
sudo sh -c "echo $GREETD_CONFIG > /etc/greetd/config.toml"
}
pkg_install() {
aurprogs="$(cat "$AUR_PROGS_FILE")"
for pkg in $aurprogs
@ -26,6 +39,8 @@ if [ -f "$AUR_PROGS_FILE" ]; then
pkg_install
else
echo "enter file containing package names to install separated by newlines as first input argument" && exit
fi

View File

@ -0,0 +1,13 @@
#!/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/
sudo sh -c "echo $GREETD_CONFIG > /etc/greetd/config.toml"