kak: Preferir tmux por sobre Wayland
Y agregar comentario de donde encontré el snippet de tmux
This commit is contained in:
parent
0864cfa3fd
commit
c44bb1b4d5
1 changed files with 10 additions and 9 deletions
|
@ -58,15 +58,8 @@ hook global WinSetOption filetype=go %{
|
||||||
# ------------
|
# ------------
|
||||||
|
|
||||||
eval %sh{
|
eval %sh{
|
||||||
if test -n "$WAYLAND_DISPLAY"; then echo '
|
# https://github.com/alexherbo2/kakoune.cr/issues/33#issuecomment-1112160325
|
||||||
hook global KakBegin .* %{ set-option global termcmd "footclient sh -c" }
|
if test -n "$TMUX"; then echo "
|
||||||
define-command terminal-popup -params 1.. -shell-completion %{
|
|
||||||
set-option global termcmd "footclient --app-id=fzf sh -c"
|
|
||||||
wayland-terminal %arg{@}
|
|
||||||
set-option global termcmd "footclient sh -c"
|
|
||||||
}
|
|
||||||
'
|
|
||||||
elif test -n "$TMUX"; then echo "
|
|
||||||
define-command tmux-terminal-popup -params 1.. -shell-completion -docstring '
|
define-command tmux-terminal-popup -params 1.. -shell-completion -docstring '
|
||||||
tmux-terminal-popup <program> [<arguments>]: create a new terminal as a tmux popup
|
tmux-terminal-popup <program> [<arguments>]: create a new terminal as a tmux popup
|
||||||
The program passed as argument will be executed in the new popup' \
|
The program passed as argument will be executed in the new popup' \
|
||||||
|
@ -75,6 +68,14 @@ eval %sh{
|
||||||
}
|
}
|
||||||
alias global terminal-popup tmux-terminal-popup
|
alias global terminal-popup tmux-terminal-popup
|
||||||
"
|
"
|
||||||
|
elif test -n "$WAYLAND_DISPLAY"; then echo '
|
||||||
|
hook global KakBegin .* %{ set-option global termcmd "footclient sh -c" }
|
||||||
|
define-command terminal-popup -params 1.. -shell-completion %{
|
||||||
|
set-option global termcmd "footclient --app-id=fzf sh -c"
|
||||||
|
wayland-terminal %arg{@}
|
||||||
|
set-option global termcmd "footclient sh -c"
|
||||||
|
}
|
||||||
|
'
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue