From ce4d745291e427b4cffb8584e111a6df32f81b97 Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Mon, 9 Mar 2020 09:11:34 -0500 Subject: now uses self compiled stterm, also links binaries --- .autostart | 8 ++++---- build | 17 ++++++++++++++++ st/config.h | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 86 insertions(+), 4 deletions(-) create mode 100644 st/config.h diff --git a/.autostart b/.autostart index 035d1eb..630ce05 100755 --- a/.autostart +++ b/.autostart @@ -1,10 +1,10 @@ #!/bin/bash wait_time=0.1 -stterm -e trans -shell -brief & +st -e trans -shell -brief & sleep $wait_time -stterm -e ncmpcpp & +st -e ncmpcpp & sleep $wait_time -stterm -e htop & +st -e htop & sleep $wait_time -stterm -e aerc & +st -e aerc & diff --git a/build b/build index 001eec1..3b063d5 100755 --- a/build +++ b/build @@ -7,6 +7,9 @@ RC_DIR=$HOME'/src/rc' git config --global user.name "Tom Barrett" git config --global user.email "tom@tombarrett.xyz" +# bin directory +mkdir $HOME/bin + # dwm setup DWM_DIR=$HOME'/src/dwm' git clone https://git.suckless.org/dwm $DWM_DIR @@ -18,6 +21,8 @@ cp $RC_DIR'/dwm/config.h' $DWM_DIR make -C $DWM_DIR +ln -s $DWM_DIR/dwmstatus $HOME/bin + # dwmstatus setup DWMSTS_DIR=$HOME'/src/dwmstatus' git clone https://git.suckless.org/dwmstatus $DWMSTS_DIR @@ -26,6 +31,18 @@ patch $DWMSTS_DIR'/dwmstatus.c' $RC_DIR'/dwmstatus/custom.diff' make -C $DWMSTS_DIR +ln -s $DWMSTS_DIR/dwmstatus $HOME/bin + +# st setup +ST_DIR=$HOME'/src/st' +git clone https://git.suckless.org/st $ST_DIR + +cp $RC_DIR'/st/config.h' $ST_DIR + +make -C $ST_DIR + +ln -s $ST_DIR/st $HOME/bin + # fish setup cp -r $RC_DIR'/.config/fish' $HOME'/.config/' diff --git a/st/config.h b/st/config.h new file mode 100644 index 0000000..25979af --- /dev/null +++ b/st/config.h @@ -0,0 +1,65 @@ +diff --git a/config.def.h b/config.def.h +index 546edda..5a8c887 100644 +--- a/config.def.h ++++ b/config.def.h +@@ -84,42 +84,32 @@ unsigned int tabspaces = 8; + + /* Terminal colors (16 first used in escape sequence) */ + static const char *colorname[] = { +- /* 8 normal colors */ +- "black", +- "red3", +- "green3", +- "yellow3", +- "blue2", +- "magenta3", +- "cyan3", +- "gray90", +- +- /* 8 bright colors */ +- "gray50", +- "red", +- "green", +- "yellow", +- "#5c5cff", +- "magenta", +- "cyan", +- "white", +- +- [255] = 0, +- +- /* more colors can be added after 255 to use with DefaultXX */ +- "#cccccc", +- "#555555", ++ "#181818", /* base00 */ ++ "#ab4642", /* base08 */ ++ "#a1b56c", /* base0B */ ++ "#f7ca88", /* base0A */ ++ "#7cafc2", /* base0D */ ++ "#ba8baf", /* base0E */ ++ "#86c1b9", /* base0C */ ++ "#d8d8d8", /* base05 */ ++ "#585858", /* base03 */ ++ "#dc9656", /* base09 */ ++ "#282828", /* base01 */ ++ "#383838", /* base02 */ ++ "#b8b8b8", /* base04 */ ++ "#e8e8e8", /* base06 */ ++ "#a16946", /* base0F */ ++ "#f8f8f8", /* base07 */ + }; + +- + /* + * Default colors (colorname index) + * foreground, background, cursor, reverse cursor + */ + unsigned int defaultfg = 7; + unsigned int defaultbg = 0; +-static unsigned int defaultcs = 256; +-static unsigned int defaultrcs = 257; ++static unsigned int defaultcs = 13; ++static unsigned int defaultrcs = 0; + + /* + * Default shape of cursor -- cgit v1.2.3