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.
This commit is contained in:
Johannes Altmanninger 2023-11-10 18:44:29 +01:00
parent efdc57cef7
commit 4258f2d7b2

View File

@ -29,6 +29,15 @@ define-command sway-terminal-horizontal -params 1.. -docstring '
} }
complete-command sway-terminal-horizontal shell complete-command sway-terminal-horizontal shell
define-command sway-terminal-tab -params 1.. -docstring '
sway-terminal-tab <program> [<arguments>]: 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 %{ define-command sway-focus-pid -hidden %{
evaluate-commands %sh{ evaluate-commands %sh{
pid=$kak_client_pid pid=$kak_client_pid