mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-22 07:15:59 +01:00
Updade README with more info no custom changes.
Updated config.def.h with my/luke preferences. Font=14px, alpha=0xcd, colorname[]=pop_os-inspired. Changed values for bg,fg and cursor using 256, 257, 258 indexs from colorname[]. Patched with luke's keymapping's.
This commit is contained in:
parent
0ad3d4eddf
commit
582549f486
2 changed files with 49 additions and 32 deletions
14
README.md
14
README.md
|
@ -46,5 +46,17 @@ sudo make install
|
||||||
|
|
||||||
## Custom changes (`config.def.h` or `config.h`)
|
## Custom changes (`config.def.h` or `config.h`)
|
||||||
|
|
||||||
+ change `alpha`
|
### Alpha
|
||||||
|
|
||||||
|
+ Change `alpha` value (86 LOC), be default set `0xcd`.
|
||||||
|
+ Less transparent set to `0xdd` or `0xee`.
|
||||||
|
+ For non transparent terminal set to `0xff`.
|
||||||
|
|
||||||
|
### Colorname
|
||||||
|
|
||||||
|
+ Change `colorname[]` array, default colours inspired by colors used in Pop! OS.
|
||||||
|
+ Numbers of 0 - 15 are usual terminal colors. Changed them to your liking.
|
||||||
|
+ Change `bg` to your desired terminal background color..
|
||||||
|
+ Change `fg` to your desired terminal foreground color.
|
||||||
|
+ Change `cursor` to your desired terminal cursor color.
|
||||||
+ chnage colors in `colorname` added comments with numbers `0`-`15` colors and also `bg`, `fg` and `cursor` color.
|
+ chnage colors in `colorname` added comments with numbers `0`-`15` colors and also `bg`, `fg` and `cursor` color.
|
||||||
|
|
65
config.def.h
65
config.def.h
|
@ -5,7 +5,7 @@
|
||||||
*
|
*
|
||||||
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
|
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
|
||||||
*/
|
*/
|
||||||
static char *font = "Liberation Mono:pixelsize=12:antialias=true:autohint=true";
|
static char *font = "Liberation Mono:pixelsize=14:antialias=true:autohint=true";
|
||||||
static int borderpx = 2;
|
static int borderpx = 2;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -85,33 +85,33 @@ unsigned int tabspaces = 8;
|
||||||
/* bg opacity */
|
/* bg opacity */
|
||||||
unsigned int alpha = 0xcd;
|
unsigned int alpha = 0xcd;
|
||||||
|
|
||||||
/* Terminal colors (16 first used in escape sequence) */
|
|
||||||
static const char *colorname[] = {
|
static const char *colorname[] = {
|
||||||
/* 8 normal colors */
|
/* 8 normal colors */
|
||||||
"black",
|
"#666666", /* 0 */
|
||||||
"red3",
|
"#cc0000", /* 1 */
|
||||||
"green3",
|
"#4e9a06", /* 2 */
|
||||||
"yellow3",
|
"#c4a000", /* 3 */
|
||||||
"blue2",
|
"#3465a4", /* 4 */
|
||||||
"magenta3",
|
"#75507b", /* 5 */
|
||||||
"cyan3",
|
"#06989a", /* 6 */
|
||||||
"gray90",
|
"#d3d7cf", /* 7 */
|
||||||
|
|
||||||
/* 8 bright colors */
|
/* 8 bright colors */
|
||||||
"gray50",
|
"#88807c", /* 8 */
|
||||||
"red",
|
"#f15d22", /* 9 */
|
||||||
"green",
|
"#73c48f", /* 10 */
|
||||||
"yellow",
|
"#ffce51", /* 11 */
|
||||||
"#5c5cff",
|
"#48b9c7", /* 12 */
|
||||||
"magenta",
|
"#ad7fa8", /* 13 */
|
||||||
"cyan",
|
"#34e2e2", /* 14 */
|
||||||
"white",
|
"#eeeeec", /* 15 */
|
||||||
|
|
||||||
[255] = 0,
|
[255] = 0,
|
||||||
|
|
||||||
/* more colors can be added after 255 to use with DefaultXX */
|
/* more colors can be added after 255 to use with DefaultXX */
|
||||||
"#cccccc",
|
"black", /* 256 -> bg */
|
||||||
"#555555",
|
"#00cc00", /* 257 -> fg */
|
||||||
|
"magenta" /* 258 -> cursor */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -119,9 +119,9 @@ static const char *colorname[] = {
|
||||||
* Default colors (colorname index)
|
* Default colors (colorname index)
|
||||||
* foreground, background, cursor, reverse cursor
|
* foreground, background, cursor, reverse cursor
|
||||||
*/
|
*/
|
||||||
unsigned int defaultfg = 7;
|
unsigned int defaultfg = 257;
|
||||||
unsigned int defaultbg = 0;
|
unsigned int defaultbg = 256;
|
||||||
static unsigned int defaultcs = 256;
|
static unsigned int defaultcs = 258;
|
||||||
static unsigned int defaultrcs = 257;
|
static unsigned int defaultrcs = 257;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -179,16 +179,21 @@ static Shortcut shortcuts[] = {
|
||||||
{ ControlMask, XK_Print, toggleprinter, {.i = 0} },
|
{ ControlMask, XK_Print, toggleprinter, {.i = 0} },
|
||||||
{ ShiftMask, XK_Print, printscreen, {.i = 0} },
|
{ ShiftMask, XK_Print, printscreen, {.i = 0} },
|
||||||
{ XK_ANY_MOD, XK_Print, printsel, {.i = 0} },
|
{ XK_ANY_MOD, XK_Print, printsel, {.i = 0} },
|
||||||
{ TERMMOD, XK_Prior, zoom, {.f = +1} },
|
{ MODKEY|ShiftMask, XK_Prior, zoom, {.f = +1} },
|
||||||
{ TERMMOD, XK_Next, zoom, {.f = -1} },
|
{ MODKEY|ShiftMask, XK_Next, zoom, {.f = -1} },
|
||||||
{ TERMMOD, XK_Home, zoomreset, {.f = 0} },
|
{ MODKEY|ShiftMask, XK_Home, zoomreset, {.f = 0} },
|
||||||
{ TERMMOD, XK_C, clipcopy, {.i = 0} },
|
{ ShiftMask, XK_Insert, selpaste, {.i = 0} },
|
||||||
{ TERMMOD, XK_V, clippaste, {.i = 0} },
|
{ MODKEY|ShiftMask, XK_Insert, clippaste, {.i = 0} },
|
||||||
{ TERMMOD, XK_Y, selpaste, {.i = 0} },
|
{ MODKEY|ShiftMask, XK_C, clipcopy, {.i = 0} },
|
||||||
|
{ MODKEY|ShiftMask, XK_V, clippaste, {.i = 0} },
|
||||||
{ TERMMOD, XK_Num_Lock, numlock, {.i = 0} },
|
{ TERMMOD, XK_Num_Lock, numlock, {.i = 0} },
|
||||||
{ TERMMOD, XK_I, iso14755, {.i = 0} },
|
{ MODKEY, XK_Control_L, iso14755, {.i = 0} },
|
||||||
{ ShiftMask, XK_Page_Up, kscrollup, {.i = -1} },
|
{ ShiftMask, XK_Page_Up, kscrollup, {.i = -1} },
|
||||||
{ ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} },
|
{ ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} },
|
||||||
|
{ MODKEY, XK_k, kscrollup, {.i = 1} },
|
||||||
|
{ MODKEY, XK_j, kscrolldown, {.i = 1} },
|
||||||
|
{ MODKEY, XK_u, kscrollup, {.i = -1} },
|
||||||
|
{ MODKEY, XK_d, kscrolldown, {.i = -1} },
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue