diff options
author | jakob.stendahl <jakob.stendahl@infomedia.dk> | 2024-01-23 11:13:18 +0100 |
---|---|---|
committer | jakob.stendahl <jakob.stendahl@infomedia.dk> | 2024-01-23 11:13:18 +0100 |
commit | 72efe134f645a5212f875c153dd8db4a64cbe968 (patch) | |
tree | d23229285071bf381515657b94919852ebf426c9 /linux/powerline_config/themes/shell | |
parent | e33d5f8d10d34e5a3a4bb292015961dd574f4c93 (diff) | |
download | dotfiles-72efe134f645a5212f875c153dd8db4a64cbe968.tar.gz dotfiles-72efe134f645a5212f875c153dd8db4a64cbe968.zip |
changes
Diffstat (limited to 'linux/powerline_config/themes/shell')
-rw-r--r-- | linux/powerline_config/themes/shell/__main__.json | 14 | ||||
-rw-r--r-- | linux/powerline_config/themes/shell/continuation.json | 12 | ||||
-rw-r--r-- | linux/powerline_config/themes/shell/default.json | 43 | ||||
-rw-r--r-- | linux/powerline_config/themes/shell/default_leftonly.json | 34 | ||||
-rw-r--r-- | linux/powerline_config/themes/shell/select.json | 13 |
5 files changed, 116 insertions, 0 deletions
diff --git a/linux/powerline_config/themes/shell/__main__.json b/linux/powerline_config/themes/shell/__main__.json new file mode 100644 index 0000000..13ae942 --- /dev/null +++ b/linux/powerline_config/themes/shell/__main__.json @@ -0,0 +1,14 @@ +{ + "segment_data": { + "hostname": { + "args": { + "only_if_ssh": true + } + }, + "cwd": { + "args": { + "dir_limit_depth": 3 + } + } + } +} diff --git a/linux/powerline_config/themes/shell/continuation.json b/linux/powerline_config/themes/shell/continuation.json new file mode 100644 index 0000000..9307fc0 --- /dev/null +++ b/linux/powerline_config/themes/shell/continuation.json @@ -0,0 +1,12 @@ +{ + "default_module": "powerline.segments.shell", + "segments": { + "left": [ + { + "function": "continuation" + } + ], + "right": [ + ] + } +} diff --git a/linux/powerline_config/themes/shell/default.json b/linux/powerline_config/themes/shell/default.json new file mode 100644 index 0000000..38039d8 --- /dev/null +++ b/linux/powerline_config/themes/shell/default.json @@ -0,0 +1,43 @@ +{ + "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 + } + ], + "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/linux/powerline_config/themes/shell/default_leftonly.json b/linux/powerline_config/themes/shell/default_leftonly.json new file mode 100644 index 0000000..b576273 --- /dev/null +++ b/linux/powerline_config/themes/shell/default_leftonly.json @@ -0,0 +1,34 @@ +{ + "segments": { + "left": [ + { + "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.common.vcs.branch", + "priority": 40 + }, + { + "function": "powerline.segments.shell.cwd", + "priority": 10 + }, + { + "function": "powerline.segments.shell.jobnum", + "priority": 20 + }, + { + "function": "powerline.segments.shell.last_pipe_status", + "priority": 10 + } + ] + } +} diff --git a/linux/powerline_config/themes/shell/select.json b/linux/powerline_config/themes/shell/select.json new file mode 100644 index 0000000..3d81408 --- /dev/null +++ b/linux/powerline_config/themes/shell/select.json @@ -0,0 +1,13 @@ +{ + "segments": { + "left": [ + { + "type": "string", + "contents": "Select variant", + "width": "auto", + "align": "r", + "highlight_groups": ["continuation:current"] + } + ] + } +} |