add toggle background keybind
This commit is contained in:
parent
646b8d33af
commit
f3e1b8520d
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue