Change i3 bar
This commit is contained in:
@@ -2,12 +2,10 @@ git_branch() {
|
|||||||
git branch 2>/dev/null | grep '^*' | colrm 1 2
|
git branch 2>/dev/null | grep '^*' | colrm 1 2
|
||||||
}
|
}
|
||||||
|
|
||||||
CHAR="\[\033[1;93m\]$\[\033[m\]"
|
|
||||||
NAME="\[\033[1;32m\]\u\[\033[m\]"
|
|
||||||
HOST="\[\033[0;37m\]\h\[\033[m\]"
|
HOST="\[\033[0;37m\]\h\[\033[m\]"
|
||||||
GIT="\[\033[1;91m\](\$(git_branch))\[\033[m\]"
|
GIT="\[\033[1;91m\](\$(git_branch))\[\033[m\]"
|
||||||
DIR="\[\033[1;94m\]\w\[\033[m\]"
|
DIR="\[\033[1;94m\]\w\[\033[m\]"
|
||||||
export PS1="${NAME}@${HOST}:${DIR} ${GIT} ${CHAR} "
|
export PS1="${HOST} ${DIR} ${GIT} "
|
||||||
|
|
||||||
# Set vim as default
|
# Set vim as default
|
||||||
export VISUAL=vim
|
export VISUAL=vim
|
||||||
@@ -22,21 +20,6 @@ alias ll="ls -l"
|
|||||||
alias la="ls -la"
|
alias la="ls -la"
|
||||||
alias rm="rm -i"
|
alias rm="rm -i"
|
||||||
|
|
||||||
# Screenhots
|
|
||||||
alias screenshot="import ~/Downloads/Screenshot-$(date '+%Y%m%d-%H%M%S').png"
|
|
||||||
|
|
||||||
# Common files
|
|
||||||
alias bashrc="vim ~/.bashrc"
|
|
||||||
alias sourcebashrc="source ~/.bashrc"
|
|
||||||
alias sbash="sourcebashrc"
|
|
||||||
alias vimrc="vim ~/.vimrc"
|
|
||||||
|
|
||||||
# Fonts
|
|
||||||
alias listfonts="fc-list :scalable=true:spacing=mono: family"
|
|
||||||
alias cachefonts="fc-cache -f -v"
|
|
||||||
# xterm -fa "Fontname" -fs 11
|
|
||||||
# xrdb ~/.Xresources
|
|
||||||
|
|
||||||
# Source global definitions
|
# Source global definitions
|
||||||
if [ -f /etc/bashrc ]; then
|
if [ -f /etc/bashrc ]; then
|
||||||
. /etc/bashrc
|
. /etc/bashrc
|
||||||
|
|||||||
@@ -9,16 +9,16 @@ general {
|
|||||||
}
|
}
|
||||||
|
|
||||||
{%@@ if profile == "laptop" @@%}
|
{%@@ if profile == "laptop" @@%}
|
||||||
order += "load"
|
|
||||||
order += "memory"
|
|
||||||
order += "cpu_temperature 0"
|
|
||||||
order += "ethernet _first_"
|
order += "ethernet _first_"
|
||||||
order += "wireless _first_"
|
order += "wireless _first_"
|
||||||
order += "volume master"
|
|
||||||
order += "battery all"
|
order += "battery all"
|
||||||
|
order += "tztime local"
|
||||||
|
order += "volume master"
|
||||||
{%@@ endif @@%}
|
{%@@ endif @@%}
|
||||||
|
|
||||||
|
{%@@ if profile == "work" @@%}
|
||||||
order += "tztime local"
|
order += "tztime local"
|
||||||
|
{%@@ endif @@%}
|
||||||
|
|
||||||
|
|
||||||
load {
|
load {
|
||||||
|
|||||||
Reference in New Issue
Block a user