add greetd setup to repo
parent
09678c7f28
commit
0329f03e8b
|
@ -17,3 +17,5 @@ wob
|
|||
tofi
|
||||
shellcheck-bin
|
||||
librewolf-bin
|
||||
greetd
|
||||
greetd-tuigreet
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
Loading…
Reference in New Issue