Skip to content

Commit

Permalink
chore(main): add gruvbox-material colorscheme
Browse files Browse the repository at this point in the history
Release-As: 3.11.0
  • Loading branch information
Ninzalo committed Nov 7, 2024
2 parents 5739579 + 44d3640 commit 61eba48
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ set -g @tmst-colorscheme "gruvbox-dark"
<ul>
<li>gruvbox-dark</li>
<img src='./assets/colorschemes/gruvbox-dark.png' height='16'/>
<li>gruvbox-material</li>
<img src='./assets/colorschemes/gruvbox-material.png' height='16'/>
<li>gruvbox-light</li>
<img src='./assets/colorschemes/gruvbox-light.png' height='16'/>
<li>catppuccin-mocha</li>
Expand Down Expand Up @@ -276,6 +278,13 @@ set -ag status-left "#{E:@tmst-custom2-2-widget}" # Create default values for 'c
gruvbox
</a> colorscheme
</li>
<li>
<a href='https://github.com/Mofiqul'>
@Mofiqul
</a> - <a href='https://github.com/Mofiqul/vscode.nvim/tree/main'>
gruvbox-material
</a> colorscheme
</li>
<li>
<a href='https://github.com/catppuccin'>
@catppuccin
Expand Down
Binary file added assets/colorschemes/gruvbox-material.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
127 changes: 127 additions & 0 deletions themes/gruvbox-material.conf
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}"

0 comments on commit 61eba48

Please sign in to comment.