add accent_color autoconfig
This commit is contained in:
parent
9fff82d6e2
commit
ce2ccc09ed
20
config.yaml
20
config.yaml
|
@ -16,7 +16,8 @@ variables:
|
|||
font:
|
||||
mono: FiraCode Nerd Font
|
||||
interface: Inter
|
||||
profiles: #{{{
|
||||
|
||||
profiles:
|
||||
dark: # {{{
|
||||
variables:
|
||||
gtk_theme: materia-lelgenio-dark
|
||||
|
@ -25,7 +26,6 @@ profiles: #{{{
|
|||
cursor_theme: capitaine-cursors
|
||||
color:
|
||||
type: dark
|
||||
accent: '#D9534F'
|
||||
bg: '#202020'
|
||||
bg_light: '#404040'
|
||||
bg_dark: '#191919'
|
||||
|
@ -51,7 +51,6 @@ profiles: #{{{
|
|||
cursor_theme: capitaine-cursors
|
||||
color:
|
||||
type: light
|
||||
accent: '#D9534F'
|
||||
bg: '#EAEAEA'
|
||||
bg_light: '#A0A0A0'
|
||||
bg_dark: '#999999'
|
||||
|
@ -66,6 +65,15 @@ profiles: #{{{
|
|||
magenta: '#C397D8'
|
||||
cyan: '#00A0A5'
|
||||
white: '#FFFFFF'
|
||||
# }}}
|
||||
# Accents {{{
|
||||
accent_red: {variables: {accent_color: "#D9534F"}}
|
||||
accent_green: {variables: {accent_color: "#159828"}}
|
||||
accent_blue: {variables: {accent_color: "#3465A3"}}
|
||||
accent_pink: {variables: {accent_color: "#E91E63"}}
|
||||
accent_teal: {variables: {accent_color: "#16A085"}}
|
||||
accent_magenta: {variables: {accent_color: "#9C27B0"}}
|
||||
|
||||
# }}}
|
||||
colemak: #{{{
|
||||
variables:
|
||||
|
@ -101,8 +109,9 @@ profiles: #{{{
|
|||
include:
|
||||
- "{{@@ key_layout @@}}"
|
||||
- "{{@@ color_type @@}}"
|
||||
- "accent_{{@@ accent_color_name @@}}"
|
||||
#}}}
|
||||
#}}}
|
||||
|
||||
config: # {{{
|
||||
backup: false
|
||||
banner: false
|
||||
|
@ -123,6 +132,7 @@ dynvariables:
|
|||
echo colemak || echo qwerty
|
||||
fi
|
||||
color_type: test -n "$_COLOR_TYPE" && echo "$_COLOR_TYPE" || echo dark
|
||||
accent_color_name: test -n "$_ACCENT_COLOR" && echo "$_ACCENT_COLOR" || echo red
|
||||
blender_version: blender --version | head -n1 | sed -E 's|^Blender (.*)\..*|\1|g'
|
||||
# }}}
|
||||
dotfiles: # {{{
|
||||
|
@ -249,7 +259,7 @@ actions: #{{{
|
|||
notify: notify-send "Updating dotfiles" "{{@@ _dotfile_abs_dst.lstrip(env['HOME']) @@}}"
|
||||
makoreload: makoctl reload
|
||||
lesskey: lesskey
|
||||
reload_sway: swaymsg reload
|
||||
reload_sway: pidof swaymsg || swaymsg reload
|
||||
reload_fish: pkill -SIGHUP fish
|
||||
vimplug: >
|
||||
nvim
|
||||
|
|
|
@ -191,7 +191,7 @@ colors:
|
|||
# the cursor color will be the inverse of the cell color.
|
||||
cursor:
|
||||
text: '#000000'
|
||||
cursor: '{{@@ color.accent @@}}'
|
||||
cursor: '{{@@ accent_color @@}}'
|
||||
|
||||
# Selection colors
|
||||
#
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
<ThemeWidgetColors
|
||||
outline="#373737"
|
||||
inner="#585858ff"
|
||||
inner_sel="{{@@ color.accent.lower() @@}}e6"
|
||||
inner_sel="{{@@ accent_color.lower() @@}}e6"
|
||||
item="#3e3e3eff"
|
||||
text="#d9d9d9"
|
||||
text_sel="#ffffff"
|
||||
|
|
|
@ -63,6 +63,7 @@ abbr gp 'git pull; git push'
|
|||
|
||||
export _KEYBOARD_LAYOUT="{{@@ key_layout @@}}"
|
||||
export _COLOR_TYPE="{{@@ color_type @@}}"
|
||||
export _ACCENT_COLOR "{{@@ accent_color_name @@}}"
|
||||
|
||||
export DOTDROP_CONFIG="{{@@ _dotdrop_cfgpath @@}}"
|
||||
export DOTDROP_PROFILE="{{@@ profile @@}}"
|
||||
|
@ -229,7 +230,7 @@ function _fish_prompt_color -a color
|
|||
echo -en $argv
|
||||
end
|
||||
|
||||
alias _fish_prompt_accent "_fish_prompt_color '{{@@ color.accent @@}}'"
|
||||
alias _fish_prompt_accent "_fish_prompt_color '{{@@ accent_color @@}}'"
|
||||
alias _fish_prompt_warn "_fish_prompt_color 'yellow'"
|
||||
|
||||
alias _fish_prompt_normal "_fish_prompt_color 'normal'"
|
||||
|
@ -334,9 +335,9 @@ export FZF_DEFAULT_OPTS="\
|
|||
bg+:{{@@ color.bg_light @@}},\
|
||||
hl+:{{@@ color.normal.green @@}},\
|
||||
gutter:{{@@ color.bg @@}},\
|
||||
prompt:{{@@ color.accent @@}},\
|
||||
pointer:{{@@ color.accent @@}},\
|
||||
spinner:{{@@ color.accent @@}}\
|
||||
prompt:{{@@ accent_color @@}},\
|
||||
pointer:{{@@ accent_color @@}},\
|
||||
spinner:{{@@ accent_color @@}}\
|
||||
'"
|
||||
|
||||
#}}}
|
||||
|
|
|
@ -14,7 +14,7 @@ font_size 12
|
|||
# {%@@ set n = c.normal @@%}#
|
||||
|
||||
#colors
|
||||
cursor {{@@ c.accent @@}}
|
||||
cursor {{@@ accent_color @@}}
|
||||
background {{@@ c.bg @@}}
|
||||
foreground {{@@ c.txt @@}}
|
||||
background_opacity 0.95
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
font={{@@ font.interface @@}} 12
|
||||
text-color={{@@ color.txt @@}}
|
||||
background-color={{@@ color.bg @@}}
|
||||
border-color={{@@ color.accent @@}}
|
||||
border-color={{@@ accent_color @@}}
|
||||
border-size=5
|
||||
progress-color={{@@ color.accent @@}}
|
||||
progress-color={{@@ accent_color @@}}
|
||||
icons=1
|
||||
default-timeout=10000
|
||||
markup=1
|
||||
|
|
|
@ -179,7 +179,7 @@ call plug#end()
|
|||
"background color is transparent
|
||||
highlight Normal guibg=None
|
||||
highlight EndOfBuffer guibg=None guifg={{@@ c.bg_light @@}}
|
||||
highlight SpecialKey guibg=None guifg={{@@ c.accent @@}}
|
||||
highlight SpecialKey guibg=None guifg={{@@ accent_color @@}}
|
||||
highlight Folded guibg=None
|
||||
|
||||
highlight tabLine None
|
||||
|
@ -212,7 +212,7 @@ call plug#end()
|
|||
highlight VertSplit guibg=None guifg={{@@ c.bg_dark @@}}
|
||||
" set fillchars=vert:/
|
||||
|
||||
highlight Identifier guifg={{@@ c.accent @@}}
|
||||
highlight Identifier guifg={{@@ accent_color @@}}
|
||||
|
||||
highlight MatchParen gui=bold guifg={{@@ n.yellow @@}}
|
||||
|
||||
|
|
|
@ -77,7 +77,7 @@ c.completion.shrink = True
|
|||
|
||||
# CSS border value for hints.
|
||||
# Type: String
|
||||
c.hints.border = "2px solid {{@@ color.accent @@}}"
|
||||
c.hints.border = "2px solid {{@@ accent_color @@}}"
|
||||
|
||||
# Characters used for hint strings.
|
||||
# {%@@ if key_layout == "colemak" @@%} #
|
||||
|
@ -135,7 +135,7 @@ c.colors.completion.category.bg = "{{@@ color.bg_dark @@}}"
|
|||
c.colors.completion.category.border.top = "{{@@ color.bg_dark @@}}"
|
||||
c.colors.completion.category.border.bottom = "{{@@ color.bg_dark @@}}"
|
||||
|
||||
c.colors.completion.item.selected.bg = "{{@@ color.accent @@}}"
|
||||
c.colors.completion.item.selected.bg = "{{@@ accent_color @@}}"
|
||||
c.colors.completion.item.selected.border.top = "{{@@ color.bg_dark @@}}"
|
||||
c.colors.completion.item.selected.border.bottom = "{{@@ color.bg_dark @@}}"
|
||||
|
||||
|
@ -168,10 +168,10 @@ c.colors.hints.fg = "{{@@ color.txt @@}}"
|
|||
c.colors.hints.bg = "{{@@ color.bg @@}}"
|
||||
|
||||
# Font color for the matched part of hints.
|
||||
c.colors.hints.match.fg = "{{@@ color.accent @@}}"
|
||||
c.colors.hints.match.fg = "{{@@ accent_color @@}}"
|
||||
|
||||
# Highlight color for keys to complete the current keychain.
|
||||
c.colors.keyhint.suffix.fg = "{{@@ color.accent @@}}"
|
||||
c.colors.keyhint.suffix.fg = "{{@@ accent_color @@}}"
|
||||
|
||||
# Background color of the keyhint widget.
|
||||
c.colors.keyhint.bg = "rgba(30, 30, 30, 95%)"
|
||||
|
@ -192,7 +192,7 @@ c.colors.statusbar.insert.bg = "{{@@ color.bg @@}}"
|
|||
c.colors.statusbar.command.bg = "{{@@ color.bg @@}}"
|
||||
|
||||
# Background color of the statusbar in caret mode with a selection.
|
||||
c.colors.statusbar.caret.selection.bg = "{{@@ color.accent @@}}"
|
||||
c.colors.statusbar.caret.selection.bg = "{{@@ accent_color @@}}"
|
||||
|
||||
# Foreground color of the URL in the statusbar on successful load
|
||||
# (https).
|
||||
|
@ -212,8 +212,8 @@ c.colors.tabs.odd.bg = "{{@@ color.bg @@}}"
|
|||
c.colors.tabs.selected.even.fg = "{{@@ color.txt @@}}"
|
||||
c.colors.tabs.selected.odd.fg = "{{@@ color.txt @@}}"
|
||||
# Background color of selected tabs.
|
||||
c.colors.tabs.selected.even.bg = "{{@@ color.accent @@}}"
|
||||
c.colors.tabs.selected.odd.bg = "{{@@ color.accent @@}}"
|
||||
c.colors.tabs.selected.even.bg = "{{@@ accent_color @@}}"
|
||||
c.colors.tabs.selected.odd.bg = "{{@@ accent_color @@}}"
|
||||
|
||||
# Background color of pinned selected odd tabs.
|
||||
c.colors.tabs.pinned.selected.odd.bg = "{{@@ color.bg_light @@}}"
|
||||
|
|
|
@ -1,8 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Papirus Icon Theme
|
||||
{
|
||||
if papirus-folders -l | grep "{{@@ accent_color_name @@}}"
|
||||
then
|
||||
notify-send "Switching Folder Color"
|
||||
papirus-folders -uC "{{@@ accent_color_name @@}}"
|
||||
else
|
||||
papirus-folders -uD
|
||||
fi
|
||||
} &> /dev/null &
|
||||
|
||||
# Materia GTK Theme
|
||||
src_path="$HOME/.cache/materia-theme"
|
||||
|
||||
theme_name="materia-${USER}{{@@ '-dark' if color.type == 'dark' @@}}"
|
||||
theme_name="{{@@ gtk_theme @@}}"
|
||||
dst_path="${HOME}/.themes"
|
||||
|
||||
test -d "$src_path" ||
|
||||
|
@ -18,11 +30,11 @@ cd "$src_path"
|
|||
# View = Main part of file browser
|
||||
# Surface = background of context menu
|
||||
colors="\
|
||||
SEL_BG={{@@ color.accent .lstrip('#') @@}}\n\
|
||||
SEL_BG={{@@ accent_color .lstrip('#') @@}}\n\
|
||||
FG={{@@ color.txt .lstrip('#') @@}}\n\
|
||||
BG={{@@ color.bg_dark .lstrip('#') @@}}\n\
|
||||
BG={{@@ color.bg .lstrip('#') @@}}\n\
|
||||
HDR_FG={{@@ color.txt .lstrip('#') @@}}\n\
|
||||
HDR_BG={{@@ color.bg_dark .lstrip('#') @@}}\n\
|
||||
HDR_BG={{@@ color.bg .lstrip('#') @@}}\n\
|
||||
MATERIA_VIEW={{@@ color.bg .lstrip('#') @@}}\n\
|
||||
MATERIA_SURFACE={{@@ color.bg .lstrip('#') @@}}"
|
||||
|
||||
|
@ -41,8 +53,8 @@ mkdir -p "${dst_path}/${theme_name}"
|
|||
./change_color.sh \
|
||||
-t "${dst_path}" \
|
||||
-o "${theme_name}" \
|
||||
"$color_file" &> /dev/null
|
||||
"$color_file"
|
||||
echo -e "$colors" > "$color_file"
|
||||
|
||||
notify-send "Finished generating theme"
|
||||
} &
|
||||
} &> /dev/null &
|
||||
|
|
|
@ -22,7 +22,7 @@ end
|
|||
set -l fn "{{@@ font.mono @@}} 12"
|
||||
|
||||
set -l tb "{{@@ color.bg @@}}"
|
||||
set -l tf "{{@@ color.accent @@}}"
|
||||
set -l tf "{{@@ accent_color @@}}"
|
||||
|
||||
set -l fb "{{@@ color.bg @@}}"
|
||||
set -l ff "{{@@ color.txt @@}}"
|
||||
|
@ -31,7 +31,7 @@ set -l nb "{{@@ color.bg @@}}"
|
|||
set -l nf "{{@@ color.txt @@}}"
|
||||
|
||||
set -l hb "{{@@ color.bg_light @@}}"
|
||||
set -l hf "{{@@ color.accent @@}}"
|
||||
set -l hf "{{@@ accent_color @@}}"
|
||||
|
||||
#{%@@ if False @@%}#
|
||||
# Hacks to allow runnning even if not templated
|
||||
|
|
|
@ -239,7 +239,7 @@ bindsym $mod+escape mode Passthrough
|
|||
# }}}
|
||||
# Visual: {{{
|
||||
#
|
||||
set $accent {{@@ color.accent @@}}
|
||||
set $accent {{@@ accent_color @@}}
|
||||
set $fg_color {{@@ color.txt @@}}
|
||||
set $bg_color {{@@ color.bg_dark @@}}
|
||||
set $alert #000000
|
||||
|
|
|
@ -52,7 +52,7 @@ window#waybar.empty {
|
|||
{%@@ else @@%}
|
||||
border-bottom:
|
||||
{%@@ endif @@%}
|
||||
3px solid {{@@ color.accent @@}};
|
||||
3px solid {{@@ accent_color @@}};
|
||||
/* border-bottom: 3px solid transparent; */
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,7 @@ window#waybar.empty {
|
|||
}
|
||||
|
||||
#mode{
|
||||
color: {{@@ color.accent @@}};
|
||||
color: {{@@ accent_color @@}};
|
||||
}
|
||||
|
||||
#custom-mpd,
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
#entry:selected {
|
||||
border: none;
|
||||
padding: none;
|
||||
background: {{@@ color.accent @@}};
|
||||
background: {{@@ accent_color @@}};
|
||||
}
|
||||
|
||||
window {
|
||||
background-color: {{@@ color.accent @@}};
|
||||
background-color: {{@@ accent_color @@}};
|
||||
}
|
||||
|
||||
#input {
|
||||
|
|
|
@ -33,7 +33,7 @@ set statusbar-fg "{{@@ color.txt @@}}"
|
|||
set completion-bg "{{@@ color.bg_light @@}}"
|
||||
set completion-fg "{{@@ color.txt @@}}"
|
||||
|
||||
set completion-highlight-bg "{{@@ color.accent @@}}"
|
||||
set completion-highlight-bg "{{@@ accent_color @@}}"
|
||||
set completion-highlight-fg "{{@@ color.txt @@}}"
|
||||
|
||||
# vim: commentstring=#\ %s
|
||||
|
|
Reference in New Issue