colors, fixes
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
{{ define "fadeColor" }}
|
||||
{{- $color := .color -}}
|
||||
{{- $opacity := .opacity -}}
|
||||
{{ $result := "" }}
|
||||
{{- range $color | regexp.Replace "(..)" "$1 " | strings.TrimSpace | strings.Split " " -}}
|
||||
{{- $result = printf "%s%s" $result (conv.ParseInt . 16 32 | math.Mul $opacity | math.Round | conv.ToInt | printf "%02x") -}}
|
||||
{{- end -}}
|
||||
{{- $result -}}
|
||||
{{- end -}}
|
||||
# -*- conf -*-
|
||||
|
||||
# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd)
|
||||
@@ -55,7 +64,7 @@ urgent=yes
|
||||
|
||||
|
||||
[scrollback]
|
||||
# lines=1000
|
||||
lines=10000
|
||||
# multiplier=3.0
|
||||
# indicator-position=relative
|
||||
# indicator-format=""
|
||||
@@ -109,6 +118,18 @@ foreground={{ .theme.color.fg }}
|
||||
# bright6=24dfc4 # bright cyan
|
||||
# bright7=ffffff # bright white
|
||||
|
||||
regular0={{ .theme.color.bg }}
|
||||
regular1=ff4d51
|
||||
regular2=35d450
|
||||
regular3=e9e836
|
||||
regular4=5dc5f8
|
||||
regular5={{ .theme.color.fg_accent }}
|
||||
regular6=24dfc4
|
||||
regular7={{ .theme.color.fg }}
|
||||
bright0={{ .theme.color.bg }}
|
||||
bright5={{ .theme.color.fg_accent }}
|
||||
bright7={{ .theme.color.fg }}
|
||||
|
||||
## dimmed colors (see foot.ini(5) man page)
|
||||
# dim0=<not set>
|
||||
# ...
|
||||
@@ -141,9 +162,9 @@ foreground={{ .theme.color.fg }}
|
||||
# selection-foreground=<inverse foreground/background>
|
||||
# selection-background=<inverse foreground/background>
|
||||
# jump-labels=<regular0> <regular3> # black-on-yellow
|
||||
# scrollback-indicator=<regular0> <bright4> # black-on-bright-blue
|
||||
# search-box-no-match=<regular0> <regular1> # black-on-red
|
||||
# search-box-match=<regular0> <regular3> # black-on-yellow
|
||||
scrollback-indicator={{ .theme.color.bg }} {{ template "fadeColor" (dict "color" .theme.color.fg_accent "opacity" .theme.opacity.med) }}
|
||||
search-box-no-match={{ .theme.color.fg }} {{ .theme.color.bg_accent_dark }}
|
||||
search-box-match={{ .theme.color.fg }} {{ .theme.color.bg_accent_dark }}
|
||||
# urls=<regular3>
|
||||
|
||||
[csd]
|
||||
@@ -163,17 +184,17 @@ foreground={{ .theme.color.fg }}
|
||||
|
||||
[key-bindings]
|
||||
# scrollback-up-page=Shift+Page_Up
|
||||
# scrollback-up-half-page=none
|
||||
scrollback-up-half-page=Control+Shift+u
|
||||
# scrollback-up-line=none
|
||||
# scrollback-down-page=Shift+Page_Down
|
||||
# scrollback-down-half-page=none
|
||||
scrollback-down-half-page=Control+Shift+d
|
||||
# scrollback-down-line=none
|
||||
# scrollback-home=none
|
||||
# scrollback-end=none
|
||||
clipboard-copy=Control+c XF86Copy
|
||||
clipboard-paste=Control+v XF86Paste
|
||||
clipboard-copy=Control+c
|
||||
clipboard-paste=Control+v
|
||||
# primary-paste=Shift+Insert
|
||||
# search-start=Control+Shift+r
|
||||
search-start=Control+Shift+slash
|
||||
# font-increase=Control+plus Control+equal Control+KP_Add
|
||||
# font-decrease=Control+minus Control+KP_Subtract
|
||||
# font-reset=Control+0 Control+KP_0
|
||||
@@ -190,14 +211,14 @@ clipboard-paste=Control+v XF86Paste
|
||||
# show-urls-persistent=none
|
||||
# prompt-prev=Control+Shift+z
|
||||
# prompt-next=Control+Shift+x
|
||||
# unicode-input=Control+Shift+u
|
||||
unicode-input=none
|
||||
# noop=none
|
||||
|
||||
[search-bindings]
|
||||
# cancel=Control+g Control+c Escape
|
||||
# commit=Return
|
||||
# find-prev=Control+r
|
||||
# find-next=Control+s
|
||||
cancel=Escape
|
||||
commit=Return
|
||||
find-prev=Control+K
|
||||
find-next=Control+k
|
||||
# cursor-left=Left Control+b
|
||||
# cursor-left-word=Control+Left Mod1+b
|
||||
# cursor-right=Right Control+f
|
||||
@@ -208,6 +229,8 @@ clipboard-paste=Control+v XF86Paste
|
||||
# delete-prev-word=Mod1+BackSpace Control+BackSpace
|
||||
# delete-next=Delete
|
||||
# delete-next-word=Mod1+d Control+Delete
|
||||
# delete-to-start=Control+u
|
||||
delete-to-end=none
|
||||
# extend-char=Shift+Right
|
||||
# extend-to-word-boundary=Control+w Control+Shift+Right
|
||||
# extend-to-next-whitespace=Control+Shift+w
|
||||
@@ -216,14 +239,13 @@ clipboard-paste=Control+v XF86Paste
|
||||
# extend-backward-to-word-boundary=Control+Shift+Left
|
||||
# extend-backward-to-next-whitespace=none
|
||||
# extend-line-up=Shift+Up
|
||||
clipboard-paste=Control+v Control+y XF86Paste
|
||||
clipboard-paste=Control+v
|
||||
# primary-paste=Shift+Insert
|
||||
# unicode-input=none
|
||||
# quit=none
|
||||
# scrollback-up-page=Shift+Page_Up
|
||||
# scrollback-up-page=Shift+Page_Up Shift+KP_Page_Up
|
||||
# scrollback-up-half-page=none
|
||||
# scrollback-up-line=none
|
||||
# scrollback-down-page=Shift+Page_Down
|
||||
# scrollback-down-page=Shift+Page_Down Shift+KP_Page_Down
|
||||
# scrollback-down-half-page=none
|
||||
# scrollback-down-line=none
|
||||
# scrollback-home=none
|
||||
|
||||
Reference in New Issue
Block a user