Various Arch Linux Commands

Auto-Start i3 at login:

Add the following lines to ~/.bash_profile:

if systemctl -q is-active && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
  exec startx

Auto-Load VBoxClient modules:

Add the following line to ~/.config/i3/config:

exec VBoxClient-all

~/.config/i3status/config 12 hour clock fix (use %I):

tztime local {
        format = "%m/%d/%Y %I:%M:%S "

Update Package Repository:

pacman -Syy

Update Keys:

pacman-key --init
pacman-key --populate archlinux
pacman-key --refresh-keys

Update Mirrors:

reflector --country US --sort rate --save /etc/pacman.d/mirrorlist

If you notice that particular mirrors are failing, then delete/comment them out.

Visual Studio Code:

sudo pacman -S code


sudo pacman -S git

Git Setup:

Setup User:

git config --global  "John Doe"
git config --global ""

Store Credentials:

git config --global credential.helper store

Initialize Storing of Credentials:

cd into cloned repo directory

git pull

provide username/password

For a snipping tool, get ksnip from AUR. Requires a couple other AUR packages...


curl -sS | gpg --import

Then install spotify from AUR. On VirtualBox, I had to switch my Audio Controller to Intel HD Audio for my sound to work.

AUR Build:

git clone
cd SomeRepo
makepkg -si

Pacman Cheat Sheet:


sudo pacman -S packageName


sudo pacman -Rs packageName