Commit for generation 171

This commit is contained in:
2024-10-02 05:31:03 -04:00
parent 827f956b07
commit 3ad290cb82
4 changed files with 38 additions and 6 deletions

View 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")

View File

@@ -4,7 +4,6 @@ if (( ${+terminfo[smkx]} && ${+terminfo[rmkx]} )); then
zle-line-finish() { echoti rmkx; }; zle -N zle-line-finish zle-line-finish() { echoti rmkx; }; zle -N zle-line-finish
fi fi
# History # History
zshAddHistory() { zshAddHistory() {
whence ${${(z)1}[1]} >| /dev/null || return 1 whence ${${(z)1}[1]} >| /dev/null || return 1

View File

@@ -88,6 +88,7 @@
".config/waybar/config".source = ./dotfiles/packages/waybar/config/config; ".config/waybar/config".source = ./dotfiles/packages/waybar/config/config;
".config/waybar/style.css".source = ./dotfiles/packages/waybar/config/style.css; ".config/waybar/style.css".source = ./dotfiles/packages/waybar/config/style.css;
".zstyle".source = ./dotfiles/zsh-style; ".zstyle".source = ./dotfiles/zsh-style;
".zkbd".source = ./dotfiles/zkbd;
}; };
}; };

View File

@@ -277,11 +277,6 @@ setopt EXTENDED_GLOB
setopt TRANSIENT_RPROMPT setopt TRANSIENT_RPROMPT
setopt INTERACTIVE_COMMENTS 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 compinit # completion
autoload -U terminfo # terminfo keys autoload -U terminfo # terminfo keys
zmodload -i zsh/complist # menu completion zmodload -i zsh/complist # menu completion
@@ -296,6 +291,7 @@ if [ "$TERM" = "linux" ] ; then
echo -en "\e]P0232323" echo -en "\e]P0232323"
fi fi
source ~/.zkbd
~/coding/scripts/splash.sh ~/coding/scripts/splash.sh
eval "$(starship init zsh)" eval "$(starship init zsh)"
(aplay ~/sound/sys/sh-source.wav > /dev/null 2>&1 &) (aplay ~/sound/sys/sh-source.wav > /dev/null 2>&1 &)