From 85b0517a66fd020fffce4867067240bec36ade4d Mon Sep 17 00:00:00 2001 From: tiyn Date: Wed, 8 Nov 2023 15:12:22 +0100 Subject: [PATCH] added copyout config --- config.def.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/config.def.h b/config.def.h index 5d660ba..34045d6 100644 --- a/config.def.h +++ b/config.def.h @@ -93,10 +93,13 @@ char *termname = "st-256color"; */ unsigned int tabspaces = 8; +/* bg opacity */ +float alpha = 1.0; + /* Terminal colors (16 first used in escape sequence) */ static const char *colorname[] = { /* 8 normal colors */ - "#1e1e1e", + "#191919", "#f44747", "#608b4e", "#dcdcaa", @@ -114,7 +117,7 @@ static const char *colorname[] = { "#d4d4d4", [255] = 0, /* more colors can be added after 255 to use with DefaultXX */ - "#1e1e1e", /* 256 -> bg */ + "#191919", /* 256 -> bg */ "#d4d4d4", /* 257 -> fg */ "#a4a4a4", /* 258 -> cursor */ }; @@ -181,6 +184,8 @@ static MouseShortcut mshortcuts[] = { #define MODKEY Mod1Mask #define TERMMOD (ControlMask|ShiftMask) +static char *copyoutput[] = { "/bin/sh", "-c", "st-copyout", "externalpipe", NULL }; + static Shortcut shortcuts[] = { /* mask keysym function argument */ { MODKEY, XK_Break, sendbreak, {.i = 0} }, @@ -196,6 +201,7 @@ static Shortcut shortcuts[] = { { MODKEY, XK_U, zoom, {.f = +1} }, { MODKEY|ShiftMask, XK_U, zoom, {.f = +1} }, { MODKEY|ShiftMask, XK_I, zoom, {.f = -1} }, + { MODKEY, XK_o, externalpipe, {.v = copyoutput } }, }; /*