From 983baa4d79f21403a0a3b333ec678e28bd4aa2b9 Mon Sep 17 00:00:00 2001 From: _N0x Date: Sat, 20 Feb 2021 22:49:01 +0100 Subject: [PATCH] =?UTF-8?q?Fixed=20newterm=20patch=20for=20st=C2=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ st-0.8.4/config.def.h | 1 + st-0.8.4/st.h | 1 + 3 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index e671d2f..71f5750 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ *.tar.gz *.o +*.rej +*.orig dmenu stest st diff --git a/st-0.8.4/config.def.h b/st-0.8.4/config.def.h index 95c1087..1a4765e 100644 --- a/st-0.8.4/config.def.h +++ b/st-0.8.4/config.def.h @@ -206,6 +206,7 @@ static Shortcut shortcuts[] = { { TERMMOD, XK_Num_Lock, numlock, {.i = 0} }, { ShiftMask, XK_Page_Up, kscrollup, {.i = -1} }, { ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} }, + { TERMMOD, XK_Return, newterm, {.i = 0} }, }; /* diff --git a/st-0.8.4/st.h b/st-0.8.4/st.h index e641f6b..94af1fe 100644 --- a/st-0.8.4/st.h +++ b/st-0.8.4/st.h @@ -83,6 +83,7 @@ void draw(void); void kscrolldown(const Arg *); void kscrollup(const Arg *); +void newterm(const Arg *); void printscreen(const Arg *); void printsel(const Arg *); void sendbreak(const Arg *);