changing config
This commit is contained in:
parent
e0702d4a3e
commit
fd5d176dac
87
config.def.h
87
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 = "mono:pixelsize=16:antialias=true:autohint=true";
|
||||||
static int borderpx = 2;
|
static int borderpx = 2;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -63,7 +63,7 @@ static unsigned int cursorthickness = 2;
|
|||||||
static int bellvolume = 0;
|
static int bellvolume = 0;
|
||||||
|
|
||||||
/* default TERM value */
|
/* default TERM value */
|
||||||
char *termname = "st-256color";
|
char *termname = "xterm-256color";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* spaces per tab
|
* spaces per tab
|
||||||
@ -85,26 +85,27 @@ unsigned int tabspaces = 8;
|
|||||||
/* Terminal colors (16 first used in escape sequence) */
|
/* Terminal colors (16 first used in escape sequence) */
|
||||||
static const char *colorname[] = {
|
static const char *colorname[] = {
|
||||||
/* 8 normal colors */
|
/* 8 normal colors */
|
||||||
"black",
|
"#282828", /* hard contrast: #1d2021 / soft contrast: #32302f */
|
||||||
"red3",
|
"#cc241d",
|
||||||
"green3",
|
"#98971a",
|
||||||
"yellow3",
|
"#d79921",
|
||||||
"blue2",
|
"#458588",
|
||||||
"magenta3",
|
"#b16286",
|
||||||
"cyan3",
|
"#689d6a",
|
||||||
"gray90",
|
"#a89984",
|
||||||
|
"#928374",
|
||||||
/* 8 bright colors */
|
"#fb4934",
|
||||||
"gray50",
|
"#b8bb26",
|
||||||
"red",
|
"#fabd2f",
|
||||||
"green",
|
"#83a598",
|
||||||
"yellow",
|
"#d3869b",
|
||||||
"#5c5cff",
|
"#8ec07c",
|
||||||
"magenta",
|
"#ebdbb2",
|
||||||
"cyan",
|
|
||||||
"white",
|
|
||||||
|
|
||||||
[255] = 0,
|
[255] = 0,
|
||||||
|
/* more colors can be added after 255 to use with DefaultXX */
|
||||||
|
"#282828", /* 256 -> bg */
|
||||||
|
"#ebdbb2", /* 257 -> fg */
|
||||||
|
"#add8e6", /* 258 -> cursor */
|
||||||
|
|
||||||
/* more colors can be added after 255 to use with DefaultXX */
|
/* more colors can be added after 255 to use with DefaultXX */
|
||||||
"#cccccc",
|
"#cccccc",
|
||||||
@ -116,10 +117,10 @@ 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 = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Default shape of cursor
|
* Default shape of cursor
|
||||||
@ -163,11 +164,20 @@ static uint forcemousemod = ShiftMask;
|
|||||||
*/
|
*/
|
||||||
static MouseShortcut mshortcuts[] = {
|
static MouseShortcut mshortcuts[] = {
|
||||||
/* mask button function argument release */
|
/* mask button function argument release */
|
||||||
{ XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
|
{ Button4, XK_NO_MOD, "\031" },
|
||||||
{ XK_ANY_MOD, Button4, ttysend, {.s = "\031"} },
|
{ Button5, XK_NO_MOD, "\005" },
|
||||||
{ XK_ANY_MOD, Button5, ttysend, {.s = "\005"} },
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static char *openurlcmd[] = { "/bin/sh", "-c",
|
||||||
|
"sed 's/.*│//g' | tr -d '\n' | grep -aEo '(((http|https)://|www\\.)[a-zA-Z0-9.]*[:]?[a-zA-Z0-9./&%?#=_-]*)|((magnet:\\?xt=urn:btih:)[a-zA-Z0-9]*)'| uniq | sed 's/^www./http:\\/\\/www\\./g' | dmenu -i -p 'Follow which url?' -l 10 | xargs -r xdg-open",
|
||||||
|
"externalpipe", NULL };
|
||||||
|
|
||||||
|
static char *copyurlcmd[] = { "/bin/sh", "-c",
|
||||||
|
"sed 's/.*│//g' | tr -d '\n' | grep -aEo '(((http|https)://|www\\.)[a-zA-Z0-9.]*[:]?[a-zA-Z0-9./&%?#=_-]*)|((magnet:\\?xt=urn:btih:)[a-zA-Z0-9]*)' | uniq | sed 's/^www./http:\\/\\/www\\./g' | dmenu -i -p 'Copy which url?' -l 10 | tr -d '\n' | xclip -selection clipboard",
|
||||||
|
"externalpipe", NULL };
|
||||||
|
|
||||||
|
static char *copyoutput[] = { "/bin/sh", "-c", "st-copyout", "externalpipe", NULL };
|
||||||
|
|
||||||
/* Internal keyboard shortcuts. */
|
/* Internal keyboard shortcuts. */
|
||||||
#define MODKEY Mod1Mask
|
#define MODKEY Mod1Mask
|
||||||
#define TERMMOD (ControlMask|ShiftMask)
|
#define TERMMOD (ControlMask|ShiftMask)
|
||||||
@ -178,14 +188,19 @@ 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} },
|
{ ShiftMask, XK_Insert, clippaste, {.i = 0} },
|
||||||
{ TERMMOD, XK_Next, zoom, {.f = -1} },
|
{ MODKEY, XK_c, clipcopy, {.i = 0} },
|
||||||
{ TERMMOD, XK_Home, zoomreset, {.f = 0} },
|
{ MODKEY, XK_v, clippaste, {.i = 0} },
|
||||||
{ TERMMOD, XK_C, clipcopy, {.i = 0} },
|
{ MODKEY, XK_p, selpaste, {.i = 0} },
|
||||||
{ TERMMOD, XK_V, clippaste, {.i = 0} },
|
{ MODKEY, XK_Num_Lock, numlock, {.i = 0} },
|
||||||
{ TERMMOD, XK_Y, selpaste, {.i = 0} },
|
{ MODKEY, XK_Control_L, iso14755, {.i = 0} },
|
||||||
{ ShiftMask, XK_Insert, selpaste, {.i = 0} },
|
{ MODKEY, XK_k, kscrollup, {.i = 1} },
|
||||||
{ TERMMOD, XK_Num_Lock, numlock, {.i = 0} },
|
{ MODKEY, XK_j, kscrolldown, {.i = 1} },
|
||||||
|
{ TERMMOD, XK_U, zoom, {.f = +1} },
|
||||||
|
{ TERMMOD, XK_I, zoom, {.f = -1} },
|
||||||
|
{ MODKEY, XK_u, externalpipe, {.v = openurlcmd } },
|
||||||
|
{ MODKEY, XK_y, externalpipe, {.v = copyurlcmd } },
|
||||||
|
{ MODKEY, XK_o, externalpipe, {.v = copyoutput } },
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user