AUR optionality added

This commit is contained in:
Luke 2017-09-30 00:45:54 -04:00
parent 9aa8798ac5
commit 03212458a6
3 changed files with 28 additions and 4 deletions

View file

@ -8,7 +8,7 @@ I've also documented the configuration fairly well, check out the documentation
## What do you get? ## What do you get?
[My dotfiles](https://github.com/lukesmithxyz/voidrice) and all their requisite programs installed without a problem. [My dotfiles](https://github.com/lukesmithxyz/voidrice) and all their requisite programs installed without a problem. Effectively, this is an Arch Linux ricing desktop environment.
All the core stuff we be installed without prompt, but you'll have the option to install some of the larger non-essential packages (LaTeX, LibreOffice, Blender, etc.). All the core stuff we be installed without prompt, but you'll have the option to install some of the larger non-essential packages (LaTeX, LibreOffice, Blender, etc.).

10
root.sh
View file

@ -34,12 +34,15 @@ options=(1 "LaTeX packages" off
3 "GIMP" off 3 "GIMP" off
4 "Blender" off 4 "Blender" off
5 "Emacs" off 5 "Emacs" off
6 "Fonts for Asian languages and emojis" off) 6 "Fonts for unicode and other languages" off
7 "transmission torrent client" off
)
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty) choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
echo $choices > /home/$USER/choices
clear clear
printf "\n${BLUE}Now installing main programs.\n${NC}" printf "\n${BLUE}Now installing main programs.\n${NC}"
pacman --noconfirm --needed -S base-devel xorg-xinit xorg-server rxvt-unicode feh ffmpeg pulseaudio pulseaudio-alsa arandr pavucontrol pamixer mpv wget rofi vim w3m ranger mediainfo poppler highlight tmux calcurse htop newsbeuter mpd mpc ncmpcpp network-manager-applet networkmanager imagemagick transmission-cli atool libcaca compton transset-df markdown mupdf evince rsync git youtube-dl youtube-viewer cups screenfetch scrot unzip unrar ntfs-3g offlineimap msmtp notmuch notmuch-mutt dosfstools fzf r pandoc || (echo "Error installing basic packages. Check your internet connection and pacman keyring." >> LARBS.log && error) pacman --noconfirm --needed -S base-devel xorg-xinit xorg-server rxvt-unicode feh ffmpeg pulseaudio pulseaudio-alsa arandr pavucontrol pamixer mpv wget rofi vim w3m ranger mediainfo poppler highlight tmux calcurse htop newsbeuter mpd mpc ncmpcpp network-manager-applet networkmanager imagemagick atool libcaca compton transset-df markdown mupdf evince rsync git youtube-dl youtube-viewer cups screenfetch scrot unzip unrar ntfs-3g offlineimap msmtp notmuch notmuch-mutt dosfstools fzf r pandoc || (echo "Error installing basic packages. Check your internet connection and pacman keyring." >> LARBS.log && error)
for choice in $choices for choice in $choices
do do
@ -68,6 +71,9 @@ do
printf "\n${BLUE}Now installing extra fonts...\n${NC}" printf "\n${BLUE}Now installing extra fonts...\n${NC}"
pacman --noconfirm --needed -S noto-fonts-cjk noto-fonts-emoji pacman --noconfirm --needed -S noto-fonts-cjk noto-fonts-emoji
;; ;;
7)
printf "\n${BLUE}Now installing transmission...\n${NC}"
pacman --noconfirm --needed -S transmission-cli
esac esac
done done

20
user.sh
View file

@ -17,8 +17,26 @@ aurinstall packer || echo "Error installing packer." && exit
printf "${BLUE}Installing AUR programs...\n${NC}" printf "${BLUE}Installing AUR programs...\n${NC}"
printf "${BLUE}(May take some time.)\n${NC}" printf "${BLUE}(May take some time.)\n${NC}"
packer --noconfirm -S i3-gaps vim-pathogen vim-live-latex-preview neofetch i3lock tamzen-font-git neomutt transmission-remote-cli-git unclutter-xfixes-git urxvt-resize-font-git ttf-ancient-fonts polybar-git python-pywal xfce-theme-blackbird || echo "Error installing AUR packages. Check your internet connections and pacman keys." && exit packer --noconfirm -S i3-gaps vim-pathogen neofetch i3lock tamzen-font-git neomutt unclutter-xfixes-git urxvt-resize-font-git polybar-git python-pywal xfce-theme-blackbird || echo "Error installing AUR packages. Check your internet connections and pacman keys." && exit
#packer --noconfirm -S ncpamixer-git speedometer cli-visualizer #packer --noconfirm -S ncpamixer-git speedometer cli-visualizer
choices=$(cat choices)
for choice in $choices
do
case $choice in
1)
printf "\n${BLUE}Now installing LaTeX packages...\n${NC}"
packer --noconfirm -S vim-live-latex-preview
;;
6)
printf "\n${BLUE}Now installing extra fonts...\n${NC}"
pacman --noconfirm --needed -S ttf-ancient-fonts
;;
7)
printf "\n${BLUE}Now installing transmission-remote-cli...\n${NC}"
packer --noconfirm -S transmission-remote-cli-git
;;
esac
done
printf "${BLUE}Downloading config files...\n${NC}" printf "${BLUE}Downloading config files...\n${NC}"
git clone https://github.com/lukesmithxyz/voidrice.git && rsync -va voidrice/ /home/$USER && rm -rf voidrice git clone https://github.com/lukesmithxyz/voidrice.git && rsync -va voidrice/ /home/$USER && rm -rf voidrice