diff --git a/installers/arch/files/aur-programs.list b/installers/arch/files/aur-programs.list index 622e817..b0a08df 100644 --- a/installers/arch/files/aur-programs.list +++ b/installers/arch/files/aur-programs.list @@ -17,3 +17,5 @@ wob tofi shellcheck-bin librewolf-bin +greetd +greetd-tuigreet diff --git a/installers/arch/scripts/aur-install.sh b/installers/arch/scripts/aur-install.sh index a2bf3cf..4a2a062 100755 --- a/installers/arch/scripts/aur-install.sh +++ b/installers/arch/scripts/aur-install.sh @@ -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 diff --git a/installers/arch/scripts/greetd-config.sh b/installers/arch/scripts/greetd-config.sh new file mode 100755 index 0000000..83237cc --- /dev/null +++ b/installers/arch/scripts/greetd-config.sh @@ -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"