Commit for generation 171
This commit is contained in:
36
glasshouse-desktop/dotfiles/zkbd
Normal file
36
glasshouse-desktop/dotfiles/zkbd
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
function left-beep {
|
||||
[[ $CURSOR -eq 0 ]] && return
|
||||
zle vi-backward-char
|
||||
(aplay /home/pagedmov/sound/sys/move_h.wav > /dev/null 2>&1 &)
|
||||
}
|
||||
function right-beep {
|
||||
zle autosuggest-accept
|
||||
[[ $CURSOR -eq ${#BUFFER} ]] && return
|
||||
zle vi-forward-char
|
||||
(aplay /home/pagedmov/sound/sys/move_h.wav > /dev/null 2>&1 &)
|
||||
}
|
||||
function up-beep {
|
||||
zle up-line-or-history
|
||||
(aplay /home/pagedmov/sound/sys/move_v.wav > /dev/null 2>&1 &)
|
||||
}
|
||||
function down-beep {
|
||||
zle down-line-or-history
|
||||
(aplay /home/pagedmov/sound/sys/move_v.wav > /dev/null 2>&1 &)
|
||||
}
|
||||
zle -N left-beep
|
||||
zle -N right-beep
|
||||
zle -N up-beep
|
||||
zle -N down-beep
|
||||
|
||||
bindkey -M viins "^[OD" left-beep
|
||||
bindkey -M viins "^[OC" right-beep
|
||||
bindkey -M viins "^[OB" down-beep
|
||||
bindkey -M viins "^[OA" up-beep
|
||||
|
||||
bindkey -M vicmd "h" left-beep
|
||||
bindkey -M vicmd "l" right-beep
|
||||
bindkey -M vicmd "j" down-beep
|
||||
bindkey -M vicmd "k" up-beep
|
||||
|
||||
ZSH_AUTOSUGGEST_ACCEPT_WIDGETS+=("right-beep")
|
||||
@@ -4,7 +4,6 @@ if (( ${+terminfo[smkx]} && ${+terminfo[rmkx]} )); then
|
||||
zle-line-finish() { echoti rmkx; }; zle -N zle-line-finish
|
||||
fi
|
||||
|
||||
|
||||
# History
|
||||
zshAddHistory() {
|
||||
whence ${${(z)1}[1]} >| /dev/null || return 1
|
||||
|
||||
@@ -88,6 +88,7 @@
|
||||
".config/waybar/config".source = ./dotfiles/packages/waybar/config/config;
|
||||
".config/waybar/style.css".source = ./dotfiles/packages/waybar/config/style.css;
|
||||
".zstyle".source = ./dotfiles/zsh-style;
|
||||
".zkbd".source = ./dotfiles/zkbd;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -277,11 +277,6 @@ setopt EXTENDED_GLOB
|
||||
setopt TRANSIENT_RPROMPT
|
||||
setopt INTERACTIVE_COMMENTS
|
||||
|
||||
|
||||
bindkey "^[[H" beginning-of-line # home key
|
||||
bindkey "^[[F" end-of-line # end key
|
||||
bindkey "^[[3~" delete-char # delete key
|
||||
|
||||
autoload -U compinit # completion
|
||||
autoload -U terminfo # terminfo keys
|
||||
zmodload -i zsh/complist # menu completion
|
||||
@@ -296,6 +291,7 @@ if [ "$TERM" = "linux" ] ; then
|
||||
echo -en "\e]P0232323"
|
||||
fi
|
||||
|
||||
source ~/.zkbd
|
||||
~/coding/scripts/splash.sh
|
||||
eval "$(starship init zsh)"
|
||||
(aplay ~/sound/sys/sh-source.wav > /dev/null 2>&1 &)
|
||||
|
||||
Reference in New Issue
Block a user