sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit c917ce50e7994b6c8e5d7f78e5baea70d7e85fd7
parent 021503907febc9324873b57e4cce11579bd01e96
Author: GasparVardanyan <gaspar_pm@protonmail.com>
Date:   Fri, 25 Mar 2022 01:03:45 +0400

[st][patch][newterm] tabbed support

Diffstat:
Mst.suckless.org/patches/newterm/index.md | 5+++++
Ast.suckless.org/patches/newterm/st-newterm-0.8.2-tabbed.diff | 23+++++++++++++++++++++++
2 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/st.suckless.org/patches/newterm/index.md b/st.suckless.org/patches/newterm/index.md @@ -13,10 +13,14 @@ terminal window being swallowd. The orphan variant of this patch works around th issue by spawning the new terminal window as an orphan instead (meaning that it will have no parent process). +To have newterm working with tabbed, apply the st-newterm-0.8.2-tabbed.diff patch +on top of st-newterm-0.8.2.diff. + Download -------- * [st-newterm-0.8.2.diff](st-newterm-0.8.2.diff) + * [st-newterm-0.8.2-tabbed.diff](st-newterm-0.8.2-tabbed.diff) * [st-newterm-orphan-20210712-4536f46.diff](st-newterm-orphan-20210712-4536f46.diff) * [st-newterm-20220221-0.8.5.diff](st-newterm-20220221-0.8.5.diff) @@ -24,3 +28,4 @@ Authors ------- * Matías Lang * Stein Bakkeby (orphan version) +* Gaspar Vardanyan (tabbed support) diff --git a/st.suckless.org/patches/newterm/st-newterm-0.8.2-tabbed.diff b/st.suckless.org/patches/newterm/st-newterm-0.8.2-tabbed.diff @@ -0,0 +1,23 @@ +commit 11fc446aef2a9dbb99845e4b0294ef6177dbb3cb +Author: GasparVardanyan <gaspar.vardanyan.mailbox@gmail.com> +Date: Fri Feb 11 20:15:19 2022 +0400 + + modify newterm to work with tabbed + +diff --git a/st.c b/st.c +index f03f5bd..c0a6716 100644 +--- a/st.c ++++ b/st.c +@@ -1071,7 +1071,11 @@ newterm(const Arg* a) + break; + case 0: + chdir(getcwd_by_pid(pid)); +- execlp("st", "./st", NULL); ++ char * tabbed_win = getenv ("XEMBED"); ++ if (tabbed_win) ++ execlp("st", "./st", "-w", tabbed_win, NULL); ++ else ++ execlp("st", "./st", NULL); + break; + } + }