From 4258f2d7b2855eda91a9b962464bac6cab591ae1 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Fri, 10 Nov 2023 18:44:29 +0100 Subject: [PATCH] rc windowing sway: add sway-terminal-tab Not sure about this one, the implementation seems hacky so I'm not sure if it always does what the user expects. --- rc/windowing/sway.kak | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rc/windowing/sway.kak b/rc/windowing/sway.kak index 28de84a0..cda09613 100644 --- a/rc/windowing/sway.kak +++ b/rc/windowing/sway.kak @@ -29,6 +29,15 @@ define-command sway-terminal-horizontal -params 1.. -docstring ' } complete-command sway-terminal-horizontal shell +define-command sway-terminal-tab -params 1.. -docstring ' + sway-terminal-tab []: create a new terminal as a Sway window + The program passed as argument will be executed in the new terminal' \ +%{ + nop %sh{swaymsg 'split horizontal; layout tabbed'} + wayland-terminal-window %arg{@} +} +complete-command sway-terminal-tab shell + define-command sway-focus-pid -hidden %{ evaluate-commands %sh{ pid=$kak_client_pid