From a04e3b7154bd6ef9ed426756b59dec7a3f76d9d1 Mon Sep 17 00:00:00 2001 From: Evan Reichard Date: Thu, 22 Oct 2020 10:23:28 -0400 Subject: [PATCH] Add powerline configuration --- .config/powerline/colorschemes/default.json | 18 ++++++++ .config/powerline/themes/shell/default.json | 47 +++++++++++++++++++++ .config/powerline/themes/tmux/default.json | 28 ++++++++++++ 3 files changed, 93 insertions(+) create mode 100644 .config/powerline/colorschemes/default.json create mode 100644 .config/powerline/themes/shell/default.json create mode 100644 .config/powerline/themes/tmux/default.json diff --git a/.config/powerline/colorschemes/default.json b/.config/powerline/colorschemes/default.json new file mode 100644 index 0000000..e688837 --- /dev/null +++ b/.config/powerline/colorschemes/default.json @@ -0,0 +1,18 @@ +{ + "groups": { + "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": [] } + } +} diff --git a/.config/powerline/themes/shell/default.json b/.config/powerline/themes/shell/default.json new file mode 100644 index 0000000..ef21057 --- /dev/null +++ b/.config/powerline/themes/shell/default.json @@ -0,0 +1,47 @@ +{ + "segments": { + "left": [ + { + "function": "powerline.segments.shell.mode" + }, + { + "function": "powerline.segments.common.net.hostname", + "priority": 10 + }, + { + "function": "powerline.segments.common.env.user", + "priority": 30 + }, + { + "function": "powerline.segments.common.env.virtualenv", + "priority": 50 + }, + { + "function": "powerline.segments.shell.cwd", + "priority": 10 + }, + { + "function": "powerline.segments.shell.jobnum", + "priority": 20 + }, + { + "function": "powerline_gitstatus.gitstatus", + "priority": 40 + } + ], + "right": [ + { + "function": "powerline.segments.shell.last_pipe_status", + "priority": 10 + }, + { + "function": "powerline.segments.common.vcs.stash", + "priority": 50 + }, + { + "function": "powerline.segments.common.vcs.branch", + "priority": 40 + } + ] + } +} diff --git a/.config/powerline/themes/tmux/default.json b/.config/powerline/themes/tmux/default.json new file mode 100644 index 0000000..95e96ed --- /dev/null +++ b/.config/powerline/themes/tmux/default.json @@ -0,0 +1,28 @@ +{ + "segments": { + "right": [ + { + "function": "powerline.segments.common.sys.cpu_load_percent", + "priority": 50 + }, + { + "function": "powerline.segments.common.time.date" + }, + { + "function": "powerline.segments.common.time.date", + "name": "time", + "args": { + "format": "%H:%M", + "istime": true + } + }, + { + "function": "powerline.segments.common.bat.battery", + "priority": 50 + }, + { + "function": "powerline.segments.common.net.hostname" + } + ] + } +}