From ee6ccb20f556a343d090ad35abee6e1f99457472 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Fri, 10 Jul 2015 17:10:37 +0100 Subject: Define programs colorscheme based on default --- mutt/colormutt | 11 ----------- mutt/muttrc | 3 ++- vim/.netrwhist | 3 ++- vimrc | 6 +++++- zshrc | 9 +++++++++ 5 files changed, 18 insertions(+), 14 deletions(-) delete mode 100644 mutt/colormutt diff --git a/mutt/colormutt b/mutt/colormutt deleted file mode 100644 index ddaa7ba..0000000 --- a/mutt/colormutt +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -if [ "$COLORSCHEME" = "light" ]; then - theme=light -elif [ "$COLORSCHEME" = "dark" ]; then - theme=dark -else - echo $COLORSCHEME -fi - -echo "/home/urbain/github/mutt-colors-solarized/mutt-colors-solarized-"$theme"-16.muttrc" diff --git a/mutt/muttrc b/mutt/muttrc index 10b07e1..417c73e 100644 --- a/mutt/muttrc +++ b/mutt/muttrc @@ -84,7 +84,8 @@ bind pager k previous-entry bind pager R group-reply # Source mutt solarized -source `sh /home/urbain/.mutt/colormutt` +`[ "$COLORSCHEME" = "light" ] && echo source $HOME/github/mutt-colors-solarized/mutt-colors-solarized-light-16.muttrc || echo set` +`[ "$COLORSCHEME" = "dark" ] && echo source $HOME/github/mutt-colors-solarized/mutt-colors-solarized-dark-16.muttrc || echo set` # Colors color index brightblue default "~f edfenergy" diff --git a/vim/.netrwhist b/vim/.netrwhist index 5793e91..120d736 100644 --- a/vim/.netrwhist +++ b/vim/.netrwhist @@ -1,6 +1,7 @@ let g:netrw_dirhistmax =10 -let g:netrw_dirhist_cnt =4 +let g:netrw_dirhist_cnt =5 let g:netrw_dirhist_1='/home/urbain/Dropbox/phd/code/spectral/feature' let g:netrw_dirhist_2='/home/urbain/Dropbox/phd/code/spectral/feature/src' let g:netrw_dirhist_3='/home/urbain/Dropbox/phd/code/spectral/develop/python' let g:netrw_dirhist_4='/home/urbain/.antigen' +let g:netrw_dirhist_5='/home/urbain/dotfiles/mutt' diff --git a/vimrc b/vimrc index a2cf4f2..1b0b533 100644 --- a/vimrc +++ b/vimrc @@ -189,10 +189,14 @@ set lazyredraw set hidden " Colorscheme -silent! colo solarized if $COLORSCHEME=="light" + silent! colo solarized set background=light elseif $COLORSCHEME=="dark" + silent! colo solarized + set background=dark +elseif $COLORSCHEME=="default" + silent! colo seoul256 set background=dark endif diff --git a/zshrc b/zshrc index 3ad65c8..d3f8e40 100644 --- a/zshrc +++ b/zshrc @@ -154,12 +154,21 @@ fi export TERM=xterm-256color export COLORSCHEME=light +default() { + $HOME/.bin/recolor.sh < ~/.Xresources.default + xrdb ~/.Xresources.default + export COLORSCHEME=default + sed -i "s/export COLORSCHEME=.*/export COLORSHEME=default/g" ~/.zshrc +} + light() { + $HOME/.bin/recolor.sh < ~/.Xresources.light xrdb ~/.Xresources.light export COLORSCHEME=light } dark() { + $HOME/.bin/recolor.sh < ~/.Xresources.dark xrdb ~/.Xresources.dark export COLORSCHEME=dark } -- cgit v1.2.3