kak: random color for statusbar text

This commit is contained in:
lelgenio 2022-03-18 17:41:18 -03:00
parent fcfe5a2091
commit 9beaf86991
2 changed files with 11 additions and 2 deletions

View File

@ -76,6 +76,7 @@ profiles:
txt: '#FFFFFF'
nontxt: '#252525'
random_range: "[a-f]"
normal:
black: '#404040'
red: '#AB4642'
@ -104,6 +105,7 @@ profiles:
txt: '#303030'
nontxt: '#D0D0D0'
random_range: "[0-4]"
normal:
black: '#555555'
red: '#D54E53'

View File

@ -57,8 +57,15 @@ face global MenuInfo cyan
face global Information default,{{@@ bg_dark @@}}
face global Error default,red+g
face global StatusLine default,{{@@ bg_dark @@}}
face global StatusLineMode green
face global StatusLine %sh{
printf "rgb:"
head /dev/urandom |
base64 |
rg --text -o '{{@@ color.random_range @@}}' |
head -n 6 |
sd '\n' ''
}
face global StatusLineMode StatusLine
face global StatusLineInfo StatusLine
face global StatusLineValue StatusLine
face global StatusCursor {{@@ accent_fg @@}},{{@@ accent_color @@}}