1
0
Fork 0

add toggle background keybind

This commit is contained in:
Luca Bilke 2024-06-10 18:02:32 +02:00
parent 646b8d33af
commit f3e1b8520d
2 changed files with 9 additions and 0 deletions

View file

@ -78,3 +78,11 @@ function ntfy() {
"$@" && { notify-send "$1 completed successfully"; return; }
notify-send -u critical "$1 failed! " "exited with code: $?"
}
function togglebg () {
zle push-input -w
zle clear-screen -w
BUFFER="fg"
zle accept-line -w
}
zle -N togglebg

View file

@ -12,6 +12,7 @@ bindkey -M menuselect 'j' vi-down-line-or-history
# Widgets
bindkey '^e' lfwrap
bindkey '^g' lg
bindkey '^z' togglebg
bindkey '^[[15~' refresh_xrdb_st
bindkey -M vicmd '^v' edit-command-line