diff --git a/setup/data/aur_packages b/setup/data/aur_packages new file mode 100644 index 0000000..204de75 --- /dev/null +++ b/setup/data/aur_packages @@ -0,0 +1 @@ +brother-hl1210w advcp gotop-bin processing-bin polybar ttf-ms-fonts diff --git a/setup/disable_watchdog b/setup/disable_watchdog deleted file mode 100755 index 39c6201..0000000 --- a/setup/disable_watchdog +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -set -uo pipefail - -if (( $EUID != 0 )); then - echo "Should be run as root" - exit 1 -fi - -echo "blacklist iTCO_wdt" > /etc/modprobe.d/nowatchdog.conf diff --git a/setup/install_aur_packages b/setup/install_aur_packages new file mode 100755 index 0000000..9a78004 --- /dev/null +++ b/setup/install_aur_packages @@ -0,0 +1,35 @@ +#!/bin/sh + +set -uo pipefail + +if (( $EUID == 0 )); then + echo "Do not run as root" + exit 1 +fi + +echo ":: Checking if yay is installed" +pacman -Q yay &> /dev/null +if [ $? = 1 ]; then + echo ":: Installing yay" + source "`dirname $0`/install_yay" +else + echo ":: Success: yay is installed" +fi + +DEFAULT_STATE="on" + +packages="" +for package in $(cat "`dirname $0`/data/aur_packages"); do + packages="${packages}${package} ${package} ${DEFAULT_STATE} " +done + +answer=$(dialog --no-tags --stdout --checklist "select packages to install" 0 0 15 $packages) + +if [ $? = 1 ]; then + printf "\n\nAborting...\n" + exit 1 +fi + +printf "\n\nSelected packaes: $answer\n\n" + +sudo yay -Syu $answer diff --git a/setup/install_yay b/setup/install_yay index c1dca62..4080b67 100755 --- a/setup/install_yay +++ b/setup/install_yay @@ -2,6 +2,9 @@ set -Eeuo pipefail +old_dir=`pwd` + git clone https://aur.archlinux.org/yay.git /tmp/yay cd /tmp/yay makepkg -si +cd old_dir