Skip to content

Configuration examples

Huipeng edited this page Jul 15, 2022 · 20 revisions

alacritty

Example configuration:

alacritty:
  enabled: true
  files:
    default:
      path: ~/.config/alacritty/alacritty.yml
      mode: replace
      start_marker: "# <<<<<<<<<<"
      end_marker: "# >>>>>>>>>>"

Replace the theme definition in the Alacritty config file by:

# <<<<<<<<<<
# >>>>>>>>>>

amfora

Example configuration:

//TODO

binary-ninja

Example configuration:

//TODO

blink

Example configuration:

//TODO

c_header

Example configuration:

//TODO

concfg

Example configuration:

//TODO

conemu

Example configuration:

//TODO

console2

Example configuration:

//TODO

consolez

Example configuration:

//TODO

crosh

Example configuration:

//TODO

dunst

Example configuration:

dunst:
  enabled: true
  files:
    default:
      path: ~/.config/dunst/dunstrc
      mode: replace
      start_marker: "# <<<<<<<<<<"
      end_marker: "# >>>>>>>>>>"

dwm

Example configuration:

//TODO

emacs

Example configuration:

//TODO

everything

Example configuration:

//TODO

frescobaldi

Example configuration:

//TODO

foot

Example configuration:

foot:
  enabled: true
  files:
    default-256:
      path: ~/.config/foot/foot.ini
      mode: replace
      start_marker: "# <<<<<<<<<<"
      end_marker: "# >>>>>>>>>>"

fzf

Example configuration:

fzf:
  enabled: true
  files:
    default:
      path: ~/.fzf-base16.sh
      mode: rewrite

Then add the line source $HOME/.fzf-base16.sh to your bash, zsh, etc.

gnome-terminal

Example configuration:

//TODO

godot

Example configuration:

//TODO

gtk-flatcolor

Example configuration:

//TODO

gtk2

Example configuration:

//TODO

hexchat

Example configuration:

//TODO

highlight

Example configuration:

//TODO

highlightjs

Example configuration:

//TODO

html-preview

Example configuration:

//TODO

hugo

Example configuration:

//TODO

i3

Example configuration:

i3:
  enabled: true
  hook: i3-msg 'restart'
  files:
    default:
      path: ~/.config/i3/config
      mode: replace
      start_marker: "# <<<<<<<<<<"
      end_marker: "# >>>>>>>>>>"

i3 cannot include files, the colors have to be set in the main configuration file.

i3status

Example configuration:

//TODO

i3status-rust

Example configuration:

//TODO

iterm2

Example configuration:

//TODO

jetbrains

Example configuration:

//TODO

joe

Example configuration:

//TODO

kakoune

Example configuration:

//TODO

kitty

Example configuration:

kitty:
  enabled: true
  files:
    default:
      path: ~/.config/kitty/kitty.conf
      mode: replace
      start_marker: "# <<<<<<<<<<"
      end_marker: "# >>>>>>>>>>"

Replace the theme defition in the Kitty config file with:

# <<<<<<<<<<
# >>>>>>>>>>

konsole

Example configuration:

konsole:
  enabled: true
  files:
    default:
      path: ~/.local/share/konsole/base16.colorscheme
      mode: rewrite

Then select the theme under appearance in profile settings.

luakit

Example configuration:

//TODO

mako

Example configuration:

mako:
  enabled: true
  hook: makoctl reload
  files:
    default:
      path: ~/.config/mako/config
      mode: replace
      start_marker: "# <<<<<<<<<<"
      end_marker: "# >>>>>>>>>>"

mintty

Example configuration:

//TODO

monodevelop

Example configuration:

//TODO

nvim

Example configuration:

nvim:
  enabled: true
  files:
    default:
      path: ~/.config/nvim/colors/base16.lua
      mode: replace
      start_marker: '-- <<<<<<<<<<'
      end_marker: '-- >>>>>>>>>>'

Then:

  • Add colorscheme base16 to your nvim config. Also add let base16colorspace=256 before calling the colorscheme command if you have a 256 colorspace.
  • Create a ~/.config/nvim/colors/base16.lua file with the base16-universal-manager markers and the following command at the end of the file: vim.g.colors_name = "base16".

polybar

Example configuration:

//TODO

prism

Example configuration:

//TODO

prompt-toolkit

Example configuration:

//TODO

putty

Example configuration:

//TODO

pygments

Example configuration:

//TODO

pywal

Example configuration:

//TODO

qownnotes

Example configuration:

//TODO

qtcreator

Example configuration:

//TODO

qutebrowser

Example configuration:

