flavours: Add fzf styling

Added styling for fzf using the base16 schemes. Currently applies only
on newly opened shell environments but that's good enough for me.
This commit is contained in:
Marty Oehme 2024-06-13 10:19:20 +02:00
parent 6d82162f16
commit d0a2853bf2
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
3 changed files with 22 additions and 7 deletions

View file

@ -61,7 +61,6 @@ template = "qutebrowser"
subtemplate = "minimal" subtemplate = "minimal"
file = "~/.local/state/qutebrowser/colorscheme.py" file = "~/.local/state/qutebrowser/colorscheme.py"
rewrite = true rewrite = true
light = false
hook = "pgrep -x qutebrowser && qutebrowser :config-source" hook = "pgrep -x qutebrowser && qutebrowser :config-source"
# CSS Webpage styling in qutebrowser # CSS Webpage styling in qutebrowser
@ -90,3 +89,10 @@ file = "~/.config/sioyek/prefs_user.config"
rewrite = false rewrite = false
start = "# START FLAVOURS" start = "# START FLAVOURS"
end = "# END FLAVOURS" end = "# END FLAVOURS"
[[items]]
template = "fzf"
subtemplate = "sh"
file = "~/.config/sh/env.d/fzf-base16.sh"
rewrite = true
hook = "source ~/.config/sh/env.d/fzf-base16.sh"

View file

@ -0,0 +1,9 @@
# Scheme name: {{scheme-name}}
# Scheme system: {{scheme-system}}
# Scheme author: {{scheme-author}}
# Template author: Tinted Theming (https://github.com/tinted-theming)
export FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS"\
" --color=bg+:#{{base01-hex}},bg:#{{base00-hex}},spinner:#{{base0C-hex}},hl:#{{base0D-hex}}"\
" --color=fg:#{{base04-hex}},header:#{{base0D-hex}},info:#{{base0A-hex}},pointer:#{{base0C-hex}}"\
" --color=marker:#{{base0C-hex}},fg+:#{{base06-hex}},prompt:#{{base0A-hex}},hl+:#{{base0D-hex}}"

View file

@ -21,15 +21,15 @@ export BIBFILE="${BIBFILE:-$LIBRARYROOT/library.bib}"
# these are my personal 'important' application settings # these are my personal 'important' application settings
if exist nvim; then if exist nvim; then
export EDITOR="nvim" export EDITOR="nvim"
elif exist vim; then elif exist vim; then
export EDITOR="vim" export EDITOR="vim"
elif exist vi; then elif exist vi; then
export EDITOR="vi" export EDITOR="vi"
elif exist micro; then elif exist micro; then
export EDITOR="micro" export EDITOR="micro"
else else
export EDITOR="nano" export EDITOR="nano"
fi fi
export BROWSER="qutebrowser" export BROWSER="qutebrowser"
export TERMINAL="wezterm" export TERMINAL="wezterm"
@ -54,5 +54,5 @@ export TERM=xterm-256color
. dark_bg . dark_bg
if exist fzf; then if exist fzf; then
export FZF_DEFAULT_OPTS="--bind 'tab:toggle+down,shift-tab:toggle+up,ctrl-g:top,ctrl-t:toggle-preview,ctrl-d:preview-half-page-down,ctrl-u:preview-half-page-up' --color=light -1 -m --delimiter :" export FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS --bind 'tab:toggle+down,shift-tab:toggle+up,ctrl-g:top,ctrl-t:toggle-preview,ctrl-d:preview-half-page-down,ctrl-u:preview-half-page-up' -1 -m --delimiter :"
fi fi