SUP3R-US3R

Installdots.sh

Dec 23rd, 2019
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.96 KB | None | 0 0
  1. #!/bin/bash
  2. # github.com/mamutal91
  3.  
  4. # Mirrors
  5. # sudo reflector -c Brazil --save /etc/pacman.d/mirrorlist
  6. # sudo reflector -l 10 --sort rate --save /etc/pacman.d/mirrorlist
  7.  
  8. USER=mamutal91
  9.  
  10. sudo pacman -Sy
  11.  
  12. readonly PKGS_PACMAN=(
  13.     alacritty alsa alsa-firmware alsa-utils android-tools archlinux-keyring atom
  14.     bbswitch bluez bluez-libs bluez-tools bluez-utils bumblebee
  15.     compton cronie
  16.     dunst dhcpcd
  17.     feh ffmpeg filezilla firefox firefox-i18n-pt-br
  18.     galculator gimp git gparted gpicview gvfs gvfs-mtp
  19.     i3-gaps i3lock
  20.     imagemagick
  21.     jsoncpp
  22.     lib32-libvdpau lib32-nvidia-utils lib32-opencl-nvidia lib32-virtualgl lxappearance
  23.     maim mesa mpd mpv
  24.     neofetch ntfs-3g ntp
  25.     numlockx nvidia nvidia-settings nvidia-utils
  26.     opencl-nvidia openssh
  27.     pinta pulseaudio pulseaudio-bluetooth pulseeffects python-setuptools
  28.     qbittorrent qt5-connectivity
  29.     reflector rofi
  30.     sbc scrot smplayer steam stow
  31.     telegram-desktop terminus-font thunar thunar-archive-plugin thunar-media-tags-plugin thunar-volman ttf-liberation
  32.     unrar unzip
  33.     wget winetricks wireless_tools
  34.     xclip xf86-video-intel xorg-server xorg-xbacklight xorg-xinit xorg-xprop xorg-xrandr zsh zsh-syntax-highlighting)
  35.  
  36. readonly PKGS_AUR=(
  37.     capitaine-cursors
  38.     franz
  39.     grive-git
  40.     namebench nvidia-xrun
  41.     paper-icon-theme-git polybar
  42.     smplayer-skins smplayer-themes spotify
  43.     ttf-dejavu ttf-font-awesome ttf-wps-fonts
  44.     wps-office wps-office-extension-portuguese-brazilian-dictionary wps-office-mui-pt-br
  45.     xidlehook
  46.     zuki-themes)
  47.  
  48. function install_pkgs_pacman(){
  49.     for i in "${PKGS_PACMAN[@]}"; do
  50.         sudo pacman -S ${i} --needed --noconfirm
  51.     done
  52. }
  53.  
  54. function install_pkgs_aur(){
  55.     for i in "${PKGS_AUR[@]}"; do
  56.         yay -S ${i} --needed --noconfirm
  57.     done
  58. }
  59.  
  60. function install_yay(){
  61.     git clone https://aur.archlinux.org/yay.git /home/mamutal91/yay
  62.     cd "/home/mamutal91/yay"
  63.     makepkg -si --noconfirm
  64.     cd ..
  65.     rm -rf yay
  66. }
  67.  
  68. function winetricks(){
  69.     winetricks --force directx9 vcrun2005 vcrun2008 vcrun2010 vcrun2012 vcrun2013 vcrun2015 dotnet40 dotnet452 vb6 xact xna31 xna40 msl31 openal corefonts
  70. }
  71.  
  72. function oh-my-zsh(){
  73.     rm -rf $HOME/.oh-my-zsh
  74.     sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  75. }
  76.  
  77. function config_system(){
  78.     git config --global user.email "[email protected]"
  79.     git config --global user.name "Alexandre Rangel"
  80.     sudo ln -sf /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime
  81.     sudo systemctl enable dhcpcd
  82.     sudo systemctl enable NetworkManager
  83.     sudo systemctl enable cronie
  84.     sudo systemctl enable ntpd
  85.     sudo systemctl enable bumblebeed.service
  86.     sudo systemctl enable bluetooth
  87.     sudo chown -R $USER:$USER /home/$USER
  88.     sudo gpasswd -a $USER bumblebee
  89.     chmod +x /home/$USER
  90. }
  91.  
  92. #winetricks
  93. install_pkgs_pacman
  94. install_yay
  95. install_pkgs_aur
  96. config_system
  97. oh-my-zsh
Advertisement
Add Comment
Please, Sign In to add comment