Last active
August 29, 2025 15:29
-
-
Save SmileYzn/85fbc3dfeed3be06ae3bfe40d5c8229e to your computer and use it in GitHub Desktop.
Arch XFCE Post Install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Limpar | |
| clear | |
| # Usuário padrão (UID 1000) | |
| USUARIO=$(id -nu 1000) | |
| # Verificar acesso root | |
| if [[ $EUID -eq 0 ]]; then | |
| echo -e "Esse script NÃO deve ser executado como ${USER}" | |
| exit | |
| fi | |
| # Abrir pasta do usuário | |
| cd /home/$USUARIO | |
| # Atualizar sistema | |
| sudo pacman -Syyu --needed --noconfirm | |
| # Pacotes Base | |
| sudo pacman -S --needed --noconfirm 7zip alsa-firmware base-devel bash-completion blueman fastfetch ffmpegthumbnailer git man power-profiles-daemon powertop reflector system-config-printer unace unzip unrar xz zip | |
| # Pacotes XDG Desktop e User Dirs | |
| sudo pacman -S --needed --noconfirm xdg-user-dirs xdg-user-dirs-gtk xdg-desktop-portal xdg-desktop-portal-gtk xdg-utils | |
| # Instalar serviços | |
| sudo pacman -S --needed --noconfirm bluez bluez-utils cups | |
| # Habilitar serviços | |
| sudo systemctl enable bluetooth cups | |
| # Xorg e Wayland | |
| sudo pacman -S --needed --noconfirm labwc numlockx wayland xiccd xorg-apps xorg-xwayland | |
| # NTFS, CIFS, GVFS | |
| sudo pacman -S --needed --noconfirm cifs-utils ntfs-3g exfat-utils gvfs gvfs-afc gvfs-dnssd gvfs-goa gvfs-google gvfs-gphoto2 gvfs-mtp gvfs-nfs gvfs-onedrive gvfs-smb gvfs-wsdd | |
| # Fontes | |
| sudo pacman -S --needed --noconfirm adobe-source-code-pro-fonts adobe-source-sans-fonts adobe-source-serif-fonts noto-fonts noto-fonts-cjk noto-fonts-emoji noto-fonts-extra ttf-dejavu ttf-fira-code ttf-fira-mono ttf-fira-sans ttf-roboto ttf-roboto-mono ttf-ubuntu-font-family | |
| # Atualizar cache de fontes | |
| sudo fc-cache -f -v | |
| # Adwaita | |
| sudo pacman -S --needed --noconfirm adwaita-cursors adwaita-fonts adwaita-icon-theme adwaita-icon-theme-legacy | |
| # XFCE4 Plugins | |
| sudo pacman -S --needed --noconfirm xfce4-goodies xfce4-calculator-plugin xfce4-datetime-plugin xfce4-docklike-plugin xfce4-generic-slider xfce4-mixer xfce4-panel-profiles xfce4-stopwatch-plugin xfce4-volumed-pulse xfce4-windowck-plugin | |
| # Thunar | |
| sudo pacman -S --needed --noconfirm thunar-media-tags-plugin thunar-archive-plugin thunar-shares-plugin thunar-volman | |
| # Firefox | |
| sudo pacman -S --needed --noconfirm firefox firefox-i18n-pt-br | |
| # Thunderbird | |
| sudo pacman -S --needed --noconfirm thunderbird thunderbird-i18n-pt-br | |
| # Libreoffice | |
| sudo pacman -S --needed --noconfirm libreoffice-fresh libreoffice-fresh-pt-br | |
| # Pacotes Extras | |
| sudo pacman -S --needed --noconfirm catfish dconf-editor drawing gcolor3 gigolo gnome-online-accounts gparted gthumb lightdm-gtk-greeter-settings mate-calc mpv mugshot orage peek seahorse simple-scan zeitgeist | |
| # Instalar YAY no modo binário via AUR | |
| git clone https://aur.archlinux.org/yay-bin.git | |
| cd yay-bin | |
| makepkg -si --needed --noconfirm | |
| cd .. | |
| rm -rf yay-bin | |
| # Pacotes AUR indisponíveis no pacman | |
| yay -S --needed --noconfirm gnome-online-accounts-gtk | |
| # Limpar pacotes | |
| sudo pacman -R --noconfirm htop vim vim-runtime | |
| # Limpar dependências | |
| sudo pacman -Rcs --noconfirm $(pacman -Qdtq) | |
| # Adicionar grupo autologin | |
| sudo groupadd -r autologin | |
| # Adicionar o usuário ao grupo | |
| sudo gpasswd autologin -a ${USUARIO} | |
| # Criar pastas padrão | |
| xdg-user-dirs-update | |
| # Criar pastas traduzidas | |
| mkdir Desktop Downloads Modelos Rede Documentos Músicas Imagens Vídeos | |
| # Atualizar pastas | |
| xdg-user-dirs-update --force --set DESKTOP /home/$USUARIO/Desktop | |
| xdg-user-dirs-update --force --set DOWNLOAD /home/$USUARIO/Downloads | |
| xdg-user-dirs-update --force --set TEMPLATES /home/$USUARIO/Modelos | |
| xdg-user-dirs-update --force --set PUBLICSHARE /home/$USUARIO/Rede | |
| xdg-user-dirs-update --force --set DOCUMENTS /home/$USUARIO/Documentos | |
| xdg-user-dirs-update --force --set MUSIC /home/$USUARIO/Músicas | |
| xdg-user-dirs-update --force --set PICTURES /home/$USUARIO/Imagens | |
| xdg-user-dirs-update --force --set VIDEOS /home/$USUARIO/Vídeos | |
| xdg-user-dirs-update | |
| # Remover pastas antigas | |
| rm -rf Documents Music Pictures Public Templates Videos | |
| # Fim | |
| exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment