From 987cea18cb9c42a955c69525c518979988ac8ce0 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 13 Dec 2015 02:03:03 +0100 Subject: [PATCH] Read in Xresources to define terminal colors. --- bin/symlink.sh | 11 +++++++++++ dotfiles/user/t450s/Xresources | 31 +++++++++++++++++++++++++++++++ dotfiles/user/thinkpad/xinitrc | 3 +++ jessie_postinstall.sh | 2 +- 4 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 dotfiles/user/t450s/Xresources diff --git a/bin/symlink.sh b/bin/symlink.sh index 412b55d..74cdb7b 100755 --- a/bin/symlink.sh +++ b/bin/symlink.sh @@ -5,6 +5,8 @@ set -x dir_minimal=~/config/dotfiles/minimal dir_user_minimal=~/config/dotfiles/user/minimal dir_user_thinkpad=~/config/dotfiles/user/thinkpad +dir_user_X200s=~/config/dotfiles/user/x200s +dir_user_T450s=~/config/dotfiles/user/t450s dir_user_server=~/config/dotfiles/user/server dir_root=~/config/dotfiles/root homedir=`echo ~` @@ -24,6 +26,15 @@ else for file in `ls $dir_user_thinkpad`; do ln -fs $dir_user_thinkpad/$file ~/.$file done + if [ "$2" = "x200s" ]; then + for file in `ls $dir_user_X200s`; do + ln -fs $dir_user_X200s/$file ~/.$file + done + else + for file in `ls $dir_user_T450s`; do + ln -fs $dir_user_T450s/$file ~/.$file + done + fi elif [ "$1" = "server" ]; then for file in `ls $dir_user_server`; do ln -fs $dir_user_server/$file ~/.$file diff --git a/dotfiles/user/t450s/Xresources b/dotfiles/user/t450s/Xresources new file mode 100644 index 0000000..818d251 --- /dev/null +++ b/dotfiles/user/t450s/Xresources @@ -0,0 +1,31 @@ +! black +*color0: #202020 +*color8: #3F3F3F + +! red +*color1: #A82020 +*color9: #E82020 + +! green +*color2: #20A820 +*color10: #20E820 + +! yellow +*color3: #A8A820 +*color11: #E8E820 + +! blue +*color4: #3F3FFF +*color12: #9F9FFF + +! magenta +*color5: #A83FFF +*color13: #E89FFF + +! cyan +*color6: #3FA8FF +*color14: #9FE8FF + +! white +*color7: #A8A8A8 +*color15: #E8E8E8 diff --git a/dotfiles/user/thinkpad/xinitrc b/dotfiles/user/thinkpad/xinitrc index 92311fa..295381a 100644 --- a/dotfiles/user/thinkpad/xinitrc +++ b/dotfiles/user/thinkpad/xinitrc @@ -3,6 +3,9 @@ # Set keymap. setxkbmap de +# Read in X configuration. +xrdb -merge ~/.Xresources + # Redshift to Berlin, Germany. redshift -l 53:13 & diff --git a/jessie_postinstall.sh b/jessie_postinstall.sh index 7aafe79..f073da1 100755 --- a/jessie_postinstall.sh +++ b/jessie_postinstall.sh @@ -136,7 +136,7 @@ config/bin/symlink.sh useradd -m -s /bin/bash plom rm -rf /home/plom/config su - plom -c 'git clone http://github.com/plomlompom/config /home/plom/config' -su plom -c '/home/plom/config/bin/symlink.sh '$1 +su plom -c '/home/plom/config/bin/symlink.sh '$1 $2 # Set up editor. mkdir -p .vimbackups -- 2.30.2