Change i3 bar

This commit is contained in:
CramMK
2020-02-13 23:23:02 +01:00
parent 5c9e07b7c6
commit 18476ac13b
2 changed files with 5 additions and 22 deletions

View File

@@ -2,12 +2,10 @@ git_branch() {
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\]"
GIT="\[\033[1;91m\](\$(git_branch))\[\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
export VISUAL=vim
@@ -22,21 +20,6 @@ alias ll="ls -l"
alias la="ls -la"
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
if [ -f /etc/bashrc ]; then
. /etc/bashrc

View File

@@ -9,16 +9,16 @@ general {
}
{%@@ if profile == "laptop" @@%}
order += "load"
order += "memory"
order += "cpu_temperature 0"
order += "ethernet _first_"
order += "wireless _first_"
order += "volume master"
order += "battery all"
order += "tztime local"
order += "volume master"
{%@@ endif @@%}
{%@@ if profile == "work" @@%}
order += "tztime local"
{%@@ endif @@%}
load {