added powerline

This commit is contained in:
paul-loedige
2020-11-30 11:25:37 +01:00
parent 533233edf8
commit 78588f3bf3
3 changed files with 43 additions and 1 deletions
+26
View File
@@ -12,4 +12,30 @@ alias dog='cat'
alias ..='cd ..'
alias writer='libreoffice --writer'
#neofetch
neofetch
#powerline
function _update_ps1() {
PS1=$(powerline-shell $?)
}
if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/paul/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/paul/anaconda3/etc/profile.d/conda.sh" ]; then
. "/home/paul/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/home/paul/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
+14
View File
@@ -0,0 +1,14 @@
{
"segments": [
"virtual_env",
"username",
"hostname",
"ssh",
"cwd",
"git",
"hg",
"jobs",
"root"
],
"mode": "flat"
}
+3 -1
View File
@@ -17,7 +17,7 @@ main_bar = bar.Bar([
widget.Systray(),
widget.TextBox("Vol:"),
widget.Volume(),
widget.CPU(format='CPU: {load_percent}%'),
widget.CPU(format='CPU: {freq_max}GHz {load_percent}%'),
widget.Memory(format='RAM: {MemUsed}MB'),
widget.Memory(format='Swap: {SwapUsed}MB'),
widget.NetGraph(),
@@ -28,10 +28,12 @@ left_bar = bar.Bar([
widget.CurrentLayoutIcon(),
widget.GroupBox(),
widget.WindowName(),
widget.Clock(format='%Y-%m-%d %H:%M'),
],24)
top_bar = bar.Bar([
widget.CurrentLayoutIcon(),
widget.GroupBox(),
widget.WindowName(),
widget.Clock(format='%Y-%m-%d %H:%M'),
],24)