diff options
| author | Craig Jennings <c@cjennings.net> | 2025-11-14 12:32:54 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-11-14 12:32:54 -0600 |
| commit | 64d2eb519923ac5a4d0dbd8ace95cb5ac2639dfe (patch) | |
| tree | 3ed9c7471538e8cb805a2e0584bfd015bf2eaaee /config.def.h | |
| parent | 6aac8e849221321f6ef8dffcf1cde0c26602dabe (diff) | |
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
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 1 |
1 files changed, 1 insertions, 0 deletions
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} }, }; |
