From a95ce8405c2609e45534791f0abad9145950d3af Mon Sep 17 00:00:00 2001 From: jfm Date: Wed, 6 Jun 2018 18:10:45 +0200 Subject: [PATCH] Added powerline config --- .../powerline/colorschemes/shell/default.json | 31 +++++++++++ powerline/.config/powerline/config.json | 53 +++++++++++++++++++ .../powerline/themes/shell/default.json | 17 ++++++ .../themes/shell/default_leftonly.json | 17 ++++++ 4 files changed, 118 insertions(+) create mode 100644 powerline/.config/powerline/colorschemes/shell/default.json create mode 100644 powerline/.config/powerline/config.json create mode 100644 powerline/.config/powerline/themes/shell/default.json create mode 100644 powerline/.config/powerline/themes/shell/default_leftonly.json diff --git a/powerline/.config/powerline/colorschemes/shell/default.json b/powerline/.config/powerline/colorschemes/shell/default.json new file mode 100644 index 0000000..719aefb --- /dev/null +++ b/powerline/.config/powerline/colorschemes/shell/default.json @@ -0,0 +1,31 @@ +{ + "name": "Default color scheme for shell prompts", + "groups": { + "hostname": { "fg": "brightyellow", "bg": "mediumorange", "attrs": [] }, + "environment": { "fg": "white", "bg": "darkestgreen", "attrs": [] }, + "mode": { "fg": "darkestgreen", "bg": "brightgreen", "attrs": ["bold"] }, + "attached_clients": { "fg": "white", "bg": "darkestgreen", "attrs": [] }, + + "gitstatus": { "fg": "gray8", "bg": "gray2", "attrs": [] }, + "gitstatus_branch": { "fg": "gray8", "bg": "gray2", "attrs": [] }, + "gitstatus_branch_clean": { "fg": "green", "bg": "gray2", "attrs": [] }, + "gitstatus_branch_dirty": { "fg": "gray8", "bg": "gray2", "attrs": [] }, + "gitstatus_branch_detached": { "fg": "mediumpurple", "bg": "gray2", "attrs": [] }, + "gitstatus_tag": { "fg": "darkcyan", "bg": "gray2", "attrs": [] }, + "gitstatus_behind": { "fg": "gray10", "bg": "gray2", "attrs": [] }, + "gitstatus_ahead": { "fg": "gray10", "bg": "gray2", "attrs": [] }, + "gitstatus_staged": { "fg": "green", "bg": "gray2", "attrs": [] }, + "gitstatus_unmerged": { "fg": "brightred", "bg": "gray2", "attrs": [] }, + "gitstatus_changed": { "fg": "mediumorange", "bg": "gray2", "attrs": [] }, + "gitstatus_untracked": { "fg": "brightestorange", "bg": "gray2", "attrs": [] }, + "gitstatus_stashed": { "fg": "darkblue", "bg": "gray2", "attrs": [] }, + "gitstatus:divider": { "fg": "gray8", "bg": "gray2", "attrs": [] } + }, + "mode_translations": { + "vicmd": { + "groups": { + "mode": {"fg": "darkestcyan", "bg": "white", "attrs": ["bold"]} + } + } + } +} diff --git a/powerline/.config/powerline/config.json b/powerline/.config/powerline/config.json new file mode 100644 index 0000000..fae5fe6 --- /dev/null +++ b/powerline/.config/powerline/config.json @@ -0,0 +1,53 @@ +{ + "common": { + "term_truecolor": false + }, + "ext": { + "ipython": { + "colorscheme": "default", + "theme": "in", + "local_themes": { + "rewrite": "rewrite", + "out": "out", + "in2": "in2" + } + }, + "pdb": { + "colorscheme": "default", + "theme": "default" + }, + "shell": { + "colorscheme": "default", + "theme": "default_leftonly", + "local_themes": { + "continuation": "continuation", + "select": "select" + } + }, + "tmux": { + "colorscheme": "default", + "theme": "default" + }, + "vim": { + "colorscheme": "default", + "theme": "default", + "local_themes": { + "__tabline__": "tabline", + + "cmdwin": "cmdwin", + "help": "help", + "quickfix": "quickfix", + + "powerline.matchers.vim.plugin.nerdtree.nerdtree": "plugin_nerdtree", + "powerline.matchers.vim.plugin.commandt.commandt": "plugin_commandt", + "powerline.matchers.vim.plugin.gundo.gundo": "plugin_gundo", + "powerline.matchers.vim.plugin.gundo.gundo_preview": "plugin_gundo-preview" + } + }, + "wm": { + "colorscheme": "default", + "theme": "default", + "update_interval": 2 + } + } +} diff --git a/powerline/.config/powerline/themes/shell/default.json b/powerline/.config/powerline/themes/shell/default.json new file mode 100644 index 0000000..97746b1 --- /dev/null +++ b/powerline/.config/powerline/themes/shell/default.json @@ -0,0 +1,17 @@ +{ + "segments": { + "left": [ + { + "function": "powerline.segments.shell.cwd", + "args" : { + "dir_shorten_len" : 2 + }, + "priority": 10 + }, + { + "function": "powerline_gitstatus.gitstatus", + "priority": 40 + } + ] + } +} diff --git a/powerline/.config/powerline/themes/shell/default_leftonly.json b/powerline/.config/powerline/themes/shell/default_leftonly.json new file mode 100644 index 0000000..97746b1 --- /dev/null +++ b/powerline/.config/powerline/themes/shell/default_leftonly.json @@ -0,0 +1,17 @@ +{ + "segments": { + "left": [ + { + "function": "powerline.segments.shell.cwd", + "args" : { + "dir_shorten_len" : 2 + }, + "priority": 10 + }, + { + "function": "powerline_gitstatus.gitstatus", + "priority": 40 + } + ] + } +}