|
|
|
@ -21,7 +21,7 @@ done
|
|
|
|
|
|
|
|
|
|
device=${device:="480"}
|
|
|
|
|
repo=${repo:="https://toerd@bitbucket.org/toerd/dotfiles"}
|
|
|
|
|
prog=${prog:="$scriptdir/pack.list"}
|
|
|
|
|
prog=${prog:="$scriptdir/pack.csv"}
|
|
|
|
|
aurhelper=${aurhelper:="yay"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -99,10 +99,10 @@ install_aur_helper() {
|
|
|
|
|
|
|
|
|
|
installation_loop() {
|
|
|
|
|
echo "Entered installationloop\n\n" >> $logfile
|
|
|
|
|
([ -f "$prog" ] && cp "$prog" /tmp/pack.list) || curl -Ls "$prog" > /tmp/pack.list
|
|
|
|
|
ps=$(grep -e ",P," /tmp/pack.list | wc -l)
|
|
|
|
|
as=$(grep -e ",A," /tmp/pack.list | wc -l)
|
|
|
|
|
ms=$(grep -e ",M," /tmp/pack.list | wc -l)
|
|
|
|
|
([ -f "$prog" ] && cp "$prog" /tmp/pack.csv) || curl -Ls "$prog" > /tmp/pack.csv
|
|
|
|
|
ps=$(grep -e ",P," /tmp/pack.csv | wc -l)
|
|
|
|
|
as=$(grep -e ",A," /tmp/pack.csv | wc -l)
|
|
|
|
|
ms=$(grep -e ",M," /tmp/pack.csv | wc -l)
|
|
|
|
|
aur_already_installed=$(pacman -Qqm)
|
|
|
|
|
#IFS separator
|
|
|
|
|
while IFS=, read -r platform prefix program info; do
|
|
|
|
@ -116,7 +116,7 @@ installation_loop() {
|
|
|
|
|
A) install_aur "$program" "$info" ;;
|
|
|
|
|
M) install_manual "$program" "$info" ;;
|
|
|
|
|
esac
|
|
|
|
|
done < /tmp/pack.list
|
|
|
|
|
done < /tmp/pack.csv
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
enable_service() {
|
|
|
|
@ -152,12 +152,45 @@ ready_steady_go() {
|
|
|
|
|
dialog --title "WE ARE DONE" --msgbox "The installation is complete\n\n#fingerscrossed everything worked :D" 0 0 ;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
uncom() {
|
|
|
|
|
sed -i '/'"$1"'/s/^#//g' $2
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
com() {
|
|
|
|
|
sed -i '/'"$1"'/s/^/#/g' $2
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
add_after() {
|
|
|
|
|
# Example:
|
|
|
|
|
# add_after "Color" 'tt="ILoveCandy"' "$HOME/test/pacman.conf"
|
|
|
|
|
# add_after "Color" 'tt="ILoveCandy"' "$HOME/test/pacman.conf"
|
|
|
|
|
sed -i '/'"$1"'/a '"$2"'' $3
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
add_udev_rules() {
|
|
|
|
|
cp "$scriptdir/udev/*" /etc/udev/rules.d/
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
add_pacman_hooks() {
|
|
|
|
|
mkdir -p /etc/pacman.d/hooks
|
|
|
|
|
cp "$scriptdir/pacman/hooks/*" /etc/pacman.d/hooks/
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
set_pacman_config() {
|
|
|
|
|
pconf="/etc/pacman.conf"
|
|
|
|
|
uncom "Color" $pconf
|
|
|
|
|
uncom "TotalDownload" $pconf
|
|
|
|
|
uncom "VerbosePkgLists" $pconf
|
|
|
|
|
add_after "VerbosePkgLists" "ILoveCandy" $pconf
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
set_system_stuff() {
|
|
|
|
|
# locale gen
|
|
|
|
|
sudo localectl --no-convert set-x11-keymap us ,altgr-intl
|
|
|
|
|
localectl --no-convert set-x11-keymap us ,altgr-intl
|
|
|
|
|
setxkbmap us -variant altgr-intl
|
|
|
|
|
set_pacman_conf
|
|
|
|
|
add_udev_rules
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# ACTUAL ROUTINE
|
|
|
|
|
|
|
|
|
|
init
|
|
|
|
@ -172,6 +205,5 @@ download_dotfiles
|
|
|
|
|
set_permissions "%wheel ALL=(ALL) ALL\\n%wheel ALL=(ALL) NOPASSWD: /usr/bin/shutdown,/usr/bin/reboot,/usr/bin/systemctl suspend,/usr/bin/wifi-menu,/usr/bin/mount,/usr/bin/umount,/usr/bin/pacman -Syu,/usr/bin/pacman -Syyu,/usr/bin/packer -Syu,/usr/bin/packer -Syyu,/usr/bin/systemctl restart NetworkManager,/usr/bin/rc-service NetworkManager restart,/usr/bin/pacman -Syyu --noconfirm,/usr/bin/loadkeys,/usr/bin/yay"
|
|
|
|
|
no_beep
|
|
|
|
|
set_system_stuff
|
|
|
|
|
sed -i "s/#Color^/Color/g" /etc/pacman.conf
|
|
|
|
|
ready_steady_go
|
|
|
|
|
clear
|
|
|
|
|