dotfiles

My dotfiles
git clone git://src.gearsix.net/dotfiles
Log | Files | Refs | Atom

commit 0ff2f5347656658081dc981cbbc5c98893bfce90
parent 0fd419e63ad248a8b78f131af74c4dbd90f5ea55
Author: gearsix <gearsix@tuta.io>
Date:   Wed,  4 Jan 2023 21:52:04 +0000

merged acme-colors repository

Diffstat:
Aacme-colors/README | 20++++++++++++++++++++
Aacme-colors/acme.Xresources | 2++
Aacme-colors/acme.alacritty | 4++++
Aacme-colors/acme.micro | 22++++++++++++++++++++++
Aacme-colors/acme.vim | 37+++++++++++++++++++++++++++++++++++++
Aacme-colors/install.sh | 17+++++++++++++++++
6 files changed, 102 insertions(+), 0 deletions(-)

diff --git a/acme-colors/README b/acme-colors/README @@ -0,0 +1,20 @@ + +# acme colors + +A repository with resource files to match the Sam/Acme colorscheme. + +Currently it just holds Sam/ACME colorscemes because I've become quite fond of +it and it's quite an obscure colorscheme, see: + + - https://en.wikipedia.org/wiki/Sam_(text_editor) + - https://en.wikipedia.org/wiki/Acme_(text_editor) + +*note:* There are minor variations in the yellow colors, different +because some applications render colors differently. + +## install + +Just run ./install FILE, where FILE matches the text editor resource file you'd +like to install. It'll be automatically moved to where it needs to be for the +corresponding text editor to locate it. + diff --git a/acme-colors/acme.Xresources b/acme-colors/acme.Xresources @@ -0,0 +1,2 @@ +*background: ivory +*foreground: black diff --git a/acme-colors/acme.alacritty b/acme-colors/acme.alacritty @@ -0,0 +1,4 @@ +colors: + primary: + background: '#ffffd8' + foreground: '#000000' diff --git a/acme-colors/acme.micro b/acme-colors/acme.micro @@ -0,0 +1,22 @@ +# ~/.config/micro/colorschemes/acme.micro +# 'black' gets overwritten by the terminal +# so #08080808 is used, which is close enough + +color-link default "#080808,#ffffea" + +color-link statement "italic #080808" +color-link constant "bold #080808" +color-link constant.string "italic #080808" +color-link identifier "bold #080808" +color-link special "bold #080808" +color-link type "bold #080808" +color-link preproc "bold #080808" +color-link underlined "bold #080808" +color-link symbol "bold #080808" + +color-link comment "italic red" +color-link todo "bold brightred" +color-link error "bold brightred" + +color-link statusline ",#aeeeee" +color-link line-number ",#aeeeee" diff --git a/acme-colors/acme.vim b/acme-colors/acme.vim @@ -0,0 +1,37 @@ +" ~/.config/nvim/colors/ +highlight clear + +" for cterm, 'black' might get overwritten by the terminal emulator, so we use +" 232 (#080808), which is close enough. + +highlight! Normal guibg=#ffffea guifg=#000000 ctermbg=230 ctermfg=232 +highlight! NonText guibg=bg guifg=#ffffea ctermbg=bg ctermfg=230 +highlight! StatusLine guibg=#aeeeee guifg=#000000 gui=NONE ctermbg=159 ctermfg=232 cterm=NONE +highlight! StatusLineNC guibg=#eaffff guifg=#000000 gui=NONE ctermbg=194 ctermfg=232 cterm=NONE +highlight! WildMenu guibg=#000000 guifg=#eaffff gui=NONE ctermbg=black ctermfg=159 cterm=NONE +highlight! VertSplit guibg=#ffffea guifg=#000000 gui=NONE ctermbg=159 ctermfg=232 cterm=NONE +highlight! Folded guibg=#cccc7c guifg=fg gui=italic ctermbg=187 ctermfg=fg cterm=italic +highlight! FoldColumn guibg=#fcfcce guifg=fg ctermbg=229 ctermfg=fg +highlight! Conceal guibg=bg guifg=fg gui=NONE ctermbg=bg ctermfg=fg cterm=NONE +highlight! LineNr guibg=bg guifg=#505050 gui=italic ctermbg=bg ctermfg=239 cterm=italic +highlight! Visual guibg=fg guifg=bg ctermbg=fg ctermfg=bg +highlight! CursorLine guibg=#ffffca guifg=fg ctermbg=230 ctermfg=fg + +highlight! Statement guibg=bg guifg=fg gui=italic ctermbg=bg ctermfg=fg cterm=italic +highlight! Identifier guibg=bg guifg=fg gui=bold ctermbg=bg ctermfg=fg cterm=bold +highlight! Type guibg=bg guifg=fg gui=bold ctermbg=bg ctermfg=fg cterm=bold +highlight! PreProc guibg=bg guifg=fg gui=bold ctermbg=bg ctermfg=fg cterm=bold +highlight! Constant guibg=bg guifg=#101010 gui=bold ctermbg=bg ctermfg=233 cterm=italic +"highlight! Comment guibg=bg guifg=#303030 gui=italic ctermbg=bg ctermfg=236 cterm=italic +highlight! Comment guibg=bg guifg=#ff0000 gui=italic ctermbg=bg ctermfg=236 cterm=italic +highlight! Special guibg=bg guifg=fg gui=bold ctermbg=bg ctermfg=fg cterm=bold +highlight! SpecialKey guibg=bg guifg=fg gui=bold ctermbg=bg ctermfg=fg cterm=bold +highlight! Directory guibg=bg guifg=fg gui=bold ctermbg=bg ctermfg=fg cterm=bold +highlight! link Title Directory +highlight! link MoreMsg Comment +highlight! link Question Comment + +" vim +hi link vimFunction Identifier + +let g:colors_name = "acme" diff --git a/acme-colors/install.sh b/acme-colors/install.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env sh + +for arg in $@; do + file=$arg + dir="" + + if [ "$file" = "acme.vim" ]; then dir=~/.config/nvim/colors/ + elif [ "$file" = "acme.micro" ]; then dir=~/.config/micro/colorschemes/ + elif [ "$file" = "acme.Xresources" ]; then dir=~/ + else echo "usage: ./install FILE"; fi + + if [ "$dir" = "" ]; then exit; fi + + mkdir -pv $dir + cp -vi $file $dir +done +