-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(main): add gruvbox-material colorscheme
Release-As: 3.11.0
- Loading branch information
Showing
3 changed files
with
136 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
%hidden THEME_NAME="gruvbox-material" | ||
# Created according to https://github.com/sainnhe/gruvbox-material/blob/b16dcd787db5ba9302b54ebeac186784c2aed29a/autoload/gruvbox_material.vim | ||
|
||
# Surfaces colors | ||
set -g @${PLUGIN_NAME}-thm-bg "#282828" # 235 hard dark bg_statusline1 | ||
set -g @${PLUGIN_NAME}-thm-widget-bg "#32302f" # 235 hard dark bg_statusline2 | ||
set -g @${PLUGIN_NAME}-thm-widget-fg "#d4be98" # 223 material dark fg0 | ||
set -g @${PLUGIN_NAME}-thm-icon-fg "#32302f" # 235 hard dark bg_statusline2 | ||
set -g @${PLUGIN_NAME}-thm-current-window-bg "#504945" # 239 hard dark bg_statusline3 | ||
|
||
# Colors | ||
set -g @${PLUGIN_NAME}-thm-green "#a9b665" # 142 material dark green | ||
set -g @${PLUGIN_NAME}-thm-blue "#7daea3" # 109 material dark blue | ||
set -g @${PLUGIN_NAME}-thm-purple "#d3869b" # 175 material dark purple | ||
set -g @${PLUGIN_NAME}-thm-red "#ea6962" # 167 material dark red | ||
set -g @${PLUGIN_NAME}-thm-orange "#e78a4e" # 208 material dark orange | ||
set -g @${PLUGIN_NAME}-thm-yellow "#d8a657" # 214 material dark yellow | ||
|
||
# Defaults | ||
set -og @${PLUGIN_NAME}-thm-left-corner "" | ||
set -og @${PLUGIN_NAME}-thm-separator "█" | ||
set -og @${PLUGIN_NAME}-thm-right-corner "" | ||
|
||
## Status bg/fg | ||
set -gF status-bg "#{?#{==:#{status-bg},default},#{@${PLUGIN_NAME}-thm-bg},#{status-bg}}" | ||
set -gF status-fg "#{?#{==:#{status-fg},default},#{@${PLUGIN_NAME}-thm-widget-fg},#{status-fg}}" | ||
|
||
## Message-style bg/fg/align | ||
run-shell "if tmux display -p '#{message-style}' | grep -q 'bg=yellow'; then tmux set -g message-style \"\$(tmux display -p '#{message-style}' | sed 's/bg=yellow/bg=#{@${PLUGIN_NAME}-thm-current-window-bg}/')\"; fi" | ||
run-shell "if tmux display -p '#{message-style}' | grep -q 'fg=black'; then tmux set -g message-style \"\$(tmux display -p '#{message-style}' | sed 's/fg=black/fg=#{@${PLUGIN_NAME}-thm-widget-fg}/')\"; fi" | ||
run-shell "if ! tmux display -p '#{message-style}' | grep -q 'align='; then tmux set -g message-style \"\$(tmux display -p '#{message-style},align=centre')\"; fi" | ||
|
||
## Message-command-style bg/fg/align | ||
run-shell "if tmux display -p '#{message-command-style}' | grep -q 'bg=black'; then tmux set -g message-command-style \"\$(tmux display -p '#{message-command-style}' | sed 's/bg=black/bg=#{@${PLUGIN_NAME}-thm-widget-fg}/')\"; fi" | ||
run-shell "if tmux display -p '#{message-command-style}' | grep -q 'fg=yellow'; then tmux set -g message-command-style \"\$(tmux display -p '#{message-command-style}' | sed 's/fg=yellow/fg=#{@${PLUGIN_NAME}-thm-current-window-bg}/')\"; fi" | ||
run-shell "if ! tmux display -p '#{message-command-style}' | grep -q 'align='; then tmux set -g message-command-style \"\$(tmux display -p '#{message-command-style},align=centre')\"; fi" | ||
|
||
# Widgets | ||
## Directory | ||
%hidden WIDGET_NAME="directory" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p1-value "#{E:@${PLUGIN_NAME}-thm-left-corner}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p1-fg "#{E:@${PLUGIN_NAME}-thm-purple}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p1-bg "#{E:@${PLUGIN_NAME}-thm-bg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p2-value " " | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p2-fg "#{E:@${PLUGIN_NAME}-thm-icon-fg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p2-bg "#{E:@${PLUGIN_NAME}-${WIDGET_NAME}-p1-fg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p3-value " #{b:pane_current_path} " | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p3-fg "#{E:@${PLUGIN_NAME}-thm-widget-fg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p3-bg "#{E:@${PLUGIN_NAME}-thm-widget-bg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p4-value "#{E:@${PLUGIN_NAME}-thm-right-corner}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p4-fg "#{E:@${PLUGIN_NAME}-${WIDGET_NAME}-p3-bg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p4-bg "#{E:@${PLUGIN_NAME}-${WIDGET_NAME}-p1-bg}" | ||
|
||
## Session | ||
%hidden WIDGET_NAME="session" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p1-value "█" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p1-fg "#{?client_prefix,#{E:@${PLUGIN_NAME}-thm-red},#{E:@${PLUGIN_NAME}-thm-green}}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p1-bg "#{E:@${PLUGIN_NAME}-thm-bg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p2-value " #S " | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p2-fg "#{E:@${PLUGIN_NAME}-thm-widget-fg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p2-bg "#{E:@${PLUGIN_NAME}-thm-widget-bg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p3-value "#{E:@${PLUGIN_NAME}-thm-right-corner}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p3-fg "#{E:@${PLUGIN_NAME}-${WIDGET_NAME}-p2-bg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p3-bg "#{E:@${PLUGIN_NAME}-${WIDGET_NAME}-p1-bg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p4-value "" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p4-fg "" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p4-bg "" | ||
|
||
## Gitmux | ||
%hidden WIDGET_NAME="gitmux" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p1-value "#{?#(gitmux #{pane_current_path}),#{E:@${PLUGIN_NAME}-thm-left-corner},}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p1-fg "#{?#(gitmux #{pane_current_path}),#{E:@${PLUGIN_NAME}-thm-green},}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p1-bg "#{?#(gitmux #{pane_current_path}),#{E:@${PLUGIN_NAME}-thm-bg},}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p2-value "#{?#(gitmux #{pane_current_path}), ,}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p2-fg "#{?#(gitmux #{pane_current_path}),#{E:@${PLUGIN_NAME}-thm-icon-fg},}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p2-bg "#{E:@${PLUGIN_NAME}-${WIDGET_NAME}-p1-fg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p3-value "#{?#(gitmux #{pane_current_path}), #(gitmux #{pane_current_path}),}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p3-fg "#{?#(gitmux #{pane_current_path}),#{E:@${PLUGIN_NAME}-thm-widget-fg},}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p3-bg "#{?#(gitmux #{pane_current_path}),#{E:@${PLUGIN_NAME}-thm-widget-bg},}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p4-value "#{?#(gitmux #{pane_current_path}),█,}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p4-fg "#{E:@${PLUGIN_NAME}-${WIDGET_NAME}-p3-bg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p4-bg "#{E:@${PLUGIN_NAME}-${WIDGET_NAME}-p1-bg}" | ||
|
||
## DateTime | ||
%hidden WIDGET_NAME="date-time" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p1-value "#{E:@${PLUGIN_NAME}-thm-left-corner}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p1-fg "#{E:@${PLUGIN_NAME}-thm-blue}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p1-bg "#{E:@${PLUGIN_NAME}-thm-bg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p2-value " " | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p2-fg "#{E:@${PLUGIN_NAME}-thm-icon-fg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p2-bg "#{E:@${PLUGIN_NAME}-${WIDGET_NAME}-p1-fg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p3-value " %H:%M" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p3-fg "#{E:@${PLUGIN_NAME}-thm-widget-fg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p3-bg "#{E:@${PLUGIN_NAME}-thm-widget-bg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p4-value "█" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p4-fg "#{E:@${PLUGIN_NAME}-${WIDGET_NAME}-p3-bg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p4-bg "#{E:@${PLUGIN_NAME}-${WIDGET_NAME}-p1-bg}" | ||
|
||
## Current Window | ||
%hidden WIDGET_NAME="current-window" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p1-value "#{E:@${PLUGIN_NAME}-thm-left-corner}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p1-fg "#{E:@${PLUGIN_NAME}-thm-orange}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p1-bg "#{E:@${PLUGIN_NAME}-thm-bg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p2-value "#I " | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p2-fg "#{E:@${PLUGIN_NAME}-thm-current-window-bg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p2-bg "#{E:@${PLUGIN_NAME}-${WIDGET_NAME}-p1-fg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p3-value " #W#{?window_zoomed_flag,(),} " | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p3-fg "#{E:@${PLUGIN_NAME}-thm-widget-fg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p3-bg "#{E:@${PLUGIN_NAME}-thm-current-window-bg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p4-value "#{E:@${PLUGIN_NAME}-thm-right-corner}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p4-fg "#{E:@${PLUGIN_NAME}-${WIDGET_NAME}-p3-bg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p4-bg "#{E:@${PLUGIN_NAME}-${WIDGET_NAME}-p1-bg}" | ||
|
||
## Default Window | ||
%hidden WIDGET_NAME="default-window" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p1-value "#{E:@${PLUGIN_NAME}-thm-left-corner}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p1-fg "#{E:@${PLUGIN_NAME}-thm-blue}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p1-bg "#{E:@${PLUGIN_NAME}-thm-bg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p2-value "#I " | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p2-fg "#{E:@${PLUGIN_NAME}-thm-icon-fg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p2-bg "#{E:@${PLUGIN_NAME}-${WIDGET_NAME}-p1-fg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p3-value " #W#{?window_zoomed_flag,(),} " | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p3-fg "#{E:@${PLUGIN_NAME}-thm-widget-fg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p3-bg "#{E:@${PLUGIN_NAME}-thm-widget-bg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p4-value "#{E:@${PLUGIN_NAME}-thm-right-corner}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p4-fg "#{E:@${PLUGIN_NAME}-${WIDGET_NAME}-p3-bg}" | ||
set -ogq @${PLUGIN_NAME}-${WIDGET_NAME}-p4-bg "#{E:@${PLUGIN_NAME}-${WIDGET_NAME}-p1-bg}" |