Difference between revisions of "Color schemes"

From Vifm Wiki
Jump to navigation Jump to search
(Outlining information to include about color scheming)
 
(added one example Color scheme)
Line 2: Line 2:
 
==Color scheme Files==
 
==Color scheme Files==
 
===Location===
 
===Location===
 +
$HOME/.vifm/colors/
 +
 
===Command syntax===
 
===Command syntax===
 
===Hierarchy===
 
===Hierarchy===
Line 14: Line 16:
  
 
===Terminal Specific Tips===
 
===Terminal Specific Tips===
 
 
====xterm====
 
====xterm====
  
==Permanently Setting a Color scheme==  
+
==Permanently Apply a Color scheme==  
 
colorscheme Default
 
colorscheme Default
  
 
Per-directory schemes.
 
Per-directory schemes.
 +
 
===User Color schemes===
 
===User Color schemes===
 
====Tips for Customizing====
 
====Tips for Customizing====
====Info to Include in your Color scheme File====
+
====Add Your Custom Colors schemes Here====
Example Custom colorscheme:
+
Include:
* Terminal settings
+
* Terminal Specifications/Pallet
* Terminal Pallet
+
* vifm Color scheme commands
* Color scheme
+
Example Color scheme:
 +
<nowiki> " vim: fileENGINE=vifm :
 +
 +
" colorscheme: solarized-dark
 +
" Author: Stéphane (a.k.a. istib)
 +
" Edited by: y2kbugger 18JUL2014
 +
" Now with all 16 colors in solarized pallet
 +
"  and more strictly following the designers
 +
"  recommended use.
 +
 +
" Terminal: xterm
 +
" $HOME/.Xresources:
 +
"    ! Common
 +
"    #define S_yellow #b58900
 +
"    #define S_orange #cb4b16
 +
"    #define S_red #dc322f
 +
"    #define S_magenta #d33682
 +
"    #define S_violet #6c71c4
 +
"    #define S_blue #268bd2
 +
"    #define S_cyan #2aa198
 +
"    #define S_green #859900
 +
"   
 +
"    ! Dark
 +
"    #define S_base03 #002b36
 +
"    #define S_base02 #073642
 +
"    #define S_base01 #586e75
 +
"    #define S_base00 #657b83
 +
"    #define S_base0 #839496
 +
"    #define S_base1 #93a1a1
 +
"    #define S_base2 #eee8d5
 +
"    #define S_base3 #fdf6e3
 +
"
 +
"    xterm*termName: xterm-16color
 +
"
 +
"    *background: S_base03
 +
"    *foreground: S_base0
 +
"    *fading: 40
 +
"    *fadeColor: S_base03
 +
"    *cursorColor: S_base1
 +
"    *pointerColorBackground: S_base01
 +
"    *pointerColorForeground: S_base1
 +
"   
 +
"    *color0: S_base02
 +
"    *color1: S_red
 +
"    *color2: S_green
 +
"    *color3: S_yellow
 +
"    *color4: S_blue
 +
"    *color5: S_magenta
 +
"    *color6: S_cyan
 +
"    *color7: S_base2
 +
"    *color9: S_orange
 +
"    *color8: S_base03
 +
"    *color10: S_base01
 +
"    *color11: S_base00
 +
"    *color12: S_base0
 +
"    *color13: S_violet
 +
"    *color14: S_base1
 +
"    *color15: S_base3
 +
 
 +
 +
" map colors from solarized scheme to ncurses:
 +
" ------------------------------------------
 +
              ncurses/            CIELAB
 +
" solarized  terminal      ##  lightness 
 +
" ------------------------------------------
 +
" NA          default/none  -1    NA
 +
                                 
 +
" base03      lightblack    08    15   
 +
" base02      black          00    20   
 +
" base01      lightgreen    10    45   
 +
" base00      lightyellow    11    50   
 +
" base0      lightblue      12    60   
 +
" base1      lightcyan      14    65   
 +
" base2      white          07    92   
 +
" base3      lightwhite    15    97   
 +
                                 
 +
" yellow      yellow        03    60   
 +
" orange      lightred      09    50   
 +
" red        red            01    50   
 +
" magenta    magenta        05    50   
 +
" violet      lightmagenta  13    50   
 +
" blue        blue          04    55   
 +
" cyan        cyan          06    60   
 +
" green      green          02    60   
 +
 +
"Actual vifm Color scheme:
 +
highlight Win          ctermfg=12 ctermbg=08 cterm=none
 +
 +
highlight TopLine      ctermfg=04 ctermbg=08 cterm=none
 +
highlight TopLineSel    ctermfg=04 ctermbg=00 cterm=none
 +
highlight StatusLine    ctermfg=04 ctermbg=00 cterm=none
 +
highlight Border        ctermfg=04 ctermbg=00 cterm=none
 +
 +
highlight Selected      ctermfg=-1 ctermbg=00 cterm=none
 +
highlight CurrLine      ctermfg=-1 ctermbg=-1 cterm=standout
 +
 +
highlight WildMenu      ctermfg=07 ctermbg=-1 cterm=underline
 +
highlight CmdLine      ctermfg=14 ctermbg=-1 cterm=none
 +
highlight ErrorMsg      ctermfg=01 ctermbg=00 cterm=none
 +
 +
highlight Directory    ctermfg=12 ctermbg=-1 cterm=bold
 +
highlight Link          ctermfg=03 ctermbg=-1 cterm=none
 +
