commit ab155da38f584f158986360e2059ac3ca012deee parent acfee671eddb78352e8c9e2c3beb5c6ef29e98f4 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Mon, 4 Mar 2019 20:29:44 +0100 Fix matching of foreground and background Diffstat:
M | links/bin/colortheme | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/links/bin/colortheme b/links/bin/colortheme @@ -95,8 +95,8 @@ function set_colors { report_colors if [ -f ~/.Xresources ]; then - sed -i "s/^\*\.foreground: #.*$/\*.foreground: $foreground/;\ - s/^\*\.background: #.*$/\*.background: $background/;\ + sed -i "s/^\*\.foreground: .*$/\*.foreground: $foreground/;\ + s/^\*\.background: .*$/\*.background: $background/;\ s/^\*\.color0: .*$/\*.color0: $color0/;\ s/^\*\.color1: .*$/\*.color1: $color1/;\ s/^\*\.color2: .*$/\*.color2: $color2/;\ @@ -115,6 +115,8 @@ function set_colors { s/^\*\.color15: .*$/\*.color15: $color15/;\ s/^\*\.color16: .*$/\*.color16: $color16/" ~/.Xresources xrdb -merge ~/.Xresources + command -v i3-msg >/dev/null 2>&1 && i3-msg restart + [[ -x ~/bin/wallpaper.sh ]] && ~/bin/wallpaper.sh fi if [ -f ~/code/st/config.h ]; then