From 64d2eb519923ac5a4d0dbd8ace95cb5ac2639dfe Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Fri, 14 Nov 2025 12:32:54 -0600 Subject: apply newterm patch with tmux support Applied st-newterm-0.9.diff and st-newterm-0.9-tmux.diff with minor manual adjustments: - Added newterm() function declaration to st.h - Added Ctrl-Shift-Return keybinding to spawn new terminal - Integrated tmux-aware working directory detection Benefits: - Spawn new st instance with Ctrl-Shift-Return - New terminal inherits current working directory - Tmux-aware: detects CWD of current process in tmux session - Improves workflow efficiency for multi-terminal usage Note: tmux support is Linux-only and requires tmux to be direct child of st --- config.def.h | 1 + 1 file changed, 1 insertion(+) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 319facd..6a86df4 100644 --- a/config.def.h +++ b/config.def.h @@ -224,6 +224,7 @@ static Shortcut shortcuts[] = { { TERMMOD, XK_Y, clippaste, {.i = 0} }, { ShiftMask, XK_Insert, clippaste, {.i = 0} }, { TERMMOD, XK_Num_Lock, numlock, {.i = 0} }, + { TERMMOD, XK_Return, newterm, {.i = 0} }, { ShiftMask, XK_Page_Up, kscrollup, {.i = -1} }, { ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} }, }; -- cgit v1.2.3