dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 9e340c027ae59ef438c8ad0e3a6a8d7ad8617f74
parent a047c1b1788280b4ddfa4cf4e5eb5551e604d3e5
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon,  4 Mar 2019 19:54:47 +0100

Implement color set for st

Diffstat:
Mlinks/bin/colortheme | 39++++++++++++++++++++-------------------
1 file changed, 20 insertions(+), 19 deletions(-)

diff --git a/links/bin/colortheme b/links/bin/colortheme @@ -117,25 +117,26 @@ function set_colors { fi if [ -f ~/code/st/config.h ]; then - sed -i "s/^\*.foreground: #.*$/\*.foreground: $foreground/" ~/code/st/config.h - sed -i "s/^\*.background: #.*$/\*.background: $background/" ~/code/st/config.h - sed -i "s/^\*.color0: #.*$/\*.color0: $color0/" ~/code/st/config.h - sed -i "s/^\*.color1: #.*$/\*.color1: $color1/" ~/code/st/config.h - sed -i "s/^\*.color2: #.*$/\*.color2: $color2/" ~/code/st/config.h - sed -i "s/^\*.color3: #.*$/\*.color3: $color3/" ~/code/st/config.h - sed -i "s/^\*.color4: #.*$/\*.color4: $color4/" ~/code/st/config.h - sed -i "s/^\*.color5: #.*$/\*.color5: $color5/" ~/code/st/config.h - sed -i "s/^\*.color6: #.*$/\*.color6: $color6/" ~/code/st/config.h - sed -i "s/^\*.color7: #.*$/\*.color7: $color7/" ~/code/st/config.h - sed -i "s/^\*.color8: #.*$/\*.color8: $color8/" ~/code/st/config.h - sed -i "s/^\*.color9: #.*$/\*.color9: $color9/" ~/code/st/config.h - sed -i "s/^\*.color10: #.*$/\*.color10: $color10/" ~/code/st/config.h - sed -i "s/^\*.color11: #.*$/\*.color11: $color11/" ~/code/st/config.h - sed -i "s/^\*.color12: #.*$/\*.color12: $color12/" ~/code/st/config.h - sed -i "s/^\*.color13: #.*$/\*.color13: $color13/" ~/code/st/config.h - sed -i "s/^\*.color14: #.*$/\*.color14: $color14/" ~/code/st/config.h - sed -i "s/^\*.color15: #.*$/\*.color15: $color15/" ~/code/st/config.h - sed -i "s/^\*.color16: #.*$/\*.color16: $color16/" ~/code/st/config.h + sed -i "s/^\t\[257\] = \"#.*\",.*$/\t\[257\] = \"$foreground\",/;\ + s/^\t\[256\] = \"#.*\",.*$/\t\[256\] = \"$background\",/;\ + s/^\t\[0\] = \"#.*\",.*$/\t\[0\] = \"$color0\",/;\ + s/^\t\[1\] = \"#.*\",.*$/\t\[1\] = \"$color1\",/;\ + s/^\t\[2\] = \"#.*\",.*$/\t\[2\] = \"$color2\",/;\ + s/^\t\[3\] = \"#.*\",.*$/\t\[3\] = \"$color3\",/;\ + s/^\t\[4\] = \"#.*\",.*$/\t\[4\] = \"$color4\",/;\ + s/^\t\[5\] = \"#.*\",.*$/\t\[5\] = \"$color5\",/;\ + s/^\t\[6\] = \"#.*\",.*$/\t\[6\] = \"$color6\",/;\ + s/^\t\[7\] = \"#.*\",.*$/\t\[7\] = \"$color7\",/;\ + s/^\t\[8\] = \"#.*\",.*$/\t\[8\] = \"$color8\",/;\ + s/^\t\[9\] = \"#.*\",.*$/\t\[9\] = \"$color9\",/;\ + s/^\t\[10\] = \"#.*\",.*$/\t\[10\] = \"$color10\",/;\ + s/^\t\[11\] = \"#.*\",.*$/\t\[11\] = \"$color11\",/;\ + s/^\t\[12\] = \"#.*\",.*$/\t\[12\] = \"$color12\",/;\ + s/^\t\[13\] = \"#.*\",.*$/\t\[13\] = \"$color13\",/;\ + s/^\t\[14\] = \"#.*\",.*$/\t\[14\] = \"$color14\",/;\ + s/^\t\[15\] = \"#.*\",.*$/\t\[15\] = \"$color15\",/"\ + ~/code/st/config.h + (cd ~/code/st && sudo make install) fi }