added powerline
This commit is contained in:
@@ -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 <<<
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"segments": [
|
||||
"virtual_env",
|
||||
"username",
|
||||
"hostname",
|
||||
"ssh",
|
||||
"cwd",
|
||||
"git",
|
||||
"hg",
|
||||
"jobs",
|
||||
"root"
|
||||
],
|
||||
"mode": "flat"
|
||||
}
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user