diff options
author | rafa_99 <raroma09@gmail.com> | 2021-10-02 20:55:49 +0100 |
---|---|---|
committer | rafa_99 <raroma09@gmail.com> | 2021-10-02 20:55:49 +0100 |
commit | 95b16f4ae4b627c522d9b82a9872350705984a25 (patch) | |
tree | 026bb997aafaf604209b89431a7ea39572f4adad /scripts | |
parent | 850b55693fb1cf97ac01afa16eb304e78d8df129 (diff) |
Updated colorset script to add more support to neovimb
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/.local/bin/colorset | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/.local/bin/colorset b/scripts/.local/bin/colorset index b60d1db..38eb44c 100755 --- a/scripts/.local/bin/colorset +++ b/scripts/.local/bin/colorset @@ -20,10 +20,21 @@ cp -rf ~/.cache/wal/colors-wal-dmenu.h "$SUCK"/colors/dmenu/colors.h cp -rf ~/.cache/wal/colors-wal-st.h "$SUCK"/colors/st/colors.h head -7 ~/.cache/wal/colors-wal-dwm.h > "$SUCK"/colors/dwm/colors.h sed -i s/"$(grep norm_border "$SUCK"/colors/dwm/colors.h | cut -d# -f 2 | cut -d\" -f 1)"/"$(grep black "$SUCK"/colors/st/colors.h | head -1 | cut -d# -f 2 | cut -d\" -f 1)"/g "$SUCK"/colors/dwm/colors.h + +### cp -rf "$XDG_CONFIG_HOME"/neovimb/config.h "$SUCK"/colors/neovimb/src/ +### OLDSTRING=$(grep SETTING_INPUT_CSS "$SUCK"/colors/neovimb/src/config.h) NEWSTRING="#define SETTING_INPUT_CSS \"background-color:$(head -2 "$SUCK"/colors/dwm/colors.h | grep bg | cut -d\" -f2);color:$(head -2 "$SUCK"/colors/dwm/colors.h | grep fg | cut -d\" -f2);font:\" SETTING_GUI_FONT_NORMAL" sed -i s."$OLDSTRING"."$NEWSTRING".g "$SUCK"/colors/neovimb/src/config.h +### +OLDSTRING=$(grep SETTING_STATUS_CSS "$SUCK"/colors/neovimb/src/config.h) +NEWSTRING="#define SETTING_STATUS_CSS \"color:$(tail -3 "$SUCK"/colors/dwm/colors.h | grep fg | cut -d\" -f2);background-color:$(tail -3 "$SUCK"/colors/dwm/colors.h | grep bg | cut -d\" -f2);font:\" SETTING_GUI_FONT_EMPH" +sed -i s."$OLDSTRING"."$NEWSTRING".g "$SUCK"/colors/neovimb/src/config.h +### +OLDSTRING=$(grep SETTING_STATUS_SSL_CSS "$SUCK"/colors/neovimb/src/config.h) +NEWSTRING="#define SETTING_STATUS_SSL_CSS \"background-color:$(tail -3 "$SUCK"/colors/dwm/colors.h | grep bg | cut -d\" -f2);color:$(tail -3 "$SUCK"/colors/dwm/colors.h | grep fg | cut -d\" -f2);\"" +sed -i s."$OLDSTRING"."$NEWSTRING".g "$SUCK"/colors/neovimb/src/config.h # Recompiling Suckless Programs with new colorscheme cp -rf "$SUCK"/colors/* "$SUCK" |