highlight BrokenLink    ctermfg=01 ctermbg=-1 cterm=none
 +
highlight Socket        ctermfg=05 ctermbg=-1 cterm=none
 +
highlight Device        ctermfg=01 ctermbg=-1 cterm=none
 +
highlight Fifo          ctermfg=06 ctermbg=-1 cterm=none
 +
highlight Executable    ctermfg=02 ctermbg=-1 cterm=none
 +
</nowiki>

Revision as of 19:23, 23 July 2014

Color scheme Files

Location

$HOME/.vifm/colors/

Command syntax

Hierarchy

Color definitions

Preparing your terminal

There are a variety of possibilities for how you terminal deals with color. Your terminal emulator will be capable of up a certain number of colors. Some possibilities are: 8, 8+8(bold as light colors), 16, and 256 colors. Your Terminal communicates which colors it can handle by setting the $TERM variable. This should not be set manually in .bashrc, but in your terminal's configuration. For xterm and some xterm compatible

  • light vs bold

Terminal Specific Tips

xterm

Permanently Apply a Color scheme

colorscheme Default

Per-directory schemes.

User Color schemes

Tips for Customizing

Add Your Custom Colors schemes Here

Include:

  • Terminal Specifications/Pallet
  • vifm Color scheme commands

Example Color scheme:

 " vim: fileENGINE=vifm :
 
 " colorscheme: solarized-dark
 " Author: Stéphane (a.k.a. istib)
 " Edited by: y2kbugger 18JUL2014
 " Now with all 16 colors in solarized pallet
 "  and more strictly following the designers
 "  recommended use.
 
 " Terminal: xterm
 " $HOME/.Xresources:
 "     ! Common
 "     #define S_yellow #b58900
 "     #define S_orange #cb4b16
 "     #define S_red #dc322f
 "     #define S_magenta #d33682
 "     #define S_violet #6c71c4
 "     #define S_blue #268bd2
 "     #define S_cyan #2aa198
 "     #define S_green #859900
 "     
 "     ! Dark
 "     #define S_base03 #002b36
 "     #define S_base02 #073642
 "     #define S_base01 #586e75
 "     #define S_base00 #657b83
 "     #define S_base0 #839496
 "     #define S_base1 #93a1a1
 "     #define S_base2 #eee8d5
 "     #define S_base3 #fdf6e3
 "
 "     xterm*termName: xterm-16color
 "
 "     *background: S_base03
 "     *foreground: S_base0
 "     *fading: 40
 "     *fadeColor: S_base03
 "     *cursorColor: S_base1
 "     *pointerColorBackground: S_base01
 "     *pointerColorForeground: S_base1
 "     
 "     *color0: S_base02
 "     *color1: S_red
 "     *color2: S_green
 "     *color3: S_yellow
 "     *color4: S_blue
 "     *color5: S_magenta
 "     *color6: S_cyan
 "     *color7: S_base2
 "     *color9: S_orange
 "     *color8: S_base03
 "     *color10: S_base01
 "     *color11: S_base00
 "     *color12: S_base0
 "     *color13: S_violet
 "     *color14: S_base1
 "     *color15: S_base3
  
 
 " map colors from solarized scheme to ncurses:
 " ------------------------------------------
               ncurses/            CIELAB
 " solarized   terminal       ##   lightness   
 " ------------------------------------------
 " NA          default/none   -1    NA
                                   
 " base03      lightblack     08    15     
 " base02      black          00    20     
 " base01      lightgreen     10    45     
 " base00      lightyellow    11    50     
 " base0       lightblue      12    60     
 " base1       lightcyan      14    65     
 " base2       white          07    92     
 " base3       lightwhite     15    97     
                                   
 " yellow      yellow         03    60     
 " orange      lightred       09    50     
 " red         red            01    50     
 " magenta     magenta        05    50     
 " violet      lightmagenta   13    50     
 " blue        blue           04    55     
 " cyan        cyan           06    60     
 " green       green          02    60     
 
 "Actual vifm Color scheme:
 highlight Win           ctermfg=12 ctermbg=08 cterm=none
 
 highlight TopLine       ctermfg=04 ctermbg=08 cterm=none
 highlight TopLineSel    ctermfg=04 ctermbg=00 cterm=none
 highlight StatusLine    ctermfg=04 ctermbg=00 cterm=none
 highlight Border        ctermfg=04 ctermbg=00 cterm=none
 
 highlight Selected      ctermfg=-1 ctermbg=00 cterm=none
 highlight CurrLine      ctermfg=-1 ctermbg=-1 cterm=standout
 
 highlight WildMenu      ctermfg=07 ctermbg=-1 cterm=underline
 highlight CmdLine       ctermfg=14 ctermbg=-1 cterm=none
 highlight ErrorMsg      ctermfg=01 ctermbg=00 cterm=none
 
 highlight Directory     ctermfg=12 ctermbg=-1 cterm=bold
 highlight Link          ctermfg=03 ctermbg=-1 cterm=none
 highlight BrokenLink    ctermfg=01 ctermbg=-1 cterm=none
 highlight Socket        ctermfg=05 ctermbg=-1 cterm=none
 highlight Device        ctermfg=01 ctermbg=-1 cterm=none
 highlight Fifo          ctermfg=06 ctermbg=-1 cterm=none
 highlight Executable    ctermfg=02 ctermbg=-1 cterm=none