From 38307cb69deabe5c7dae0470b76b7f44337e9a78 Mon Sep 17 00:00:00 2001 From: Von Random Date: Tue, 30 Jun 2015 01:53:40 +0300 Subject: [PATCH] no longer need patched urxvt, turns out, it supports color escape sequences, only need to activate them at term launch --- shellrc | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++ termite_config | 32 ----------------------- xresources | 35 ------------------------- 3 files changed, 69 insertions(+), 67 deletions(-) diff --git a/shellrc b/shellrc index 318d8d0..d73d272 100644 --- a/shellrc +++ b/shellrc @@ -107,6 +107,72 @@ hide-info() { hide_info=true; } unhide-info() { unset hide_info; } +gruvbox-colors() { + printf "\033]4;24;rgb:07/66/78\033\\" + printf "\033]4;66;rgb:42/7b/58\033\\" + printf "\033]4;88;rgb:9d/00/06\033\\" + printf "\033]4;96;rgb:8f/3f/71\033\\" + printf "\033]4;100;rgb:79/74/0e\033\\" + printf "\033]4;108;rgb:8e/c0/7c\033\\" + printf "\033]4;109;rgb:83/a5/98\033\\" + printf "\033]4;130;rgb:af/3a/03\033\\" + printf "\033]4;136;rgb:b5/76/14\033\\" + printf "\033]4;142;rgb:b8/bb/26\033\\" + printf "\033]4;167;rgb:fb/49/34\033\\" + printf "\033]4;175;rgb:d3/86/9b\033\\" + printf "\033]4;208;rgb:fe/80/19\033\\" + printf "\033]4;214;rgb:fa/bd/2f\033\\" + printf "\033]4;223;rgb:eb/db/b2\033\\" + printf "\033]4;228;rgb:f4/e8/ba\033\\" + printf "\033]4;229;rgb:fd/f4/c1\033\\" + printf "\033]4;230;rgb:ff/ff/c8\033\\" + printf "\033]4;234;rgb:1d/20/21\033\\" + printf "\033]4;235;rgb:28/28/28\033\\" + printf "\033]4;236;rgb:32/30/2f\033\\" + printf "\033]4;237;rgb:3c/38/36\033\\" + printf "\033]4;239;rgb:50/49/45\033\\" + printf "\033]4;241;rgb:66/5c/54\033\\" + printf "\033]4;243;rgb:7c/6f/64\033\\" + printf "\033]4;244;rgb:92/83/74\033\\" + printf "\033]4;245;rgb:92/83/74\033\\" + printf "\033]4;246;rgb:a8/99/84\033\\" + printf "\033]4;248;rgb:bd/ae/93\033\\" + printf "\033]4;250;rgb:d5/c4/a1\033\\" +} + +default-colors() { + printf "\033]4;24;rgb:00/5f/87\033\\" + printf "\033]4;66;rgb:5f/87/87\033\\" + printf "\033]4;88;rgb:87/00/00\033\\" + printf "\033]4;96;rgb:87/5f/87\033\\" + printf "\033]4;100;rgb:87/87/00\033\\" + printf "\033]4;108;rgb:87/af/87\033\\" + printf "\033]4;109;rgb:87/af/af\033\\" + printf "\033]4;130;rgb:af/5f/00\033\\" + printf "\033]4;136;rgb:af/87/00\033\\" + printf "\033]4;142;rgb:af/af/00\033\\" + printf "\033]4;167;rgb:d7/5f/5f\033\\" + printf "\033]4;175;rgb:d7/87/af\033\\" + printf "\033]4;208;rgb:ff/87/00\033\\" + printf "\033]4;214;rgb:ff/af/00\033\\" + printf "\033]4;223;rgb:ff/d7/af\033\\" + printf "\033]4;228;rgb:ff/ff/87\033\\" + printf "\033]4;229;rgb:ff/ff/af\033\\" + printf "\033]4;230;rgb:ff/ff/d7\033\\" + printf "\033]4;234;rgb:1c/1c/1c\033\\" + printf "\033]4;235;rgb:26/26/26\033\\" + printf "\033]4;236;rgb:30/30/30\033\\" + printf "\033]4;237;rgb:3a/3a/3a\033\\" + printf "\033]4;239;rgb:4e/4e/4e\033\\" + printf "\033]4;241;rgb:60/60/60\033\\" + printf "\033]4;243;rgb:76/76/76\033\\" + printf "\033]4;244;rgb:80/80/80\033\\" + printf "\033]4;245;rgb:8a/8a/8a\033\\" + printf "\033]4;246;rgb:94/94/94\033\\" + printf "\033]4;248;rgb:a8/a8/a8\033\\" + printf "\033]4;250;rgb:bc/bc/bc\033\\" +} + seconds-to-hr() { local seconds d h m s seconds=$1 @@ -132,6 +198,9 @@ if is_zsh; then SAVEHIST=1000 HISTSIZE=1000 HISTFILE="${HOME}/.histfile" + if [[ -z ${TMUX} && -z ${SSH_CLIENT} && ${TERM} =~ '^(rxvt-unicode|xterm)' ]]; then + gruvbox-colors + fi extras=( "${HOME}/.zshrc.extras" ) diff --git a/termite_config b/termite_config index 7a61356..5c62382 100644 --- a/termite_config +++ b/termite_config @@ -42,38 +42,6 @@ color13 = #6c71c4 color14 = #93a1a1 color15 = #fdf6e3 -# gruvbox colors for vim -color24 = #076678 -color66 = #427b58 -color88 = #9d0006 -color96 = #8f3f71 -color100 = #79740e -color108 = #8ec07c -color109 = #83a598 -color130 = #af3a03 -color136 = #b57614 -color142 = #b8bb26 -color167 = #fb4934 -color175 = #d3869b -color208 = #fe8019 -color214 = #fabd2f -color223 = #ebdbb2 -color228 = #f4e8ba -color229 = #fdf4c1 -color230 = #ffffc8 -color234 = #1d2021 -color235 = #282828 -color236 = #32302f -color237 = #3c3836 -color239 = #504945 -color241 = #665c54 -color243 = #7c6f64 -color244 = #928374 -color245 = #928374 -color246 = #a89984 -color248 = #bdae93 -color250 = #d5c4a1 - [hints] font = Terminus 9 diff --git a/xresources b/xresources index 8ebd048..cc4fc27 100644 --- a/xresources +++ b/xresources @@ -25,9 +25,6 @@ URxvt.internalBorder: 0 URxvt.fading: 0 URxvt.depth: 32 -! icon (needs pixbuf support compiled) -URxvt.iconFile: /usr/share/icons/Faenza/apps/scalable/utilities-terminal.svg - ! urxvt perl extensions URxvt.perl-ext-common: default,matcher,clipboard URxvt.url-launcher: /home/von/.local/bin/default-web-browser @@ -59,35 +56,3 @@ URxvt.color13: #6c71c4 URxvt.color14: #93a1a1 URxvt.color15: #fdf6e3 ! }}} -! {{{ fixes for gruvbox to look awesome, requires patched urxvt package -URxvt.color24: #076678 -URxvt.color66: #427b58 -URxvt.color88: #9d0006 -URxvt.color96: #8f3f71 -URxvt.color100: #79740e -URxvt.color108: #8ec07c -URxvt.color109: #83a598 -URxvt.color130: #af3a03 -URxvt.color136: #b57614 -URxvt.color142: #b8bb26 -URxvt.color167: #fb4934 -URxvt.color175: #d3869b -URxvt.color208: #fe8019 -URxvt.color214: #fabd2f -URxvt.color223: #ebdbb2 -URxvt.color228: #f4e8ba -URxvt.color229: #fdf4c1 -URxvt.color230: #ffffc8 -URxvt.color234: #1d2021 -URxvt.color235: #282828 -URxvt.color236: #32302f -URxvt.color237: #3c3836 -URxvt.color239: #504945 -URxvt.color241: #665c54 -URxvt.color243: #7c6f64 -URxvt.color244: #928374 -URxvt.color245: #928374 -URxvt.color246: #a89984 -URxvt.color248: #bdae93 -URxvt.color250: #d5c4a1 -! }}}