From 7659dfc2894518f124557ba1f2ae493c6c041782 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Mon, 17 Apr 2023 20:33:22 +0200 Subject: add clipboard support --- config.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'config.h') diff --git a/config.h b/config.h index d4d88c7..19496ce 100644 --- a/config.h +++ b/config.h @@ -65,6 +65,9 @@ int allowaltscreen = 1; setting the clipboard text */ int allowwindowops = 0; +/* Set clipboard max size (default 4MiB) */ +#define CLIPBOARD_SIZE 4194304 + /* * draw latency range in ms - from new content/keypress/etc until drawing. * within this range, st draws when content stops arriving (idle). mostly it's @@ -183,6 +186,11 @@ static unsigned int mousebg = 0; */ static unsigned int defaultattr = 11; +/* Shortcuts */ +static Shortcut shortcut[] = { + { XKB_KEY_c, KEY_MOD_ALT, copy }, + { XKB_KEY_v, KEY_MOD_ALT, paste }, +}; /* * This is the huge key array which defines all compatibility to the Linux -- cgit v1.2.3-70-g09d2