A backup of my i3wm config.
All these files should be placed in ~/.config/i3
- i3-gaps (a fork of i3)
- i3blocks (status bar)
- Rofi (app launcher)
- Compton (shadows & opacity)
- Font Awesome (icons)
Dracula theme for gnome-terminal
Arc Theme with Arc-Darker variant
PROMPT_COMMAND=__prompt_command # Func to gen PS1 after CMDs
__prompt_command() {
local EXIT="$?" # This needs to be first
PS1=""
local RCol='\[\e[0m\]'
local Red='\[\e[1;31m\]'
local Gre='\[\e[1;32m\]'
local Yel='\[\e[0;33m\]'
local Blu='\[\e[0;34m\]'
local Pin='\[\e[0;36m\]'
PS1+="${Blu}\w " # Path
_BRANCH=$(git branch 2>/dev/null | grep '^*' | colrm 1 2) # Git branch
if [ -n "$_BRANCH" ]; then
PS1+="${Pin}"
# Yellow color if dirty
[[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]] && PS1+="${Yel}"
PS1+="$_BRANCH "
fi
if [ $EXIT != 0 ]; then # Color depending on status
PS1+="${Red}>"
else
PS1+="${Gre}>"
fi
PS1+=" ${RCol}" # Reset color
}