Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bin/omarchy-theme-set
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ omarchy-theme-set-browser
omarchy-theme-set-vscode
omarchy-theme-set-obsidian
omarchy-theme-set-keyboard
omarchy-theme-set-k9s

# Call hook on theme set
omarchy-hook theme-set "$THEME_NAME"
13 changes: 13 additions & 0 deletions bin/omarchy-theme-set-k9s
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# Sync Omarchy theme to k9s when the user already has a k9s config directory

K9S_CONFIG_DIR="${K9S_CONFIG_DIR:-${XDG_CONFIG_HOME:-$HOME/.config}/k9s}"
K9S_SKINS_DIR="$K9S_CONFIG_DIR/skins"
OMARCHY_K9S_THEME="$HOME/.config/omarchy/current/theme/k9s.yaml"

[[ -d $K9S_CONFIG_DIR ]] || exit 0
[[ -f $OMARCHY_K9S_THEME ]] || exit 0

mkdir -p "$K9S_SKINS_DIR"
cp "$OMARCHY_K9S_THEME" "$K9S_SKINS_DIR/omarchy.yaml"
90 changes: 90 additions & 0 deletions default/themed/k9s.yaml.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
k9s:
body:
fgColor: '#{{ foreground_strip }}'
bgColor: '#{{ background_strip }}'
logoColor: '#{{ accent_strip }}'
prompt:
fgColor: '#{{ foreground_strip }}'
bgColor: '#{{ background_strip }}'
suggestColor: '#{{ color11_strip }}'
info:
fgColor: '#{{ accent_strip }}'
sectionColor: '#{{ foreground_strip }}'
dialog:
fgColor: '#{{ foreground_strip }}'
bgColor: '#{{ background_strip }}'
buttonFgColor: '#{{ foreground_strip }}'
buttonBgColor: '#{{ color13_strip }}'
buttonFocusFgColor: '#{{ color11_strip }}'
buttonFocusBgColor: '#{{ accent_strip }}'
labelFgColor: '#{{ color11_strip }}'
fieldFgColor: '#{{ foreground_strip }}'
frame:
border:
fgColor: '#{{ selection_foreground_strip }}'
focusColor: '#{{ selection_background_strip }}'
menu:
fgColor: '#{{ foreground_strip }}'
keyColor: '#{{ accent_strip }}'
numKeyColor: '#{{ accent_strip }}'
crumbs:
fgColor: '#{{ selection_foreground_strip }}'
bgColor: '#{{ selection_background_strip }}'
activeColor: '#{{ accent_strip }}'
status:
newColor: '#{{ color14_strip }}'
modifyColor: '#{{ color13_strip }}'
addColor: '#{{ color10_strip }}'
errorColor: '#{{ color9_strip }}'
highlightColor: '#{{ color11_strip }}'
killColor: '#{{ color8_strip }}'
completedColor: '#{{ color8_strip }}'
title:
fgColor: '#{{ foreground_strip }}'
bgColor: '#{{ background_strip }}'
highlightColor: '#{{ color11_strip }}'
counterColor: '#{{ color13_strip }}'
filterColor: '#{{ accent_strip }}'
views:
charts:
bgColor: '#{{ background_strip }}'
defaultDialColors:
- '#{{ color13_strip }}'
- '#{{ color9_strip }}'
defaultChartColors:
- '#{{ color13_strip }}'
- '#{{ color9_strip }}'
table:
fgColor: '#{{ foreground_strip }}'
bgColor: '#{{ background_strip }}'
cursorColor: '#{{ selection_background_strip }}'
header:
fgColor: '#{{ foreground_strip }}'
bgColor: '#{{ background_strip }}'
sorterColor: '#{{ color14_strip }}'
xray:
fgColor: '#{{ foreground_strip }}'
bgColor: '#{{ background_strip }}'
cursorColor: '#{{ selection_background_strip }}'
graphicColor: '#{{ color13_strip }}'
showIcons: false
yaml:
keyColor: '#{{ accent_strip }}'
colonColor: '#{{ color13_strip }}'
valueColor: '#{{ foreground_strip }}'
logs:
fgColor: '#{{ foreground_strip }}'
bgColor: '#{{ background_strip }}'
indicator:
fgColor: '#{{ foreground_strip }}'
bgColor: '#{{ color13_strip }}'
toggleOnColor: '#{{ color10_strip }}'
toggleOffColor: '#{{ color8_strip }}'
help:
fgColor: '#{{ foreground_strip }}'
bgColor: '#{{ background_strip }}'
keyColor: '#{{ accent_strip }}'
numKeyColor: '#{{ color13_strip }}'
sectionColor: '#{{ color8_strip }}'
indicator:
fgColor: '#{{ color9_strip }}'
Loading