diff --git a/README.md b/README.md index b693ebf..e738c05 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ### 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 : ``` @@ -8,7 +8,7 @@ powerline-daemon -q POWERLINE_BASH_CONTINUATION=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 ``` 3. Cloner ce dépôt dans ~/.config/, ie diff --git a/colorschemes/default.json b/colorschemes/default.json index 6387292..1d81f72 100644 --- a/colorschemes/default.json +++ b/colorschemes/default.json @@ -1,18 +1,18 @@ { "name": "Default", "groups": { - "information:additional": { "fg": "gray9", "bg": "gray4", "attrs": [] }, - "information:regular": { "fg": "gray10", "bg": "gray4", "attrs": ["bold"] }, + "information:additional": { "fg": "gray2", "bg": "gray10", "attrs": [] }, + "information:regular": { "fg": "gray2", "bg": "gray10", "attrs": ["bold"] }, "information:highlighted": { "fg": "white", "bg": "gray4", "attrs": [] }, "information:priority": { "fg": "brightyellow", "bg": "mediumorange", "attrs": [] }, "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": [] }, "background": { "fg": "white", "bg": "gray0", "attrs": [] }, "background:divider": { "fg": "gray5", "bg": "gray0", "attrs": [] }, "session": { "fg": "black", "bg": "gray10", "attrs": ["bold"] }, "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": [] }, "email_alert": "warning:regular", "email_alert_gradient": { "fg": "white", "bg": "yellow_orange_red", "attrs": ["bold"] }, diff --git a/themes/shell/default.json b/themes/shell/default.json index 913a47a..c348b9e 100644 --- a/themes/shell/default.json +++ b/themes/shell/default.json @@ -16,13 +16,22 @@ "function": "powerline.segments.common.env.user", "priority": 30, "args": { - "hide_domain": true + "hide_domain": true, + "hide_user": "thomasbriffard" } }, { "function": "powerline.segments.common.env.virtualenv", "priority": 50 }, + { + "function": "powerline.segments.common.time.date", + "priority": 10, + "args": { + "istime": true, + "format": "%H:%M" + } + }, { "function": "powerline.segments.shell.cwd", "priority": 10, @@ -31,10 +40,6 @@ "use_path_separator": true } }, - { - "function": "powerline.segments.shell.jobnum", - "priority": 20 - }, { "function": "powerline_gitstatus.gitstatus", "priority": 40 @@ -43,20 +48,12 @@ ], "right": [ { - "function": "powerline.segments.shell.last_pipe_status", - "priority": 10 - }, + "function": "powerline.segments.shell.last_pipe_status", + "priority": 20 + }, { - "function": "powerline.segments.common.vcs.stash", - "priority": 50 - }, - { - "function": "powerline.segments.common.vcs.branch", - "priority": 40 - }, - { - "function": "powerline.segments.common.time.date", - "priority": 50 + "function": "powerline.segments.shell.jobnum", + "priority": 20 } ] }