qutebrowser:
  enabled: true
  files:
    default:
    path: ~/.config/qutebrowser/theme.py
    mode: rewrite

Example qutebrowser configuration:

config.source('theme.py')

radare2

  • Repo: TODO

Example configuration:

//TODO

rofi

Example configuration:

rofi:
  enabled: true
  files:
    default:
      path: ~/.config/rofi/base16-theme.rasi
      mode: rewrite

In the ~/.config/rofi/config.rasi file, add:

configuration {
  theme: "~/.config/rofi/base16-theme.rasi";
}

shell

Example configuration:

shell:
  enabled: true
  files:
    default:
      path: ~/.base16_theme
      mode: rewrite

For bash: in ~/.bashrc, add:

[ -f ~/.base16_theme ] && . ~/.base16_theme

If you use the fish shell: in ~/.config/fish/config.fish, add:

if status --is-interactive; and status --is-login
    [ -f ~/.base16_theme ] && eval sh '"'(realpath ~/.base16_theme)'"'
end

scide

Example configuration:

//TODO

st

Example configuration:

//TODO

stumpwm

Example configuration:

//TODO

styles

Example configuration:

//TODO

sway

Example configuration:

sway:
  enabled: true
  hook: swaymsg reload
  files:
    colors:
      path: ~/.config/sway/theme.conf
      mode: rewrite

Add into sway config:

include theme.conf

# Basic color configuration using the Base16 variables for windows and borders.
# Property Name         Border  BG      Text    Indicator Child Border
client.focused          $base05 $base0D $base00 $base0D $base0D
client.focused_inactive $base01 $base01 $base05 $base03 $base01
client.unfocused        $base01 $base00 $base05 $base01 $base01
client.urgent           $base08 $base08 $base00 $base08 $base08
client.placeholder      $base00 $base00 $base05 $base00 $base00
client.background       $base07

If you use statusbar, add the following into the bar section:

colors {
    background $base00
    separator  $base01
    statusline $base04

    # State             Border  BG      Text
    focused_workspace   $base05 $base0D $base00
    active_workspace    $base05 $base03 $base00
    inactive_workspace  $base03 $base01 $base05
    urgent_workspace    $base08 $base08 $base00
    binding_mode        $base00 $base0A $base00
}

terminator

Example configuration:

//TODO

telegram-desktop

  • Repo: TODO

Example configuration:

//TODO

termite

Example configuration:

termite:
  enabled: true
  hook: killall -USR1 termite
  files:
    default:
      path: ~/.config/termite/config
      mode: replace
      start_marker: "# <<<<<<<<<<"
      end_marker: "# >>>>>>>>>>"

termux

Example configuration:

//TODO

textadept

Example configuration:

//TODO

textmate

Example configuration:

//TODO

tilix

Example configuration:

//TODO

tmux

Example configuration:

//TODO

vim

Example configuration:

vim:
  enabled: true
  files:
    default:
      path: ~/.vim/colors/base16.vim
      mode: replace
      start_marker: '" <<<<<<<<<<'
      end_marker: '" >>>>>>>>>>'

Then:

  • Add colorscheme base16 to your vim config. Also add let base16colorspace=256 before calling the colorscheme command if you have a 256 colorspace.
  • Create a ~/.vim/colors/base16.vim file with the base16-universal-manager markers and the following command at the end of the file: let g:colors_name="base16".

vim-airline-themes

Example configuration:

//TODO

vimiv

Example configuration:

//TODO

vis

Example configuration:

//TODO

vscode

Example configuration:

//TODO

waybar

Example configuration:

//TODO

windows-command-prompt

Example configuration:

//TODO

windows-terminal

Example configuration:

//TODO

wmaker

Example configuration:

//TODO

wofi

Example configuration:

//TODO

xcode

Example configuration:

//TODO

xfce4-terminal

Example configuration:

//TODO

xresources

Example configuration:

xresources:
  enabled: true
  # Replace <username> with your username. '~/' doesn't work here
  hook: xrdb -load /home/<username>/.Xresources
  files:
    default:
      path: ~/.Xresources.d/colors
      mode: rewrite

xshell

Example configuration:

//TODO

zathura

Example configuration:

zathura:
  enabled: true
  files:
    default:
      path: ~/.config/zathura/zathurarc
      mode: replace
      start_marker: "# <<<<<<<<<<"
      end_marker: "# >>>>>>>>>>"

Add these lines to your zathurarc file:

# <<<<<<<<<<
# >>>>>>>>>>

If you want to use the recolor options then you will have to replace default with recolor in the config.