dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit 4bf002444e6db7c699ffdcfe1d233ca32d3e6a5e
parent 15c1012d286f51a5e87fe2415f66613d4cabfbe0
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Thu, 25 Jan 2018 06:07:29 -0500

Abandon 24-bit colors in terminal

Diffstat:
M.irssi/apprentice.theme | 156++++++++++++++++++++++++++++++++++++++++----------------------------------------
M.tmux.conf | 1-
M.vim/vimrc | 7-------
3 files changed, 78 insertions(+), 86 deletions(-)

diff --git a/.irssi/apprentice.theme b/.irssi/apprentice.theme @@ -23,9 +23,9 @@ # can have more parameters of course). Templates can have subtemplates. # Here's a small example: # /FORMAT format hello {colorify {underline world}} -# abstracts = { colorify = "%Z87af87$0-%Zbcbcbc"; underline = "%U$0-%U"; } +# abstracts = { colorify = "%X3B$0-%X7S"; underline = "%U$0-%U"; } # When irssi expands the templates in "format", the final string would be: -# hello %Z87af87%Uworld%U%Zbcbcbc +# hello %X3B%Uworld%U%X7S # ie. underlined bright green "world" text. # and why "$0-", why not "$0"? $0 would only mean the first parameter, # $0- means all the parameters. With {underline hello world} you'd really @@ -36,18 +36,18 @@ # You can find definitions for the color format codes in docs/formats.txt. -# There's one difference here though. %Zbcbcbc format. Normally it means the +# There's one difference here though. %X7S format. Normally it means the # default color of the terminal (white mostly), but here it means the # "reset color back to the one it was in higher template". For example -# if there was /FORMAT test %Z87af87{foo}bar, and foo = "%Y$0%Zbcbcbc", irssi would +# if there was /FORMAT test %X3B{foo}bar, and foo = "%Y$0%X7S", irssi would # print yellow "foo" (as set with %Y) but "bar" would be green, which was -# set at the beginning before the {foo} template. If there wasn't the %Z87af87 -# at start, the normal behaviour of %Zbcbcbc would occur. If you _really_ want -# to use the terminal's default color, use %Zbcbcbc. +# set at the beginning before the {foo} template. If there wasn't the %X3B +# at start, the normal behaviour of %X7S would occur. If you _really_ want +# to use the terminal's default color, use %X7S. ############################################################################# -# default foreground color (%Zbcbcbc) - -1 is the "default terminal color" +# default foreground color (%X7S) - -1 is the "default terminal color" default_color = "-1"; # print timestamp/servertag at the end of line, not at beginning @@ -55,7 +55,7 @@ info_eol = "false"; # these characters are automatically replaced with specified color # (dark grey by default) -replaces = { "[]=" = "%Z6c6c6c$*%Zbcbcbc"; }; +replaces = { "[]=" = "%X7K$*%X7S"; }; abstracts = { ## @@ -63,31 +63,31 @@ abstracts = { ## # text to insert at the beginning of each non-message line - line_start = "%Z5f87af-%Zbcbcbc!%Z5f87af-%Zbcbcbc "; + line_start = "%X2F-%X7S!%X2F-%X7S "; # timestamp styling, nothing by default - timestamp = "%Zbcbcbc$*"; + timestamp = "%X7S$*"; # any kind of text that needs hilighting, default is to bold - hilight = "%Zffffff$*%Zbcbcbc"; + hilight = "%X6Z$*%X7S"; # any kind of error message, default is bright red - error = "%Zff8700$*%Zbcbcbc"; + error = "%X6C$*%X7S"; # channel name is printed - channel = "%Zffffff$*%Zbcbcbc"; + channel = "%X6Z$*%X7S"; # nick is printed - nick = "%Zffffff$*%Zbcbcbc"; + nick = "%X6Z$*%X7S"; # nick host is printed - nickhost = "%Zbcbcbc[$*]"; + nickhost = "%X7S[$*]"; # server name is printed - server = "%Zffffff$*%Zbcbcbc"; + server = "%X6Z$*%X7S"; # some kind of comment is printed - comment = "%Zbcbcbc[$*]"; + comment = "%X7S[$*]"; # reason for something is printed (part, quit, kick, ..) reason = "{comment $*}"; @@ -100,80 +100,80 @@ abstracts = { ## # highlighted nick/host is printed (joins) - channick_hilight = "%Z87af87$*%Zbcbcbc"; - chanhost_hilight = "{nickhost %Z87af87$*%Zbcbcbc}"; + channick_hilight = "%X3B$*%X7S"; + chanhost_hilight = "{nickhost %X3B$*%X7S}"; # nick/host is printed (parts, quits, etc.) - channick = "%Z8787af$*%Zbcbcbc"; - chanhost = "{nickhost %Z8787af$*}"; + channick = "%X3F$*%X7S"; + chanhost = "{nickhost %X3F$*}"; # highlighted channel name is printed - channelhilight = "%Z8787af$*%Zbcbcbc"; + channelhilight = "%X3F$*%X7S"; # ban/ban exception/invite list mask is printed - ban = "%Z87af87$*%Zbcbcbc"; + ban = "%X3B$*%X7S"; ## ## messages ## # the basic styling of how to print message, $0 = nick mode, $1 = nick - msgnick = "%Z87af87<%Zbcbcbc$0$1-%Z87af87>%Zbcbcbc %|"; + msgnick = "%X3B<%X7S$0$1-%X3B>%X7S %|"; # message from you is printed. "ownnick" specifies the styling of the # nick ($0 part in msgnick) and "ownmsgnick" specifies the styling of the # whole line. # Example1: You want the message text to be green: - # ownmsgnick = "{msgnick $0 $1-}%Z87af87"; + # ownmsgnick = "{msgnick $0 $1-}%X3B"; # Example2.1: You want < and > chars to be yellow: - # ownmsgnick = "%Y{msgnick $0 $1-%Y}%Zbcbcbc"; + # ownmsgnick = "%Y{msgnick $0 $1-%Y}%X7S"; # (you'll also have to remove <> from replaces list above) # Example2.2: But you still want to keep <> grey for other messages: - # pubmsgnick = "%Z87af87{msgnick $0 $1-%Z87af87}%Zbcbcbc"; - # pubmsgmenick = "%Z87af87{msgnick $0 $1-%Z87af87}%Zbcbcbc"; - # pubmsghinick = "%Z87af87{msgnick $1 $0$2-%Zbcbcbc%Z87af87}%Zbcbcbc"; - # ownprivmsgnick = "%Z87af87{msgnick $*%Z87af87}%Zbcbcbc"; - # privmsgnick = "%Z87af87{msgnick %Zff8700$*%Z87af87}%Zbcbcbc"; + # pubmsgnick = "%X3B{msgnick $0 $1-%X3B}%X7S"; + # pubmsgmenick = "%X3B{msgnick $0 $1-%X3B}%X7S"; + # pubmsghinick = "%X3B{msgnick $1 $0$2-%X7S%X3B}%X7S"; + # ownprivmsgnick = "%X3B{msgnick $*%X3B}%X7S"; + # privmsgnick = "%X3B{msgnick %X6C$*%X3B}%X7S"; # $0 = nick mode, $1 = nick ownmsgnick = "{msgnick $0 $1-}"; - ownnick = "%Zffffff$*%Zbcbcbc"; + ownnick = "%X6Z$*%X7S"; # public message in channel, $0 = nick mode, $1 = nick pubmsgnick = "{msgnick $0 $1-}"; - pubnick = "%Zbcbcbc$*%Zbcbcbc"; + pubnick = "%X7S$*%X7S"; # public message in channel meant for me, $0 = nick mode, $1 = nick pubmsgmenick = "{msgnick $0 $1-}"; - menick = "%Zffffaf$*%Zbcbcbc"; + menick = "%X6X$*%X7S"; # public highlighted message in channel # $0 = highlight color, $1 = nick mode, $2 = nick - pubmsghinick = "{msgnick $1 $0$2-%Zbcbcbc}"; + pubmsghinick = "{msgnick $1 $0$2-%X7S}"; # channel name is printed with message - msgchannel = "%Z87af87:%Z5f5f87$*%Zbcbcbc"; + msgchannel = "%X3B:%X28$*%X7S"; # private message, $0 = nick, $1 = host - privmsg = "[%Zff8700$0%Z87af87(%Zaf5f5f$1-%Z87af87)%Zbcbcbc] "; + privmsg = "[%X6C$0%X3B(%X47$1-%X3B)%X7S] "; # private message from you, $0 = "msg", $1 = target nick - ownprivmsg = "[%Zaf5f5f$0%Z87af87(%Zff8700$1-%Z87af87)%Zbcbcbc] "; + ownprivmsg = "[%X47$0%X3B(%X6C$1-%X3B)%X7S] "; # own private message in query ownprivmsgnick = "{msgnick $*}"; - ownprivnick = "%Zffffff$*%Zbcbcbc"; + ownprivnick = "%X6Z$*%X7S"; # private message in query - privmsgnick = "{msgnick %Zff8700$*%Zbcbcbc}"; + privmsgnick = "{msgnick %X6C$*%X7S}"; ## ## Actions (/ME stuff) ## # used internally by this theme - action_core = "%Zffffff * $*%Zbcbcbc"; + action_core = "%X6Z * $*%X7S"; # generic one that's used by most actions action = "{action_core $*} "; @@ -182,10 +182,10 @@ abstracts = { ownaction = "{action $*}"; # own action with target, both private/public - ownaction_target = "{action_core $0}%Z87af87:%Z5f5f87$1%Zbcbcbc "; + ownaction_target = "{action_core $0}%X3B:%X28$1%X7S "; # private action sent by others - pvtaction = "%Zffffff (*) $*%Zbcbcbc "; + pvtaction = "%X6Z (*) $*%X7S "; pvtaction_query = "{action $*}"; # public action sent by others @@ -200,24 +200,24 @@ abstracts = { whois = "%# $[8]0 : $1-"; # notices - ownnotice = "[%Zaf5f5f$0%Z87af87(%Zff8700$1-%Z87af87)]%Zbcbcbc "; - notice = "%Z87af87-%Z5fafaf$*%Z87af87-%Zbcbcbc "; - pubnotice_channel = "%Z87af87:%Z5fafaf$*"; - pvtnotice_host = "%Z87af87(%Z5fafaf$*%Z87af87)"; - servernotice = "%Z87af87!$*%Zbcbcbc "; + ownnotice = "[%X47$0%X3B(%X6C$1-%X3B)]%X7S "; + notice = "%X3B-%X2L$*%X3B-%X7S "; + pubnotice_channel = "%X3B:%X2L$*"; + pvtnotice_host = "%X3B(%X2L$*%X3B)"; + servernotice = "%X3B!$*%X7S "; # CTCPs - ownctcp = "[%Zaf5f5f$0%Z87af87(%Zff8700$1-%Z87af87)] "; - ctcp = "%Z87af87$*%Zbcbcbc"; + ownctcp = "[%X47$0%X3B(%X6C$1-%X3B)] "; + ctcp = "%X3B$*%X7S"; # wallops - wallop = "%Zffffff$*%Zbcbcbc: "; - wallop_nick = "%Zbcbcbc$*"; - wallop_action = "%Zffffff * $*%Zbcbcbc "; + wallop = "%X6Z$*%X7S: "; + wallop_nick = "%X7S$*"; + wallop_action = "%X6Z * $*%X7S "; # netsplits - netsplit = "%Zff8700$*%Zbcbcbc"; - netjoin = "%Z8787af$*%Zbcbcbc"; + netsplit = "%X6C$*%X7S"; + netjoin = "%X3F$*%X7S"; # /names list names_prefix = ""; @@ -225,24 +225,24 @@ abstracts = { names_nick_op = "{names_nick $*}"; names_nick_halfop = "{names_nick $*}"; names_nick_voice = "{names_nick $*}"; - names_users = "[%Z87af87$*%Zbcbcbc]"; - names_channel = "%Z87af87$*%Zbcbcbc"; + names_users = "[%X3B$*%X7S]"; + names_channel = "%X3B$*%X7S"; # DCC - dcc = "%$*%Zbcbcbc"; - dccfile = "%Zffffff$*%Zbcbcbc"; + dcc = "%$*%X7S"; + dccfile = "%X6Z$*%X7S"; # DCC chat, own msg/action - dccownmsg = "[%Zaf5f5f$0%Z87af87($1-%Z87af87)%Zbcbcbc] "; - dccownnick = "%Zff8700$*%Zbcbcbc"; - dccownquerynick = "%Zffffff$*%Zbcbcbc"; + dccownmsg = "[%X47$0%X3B($1-%X3B)%X7S] "; + dccownnick = "%X6C$*%X7S"; + dccownquerynick = "%X6Z$*%X7S"; dccownaction = "{action $*}"; - dccownaction_target = "{action_core $0}%Z87af87:%Z5f5f87$1%Zbcbcbc "; + dccownaction_target = "{action_core $0}%X3B:%X28$1%X7S "; # DCC chat, others - dccmsg = "[%Z87af87$1-%Z87af87(%Z87af87$0%Z87af87)%Zbcbcbc] "; - dccquerynick = "%Z87af87$*%Zbcbcbc"; - dccaction = "%Zffffff (*dcc*) $*%Zbcbcbc %|"; + dccmsg = "[%X3B$1-%X3B(%X3B$0%X3B)%X7S] "; + dccquerynick = "%X3B$*%X7S"; + dccaction = "%X6Z (*dcc*) $*%X7S %|"; ## ## statusbar @@ -250,14 +250,14 @@ abstracts = { # default background for all statusbars. You can also give # the default foreground color for statusbar items. - sb_background = "%z87875f%Z262626"; + sb_background = "%x3D%X7D"; # default backround for "default" statusbar group #sb_default_bg = "%4"; # background for prompt / input line - sb_prompt_bg = "%Zbcbcbc"; + sb_prompt_bg = "%X7S"; # background for info statusbar - sb_info_bg = "%Z585858"; + sb_info_bg = "%X7I"; # background for topicbar (same default) #sb_topic_bg = "%4"; @@ -273,22 +273,22 @@ abstracts = { prompt = "[$*] "; - sb = " %Z262626[$*]"; - sbmode = "%Z262626(+$*)"; - sbaway = " %Z262626(zZzZ)"; + sb = " %X7D[$*]"; + sbmode = "%X7D(+$*)"; + sbaway = " %X7D(zZzZ)"; sbservertag = ":$0 (change with ^X)"; sbnickmode = "$0"; # activity in statusbar # ',' separator - sb_act_sep = "%Z262626$*"; + sb_act_sep = "%X7D$*"; # normal text - sb_act_text = "%Z262626$*"; + sb_act_text = "%X7D$*"; # public message - sb_act_msg = "%Zbcbcbc$*"; + sb_act_msg = "%X7S$*"; # hilight - sb_act_hilight = "%Zff8700$*"; + sb_act_hilight = "%X6C$*"; # hilight with specified color, $0 = color, $1 = text - sb_act_hilight_color = "$0$1-%Z262626"; + sb_act_hilight_color = "$0$1-%X7D"; }; diff --git a/.tmux.conf b/.tmux.conf @@ -42,7 +42,6 @@ set-option -g set-titles-string "#T - #W" # Set truecolor mode set-option -g default-terminal "tmux-256color" -set-option -ga terminal-overrides ",xterm-256color:Tc" # set-window-option -g automatic-rename on diff --git a/.vim/vimrc b/.vim/vimrc @@ -353,13 +353,6 @@ set statusline+=%{MyFileEncoding()}%y%{OptStatus('ObsessionStatus')} set statusline+=[%p%%][Ln:%l/%L,Col:%v] colorscheme apprentice set ttyfast -if $TERM_PROGRAM=="iTerm.app" || $PATH =~ 'cygdrive' || $COLORTERM =="truecolor" - set termguicolors - if $TERM=='tmux-256color' - set t_8f=[38;2;%lu;%lu;%lum - set t_8b=[48;2;%lu;%lu;%lum - endif -endif set nowrap set noshowmode set showcmd