summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-07-10 17:10:37 +0100
committerUrbain Vaes <urbain@vaes.uk>2015-07-10 17:10:37 +0100
commitee6ccb20f556a343d090ad35abee6e1f99457472 (patch)
tree86a3acf2b0ec4e14c4ff8913f6478472ae657ffc
parent5fe49cc123b1cc363e1cf6305884c64e71f73670 (diff)
Define programs colorscheme based on default
-rw-r--r--mutt/colormutt11
-rw-r--r--mutt/muttrc3
-rw-r--r--vim/.netrwhist3
-rw-r--r--vimrc6
-rw-r--r--zshrc9
5 files changed, 18 insertions, 14 deletions
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
}