Arch Linux - The things must do after installing

This is the things must do after installing Arch Linux on macbook 2015 Pro


Post Installing

# Install neccessary apps
sudo pacman -S --needed alacritty firefox bluez bluez-utils blueman ibus eza unzip zsh rofi tmux neovim lxappearance-gtk3 dunst feh noto-fonts-cjk noto-fonts-emoji noto-fonts git
 
# Insall Yay AUR
cd /opt
sudo git clone https://aur.archlinux.org/yay-git.git
sudo chown nvnhan:nvnhan yay-git
cd yay-git
makepkg -si
 
# Install Nerd Fonts
cd ~
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/JetBrainsMono.zip
mkdir jetbrains-mono-nerd-fonts/
unzip JetBrainsMono.zip -d jetbrains-mono-nerd-fonts/
sudo mv jetbrains-mono-nerd-fonts/ /usr/share/fonts/
sudo fc-cache -v
rm JetBrainsMono.zip
 
# Install font for Rofi
cd ~
git clone git@github.com:adi1090x/rofi.git
sudo mkdir /usr/share/fonts/rofi
sudo cp rofi/fonts/* /usr/share/fonts/rofi
sudo fc-cache -v
 
 
# Install ZSH extentions
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
 
# Install ZSH dracula theme
git clone https://github.com/dracula/zsh.git
cd zsh 
mv dracula.zsh-theme ~/.oh-my-zsh/themes/ 
mkdir ~/.oh-my-zsh/themes/lib/
mv lib/async.zsh ~/.oh-my-zsh/themes/lib/
cd ../ && sudo rm -r zsh
 
# Install Fnm
curl -fsSL https://fnm.vercel.app/install | bash -s -- --install-dir "./.fnm" --skip-shell
fnm install --lts
 
## Install Visual Studio Code
yay -S visual-studio-code-bin
 
## Config git
git config --global user.name "Nguyen Van Nhan"
git config --global user.email "nguyenvannhan0810@gmail.com"
git config --global core.editor "nvim"
 
reboot

Clone dotfile

git clone git@github.com:nguyenvannhan/dotfile.git

Edit Scaling

ln -s /home/nvnhan/dotfile/config/arch-linux/.Xresources /home/nvnhan/.Xresources
ln -s /home/nvnhan/dotfile/config/arch-linux/.xinitrc /home/nvnhan/.xinitrc

Save file and run command and press: Win + Shift + r

Config i3

ln -s /home/nvnhan/dotfile/configs/arch-linux/i3 /home/nvnhan/.config
ln -s /home/nvnhan/dotfile/configs/arch-linux/i3status /home/nvnhan/.config

Install Bluetooth

Run these command

sudo modprobe btusb
sudo systemctl start bluetooth
sudo systemctl enable bluetooth

Install Ibus-bamboo

bash -c "$(curl -fsSL https://raw.githubusercontent.com/BambooEngine/ibus-bamboo/master/archlinux/install.sh)"

Add thess lines to /etc/environment

GTK_IM_MODULE=ibus
QT_IM_MODULE=ibus
XMODIFIERS=@im=ibus

Add this line to ~/.xprofile

ibus-daemon -rxd

Install Rofi

 
ln -s /home/nvnhan/dotfile/configs/arch-linux/rofi /home/nvnhan/.config

Update config Alacritty

ln -s /home/nvnhan/dotfile/configs/alacritty/ /home/nvnhan/.config/

Config ZSH

rm ~/.zshrc
ln -s /home/nvnhan/dotfile/configs/.zshrc /home/nvnhan/.zshrc
source ~/.zshrc

Config tmux

ln -s /home/nvnhan/dotfile/configs/tmux /home/nvnhan/.config/tmux
sudo rm -r ~/.config/tmux/plugins
git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm

Use Ctrl + Shift + I to install extension for tmux Use Ctrl +b and r to reload config tmux

Config LazyVim

ln -s /home/nvnhan/dotfile/configs/nvim /home/nvnhan/.config/nvim

Setup Theme

yay -S dracula-gtk-theme
git clone https://github.com/m4thewz/dracula-icons ~/.icons/dracula-icons

Open lxappearance and setting theme and icon

Open file `~/.config/gtk-3.0/settings.ini and add lines

gtk-application-prefer-dark-theme=1

Setup Notifications

ln -s /home/nvnhan/dotfile/configs/arch-linux/dunst /home/nvnhan/.config