forked from lenormf/kakoune-extra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpowerline.kak
47 lines (44 loc) · 1.73 KB
/
powerline.kak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
##
## powerline.kak by lenormf
## Highlight some modeline items to give them a powerline feel
##
decl str powerlinesep ""
%sh{
case "${kak_opt_colorscheme}" in
zenburn)
readonly StatusLineBackground='black'
printf %s\\n "
face PwrBrightR 'rgb:F0DFAF,${StatusLineBackground}+r'
face PwrBrightIn 'rgb:F0DFAF'
face PwrBrightOut '${StatusLineBackground},rgb:F0DFAF'
face PwrLightR 'rgb:808080,rgb:F8F8FF+r'
face PwrLightIn 'rgb:808080'
face PwrLightOut '${StatusLineBackground},rgb:808080'
face PwrDarkR 'rgb:313131,rgb:CCCCCC+r'
face PwrDarkIn 'rgb:313131'
face PwrDarkOut '${StatusLineBackground},rgb:313131'
"
;;
gruvbox)
readonly StatusLineBackground='black'
printf %s\\n "
face PwrBrightR 'rgb:D6CFAB,${StatusLineBackground}+r'
face PwrBrightIn 'rgb:D6CFAB'
face PwrBrightOut '${StatusLineBackground},rgb:D6CFAB'
face PwrLightR 'rgb:808080,rgb:F8F8FF+r'
face PwrLightIn 'rgb:808080'
face PwrLightOut '${StatusLineBackground},rgb:808080'
face PwrDarkR 'rgb:313131,rgb:CCCCCC+r'
face PwrDarkIn 'rgb:313131'
face PwrDarkOut '${StatusLineBackground},rgb:313131'
"
;;
*) exit 1;;
esac
for i in Bright Light Dark; do
printf %s\\n "
decl str Pwr${i}SepIn '{Pwr${i}In}${kak_opt_powerlinesep}{Pwr${i}R}'
decl str Pwr${i}SepOut '{Pwr${i}Out}${kak_opt_powerlinesep}{StatusLine}'
"
done
}