màj config

This commit is contained in:
Thomas Briffard 2021-06-23 20:53:20 +02:00
parent 4c17ddc06f
commit 786788928d
3 changed files with 21 additions and 24 deletions

View File

@ -1,6 +1,6 @@
### Configuration powerline ### Configuration powerline
1. Installation de [powerline](https://powerline.readthedocs.io/en/master/) via gestionnaire de paquet (ou pip, conseillé) 1. Installation de [powerline](https://powerline.readthedocs.io/en/master/) via gestionnaire de paquet (ou pip, conseillé, mais ne pas installer la version dispo sur pypi, trop vielle, plutôt faire : `pip install git+https://github.com/powerline/powerline.git@develop`)
2. Modification du .bashrc avec ajout de quelque chose du style : 2. Modification du .bashrc avec ajout de quelque chose du style :
``` ```
@ -8,7 +8,7 @@
powerline-daemon -q powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1 POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1 POWERLINE_BASH_SELECT=1
. /usr/local/lib/python3.8/site-packages/powerline/bindings/bash/powerline.sh . ~/.local/lib/python3.9/site-packages/powerline/bindings/bash/powerline.sh
fi fi
``` ```
3. Cloner ce dépôt dans ~/.config/, ie 3. Cloner ce dépôt dans ~/.config/, ie

View File

@ -1,18 +1,18 @@
{ {
"name": "Default", "name": "Default",
"groups": { "groups": {
"information:additional": { "fg": "gray9", "bg": "gray4", "attrs": [] }, "information:additional": { "fg": "gray2", "bg": "gray10", "attrs": [] },
"information:regular": { "fg": "gray10", "bg": "gray4", "attrs": ["bold"] }, "information:regular": { "fg": "gray2", "bg": "gray10", "attrs": ["bold"] },
"information:highlighted": { "fg": "white", "bg": "gray4", "attrs": [] }, "information:highlighted": { "fg": "white", "bg": "gray4", "attrs": [] },
"information:priority": { "fg": "brightyellow", "bg": "mediumorange", "attrs": [] }, "information:priority": { "fg": "brightyellow", "bg": "mediumorange", "attrs": [] },
"warning:regular": { "fg": "white", "bg": "brightred", "attrs": ["bold"] }, "warning:regular": { "fg": "white", "bg": "brightred", "attrs": ["bold"] },
"critical:failure": { "fg": "white", "bg": "darkestred", "attrs": [] }, "critical:failure": { "fg": "white", "bg": "brightred", "attrs": [] },
"critical:success": { "fg": "white", "bg": "darkestgreen", "attrs": [] }, "critical:success": { "fg": "white", "bg": "darkestgreen", "attrs": [] },
"background": { "fg": "white", "bg": "gray0", "attrs": [] }, "background": { "fg": "white", "bg": "gray0", "attrs": [] },
"background:divider": { "fg": "gray5", "bg": "gray0", "attrs": [] }, "background:divider": { "fg": "gray5", "bg": "gray0", "attrs": [] },
"session": { "fg": "black", "bg": "gray10", "attrs": ["bold"] }, "session": { "fg": "black", "bg": "gray10", "attrs": ["bold"] },
"date": { "fg": "gray8", "bg": "gray2", "attrs": [] }, "date": { "fg": "gray8", "bg": "gray2", "attrs": [] },
"time": { "fg": "gray10", "bg": "gray2", "attrs": ["bold"] }, "time": { "fg": "white", "bg": "darkblue", "attrs": [] },
"time:divider": { "fg": "gray5", "bg": "gray2", "attrs": [] }, "time:divider": { "fg": "gray5", "bg": "gray2", "attrs": [] },
"email_alert": "warning:regular", "email_alert": "warning:regular",
"email_alert_gradient": { "fg": "white", "bg": "yellow_orange_red", "attrs": ["bold"] }, "email_alert_gradient": { "fg": "white", "bg": "yellow_orange_red", "attrs": ["bold"] },

View File

@ -16,13 +16,22 @@
"function": "powerline.segments.common.env.user", "function": "powerline.segments.common.env.user",
"priority": 30, "priority": 30,
"args": { "args": {
"hide_domain": true "hide_domain": true,
"hide_user": "thomasbriffard"
} }
}, },
{ {
"function": "powerline.segments.common.env.virtualenv", "function": "powerline.segments.common.env.virtualenv",
"priority": 50 "priority": 50
}, },
{
"function": "powerline.segments.common.time.date",
"priority": 10,
"args": {
"istime": true,
"format": "%H:%M"
}
},
{ {
"function": "powerline.segments.shell.cwd", "function": "powerline.segments.shell.cwd",
"priority": 10, "priority": 10,
@ -31,10 +40,6 @@
"use_path_separator": true "use_path_separator": true
} }
}, },
{
"function": "powerline.segments.shell.jobnum",
"priority": 20
},
{ {
"function": "powerline_gitstatus.gitstatus", "function": "powerline_gitstatus.gitstatus",
"priority": 40 "priority": 40
@ -43,20 +48,12 @@
], ],
"right": [ "right": [
{ {
"function": "powerline.segments.shell.last_pipe_status", "function": "powerline.segments.shell.last_pipe_status",
"priority": 10 "priority": 20
}, },
{ {
"function": "powerline.segments.common.vcs.stash", "function": "powerline.segments.shell.jobnum",
"priority": 50 "priority": 20
},
{
"function": "powerline.segments.common.vcs.branch",
"priority": 40
},
{
"function": "powerline.segments.common.time.date",
"priority": 50
} }
] ]
} }