Compare commits
No commits in common. "d4c5cf969965d1c1660d66afa6548462a31154f8" and "ca7c32ce139902acee8ffe44b9f83c8a70075d92" have entirely different histories.
d4c5cf9699
...
ca7c32ce13
|
@ -59,7 +59,7 @@ gears.timer {
|
||||||
call_now = true,
|
call_now = true,
|
||||||
autostart = true,
|
autostart = true,
|
||||||
callback = function()
|
callback = function()
|
||||||
awful.spawn.with_shell({"xmodmap", "/home/user/.Xmodmap"}) -- If not repeated it sometimes just stops working
|
awful.spawn.easy_async({"xmodmap", "/home/user/.Xmodmap"}) -- If not repeated it sometimes just stops working
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ cmp.setup({
|
||||||
documentation = cmp.config.window.bordered(),
|
documentation = cmp.config.window.bordered(),
|
||||||
},
|
},
|
||||||
mapping = cmp.mapping.preset.insert({
|
mapping = cmp.mapping.preset.insert({
|
||||||
['<CR>'] = cmp.mapping.confirm({ select = false }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
|
['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
|
||||||
["<Tab>"] = cmp.mapping(select_next, { "i", "s" }),
|
["<Tab>"] = cmp.mapping(select_next, { "i", "s" }),
|
||||||
["<C-J>"] = cmp.mapping(select_next, { "i", "s" }),
|
["<C-J>"] = cmp.mapping(select_next, { "i", "s" }),
|
||||||
["<S-Tab>"] = cmp.mapping(select_previous, { "i", "s" }),
|
["<S-Tab>"] = cmp.mapping(select_previous, { "i", "s" }),
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
logits
|
|
||||||
logits
|
|
||||||
OpenSwarm
|
|
107
zsh/.zshrc
107
zsh/.zshrc
|
@ -22,8 +22,35 @@ setopt autocd
|
||||||
typeset -g -A key
|
typeset -g -A key
|
||||||
|
|
||||||
# Use vi-mode
|
# Use vi-mode
|
||||||
source ${XDG_CONFIG_HOME}/zsh/zsh-vi-mode/zsh-vi-mode.plugin.zsh
|
bindkey -v
|
||||||
ZVM_VI_INSERT_ESCAPE_BINDKEY=jj
|
bindkey jj vi-cmd-mode
|
||||||
|
|
||||||
|
key[Home]="${terminfo[khome]}"
|
||||||
|
key[End]="${terminfo[kend]}"
|
||||||
|
key[Insert]="${terminfo[kich1]}"
|
||||||
|
key[Backspace]="${terminfo[kbs]}"
|
||||||
|
key[Delete]="${terminfo[kdch1]}"
|
||||||
|
key[Up]="${terminfo[kcuu1]}"
|
||||||
|
key[Down]="${terminfo[kcud1]}"
|
||||||
|
key[Left]="${terminfo[kcub1]}"
|
||||||
|
key[Right]="${terminfo[kcuf1]}"
|
||||||
|
key[PageUp]="${terminfo[kpp]}"
|
||||||
|
key[PageDown]="${terminfo[knp]}"
|
||||||
|
key[Shift-Tab]="${terminfo[kcbt]}"
|
||||||
|
|
||||||
|
# setup key accordingly
|
||||||
|
[[ -n "${key[Home]}" ]] && bindkey -- "${key[Home]}" beginning-of-line
|
||||||
|
[[ -n "${key[End]}" ]] && bindkey -- "${key[End]}" end-of-line
|
||||||
|
[[ -n "${key[Insert]}" ]] && bindkey -- "${key[Insert]}" overwrite-mode
|
||||||
|
[[ -n "${key[Backspace]}" ]] && bindkey -- "${key[Backspace]}" backward-delete-char
|
||||||
|
[[ -n "${key[Delete]}" ]] && bindkey -- "${key[Delete]}" delete-char
|
||||||
|
[[ -n "${key[Up]}" ]] && bindkey -- "${key[Up]}" up-line-or-history
|
||||||
|
[[ -n "${key[Down]}" ]] && bindkey -- "${key[Down]}" down-line-or-history
|
||||||
|
[[ -n "${key[Left]}" ]] && bindkey -- "${key[Left]}" backward-char
|
||||||
|
[[ -n "${key[Right]}" ]] && bindkey -- "${key[Right]}" forward-char
|
||||||
|
[[ -n "${key[PageUp]}" ]] && bindkey -- "${key[PageUp]}" beginning-of-buffer-or-history
|
||||||
|
[[ -n "${key[PageDown]}" ]] && bindkey -- "${key[PageDown]}" end-of-buffer-or-history
|
||||||
|
[[ -n "${key[Shift-Tab]}" ]] && bindkey -- "${key[Shift-Tab]}" reverse-menu-complete
|
||||||
|
|
||||||
# Finally, make sure the terminal is in application mode, when zle is
|
# Finally, make sure the terminal is in application mode, when zle is
|
||||||
# active. Only then are the values from $terminfo valid.
|
# active. Only then are the values from $terminfo valid.
|
||||||
|
@ -35,59 +62,12 @@ if (( ${+terminfo[smkx]} && ${+terminfo[rmkx]} )); then
|
||||||
add-zle-hook-widget -Uz zle-line-finish zle_application_mode_stop
|
add-zle-hook-widget -Uz zle-line-finish zle_application_mode_stop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
function zvm_after_init() {
|
autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
|
||||||
key[Home]="${terminfo[khome]}"
|
zle -N up-line-or-beginning-search
|
||||||
key[End]="${terminfo[kend]}"
|
zle -N down-line-or-beginning-search
|
||||||
key[Insert]="${terminfo[kich1]}"
|
|
||||||
key[Backspace]="${terminfo[kbs]}"
|
|
||||||
key[Delete]="${terminfo[kdch1]}"
|
|
||||||
key[Up]="${terminfo[kcuu1]}"
|
|
||||||
key[Down]="${terminfo[kcud1]}"
|
|
||||||
key[Left]="${terminfo[kcub1]}"
|
|
||||||
key[Right]="${terminfo[kcuf1]}"
|
|
||||||
key[PageUp]="${terminfo[kpp]}"
|
|
||||||
key[PageDown]="${terminfo[knp]}"
|
|
||||||
key[Shift-Tab]="${terminfo[kcbt]}"
|
|
||||||
|
|
||||||
# setup key accordingly
|
|
||||||
[[ -n "${key[Home]}" ]] && bindkey -- "${key[Home]}" beginning-of-line
|
|
||||||
[[ -n "${key[End]}" ]] && bindkey -- "${key[End]}" end-of-line
|
|
||||||
[[ -n "${key[Insert]}" ]] && bindkey -- "${key[Insert]}" overwrite-mode
|
|
||||||
[[ -n "${key[Backspace]}" ]] && bindkey -- "${key[Backspace]}" backward-delete-char
|
|
||||||
[[ -n "${key[Delete]}" ]] && bindkey -- "${key[Delete]}" delete-char
|
|
||||||
[[ -n "${key[Up]}" ]] && bindkey -- "${key[Up]}" up-line-or-history
|
|
||||||
[[ -n "${key[Down]}" ]] && bindkey -- "${key[Down]}" down-line-or-history
|
|
||||||
[[ -n "${key[Left]}" ]] && bindkey -- "${key[Left]}" backward-char
|
|
||||||
[[ -n "${key[Right]}" ]] && bindkey -- "${key[Right]}" forward-char
|
|
||||||
[[ -n "${key[PageUp]}" ]] && bindkey -- "${key[PageUp]}" beginning-of-buffer-or-history
|
|
||||||
[[ -n "${key[PageDown]}" ]] && bindkey -- "${key[PageDown]}" end-of-buffer-or-history
|
|
||||||
[[ -n "${key[Shift-Tab]}" ]] && bindkey -- "${key[Shift-Tab]}" reverse-menu-complete
|
|
||||||
|
|
||||||
autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
|
|
||||||
zle -N up-line-or-beginning-search
|
|
||||||
zle -N down-line-or-beginning-search
|
|
||||||
[[ -n "${key[Up]}" ]] && bindkey -- "${key[Up]}" up-line-or-beginning-search
|
|
||||||
[[ -n "${key[Down]}" ]] && bindkey -- "${key[Down]}" down-line-or-beginning-search
|
|
||||||
|
|
||||||
|
|
||||||
if [ -f "/usr/share/doc/pkgfile/command-not-found.zsh" ]; then
|
|
||||||
source /usr/share/doc/pkgfile/command-not-found.zsh
|
|
||||||
fi
|
|
||||||
|
|
||||||
#FZF
|
|
||||||
if [ -f "/usr/share/doc/fzf/examples/key-bindings.zsh" ]; then
|
|
||||||
source /usr/share/doc/fzf/examples/key-bindings.zsh
|
|
||||||
source /usr/share/doc/fzf/examples/completion.zsh
|
|
||||||
elif [ -f "/usr/share/fzf/key-bindings.zsh" ]; then
|
|
||||||
source /usr/share/fzf/key-bindings.zsh
|
|
||||||
source /usr/share/fzf/completion.zsh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f "/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" ]; then
|
|
||||||
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
|
[[ -n "${key[Up]}" ]] && bindkey -- "${key[Up]}" up-line-or-beginning-search
|
||||||
|
[[ -n "${key[Down]}" ]] && bindkey -- "${key[Down]}" down-line-or-beginning-search
|
||||||
|
|
||||||
|
|
||||||
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'
|
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'
|
||||||
|
@ -98,6 +78,25 @@ autoload -Uz compinit
|
||||||
compinit -d "$XDG_CACHE_HOME"/zsh/zcompdump-"$ZSH_VERSION"
|
compinit -d "$XDG_CACHE_HOME"/zsh/zcompdump-"$ZSH_VERSION"
|
||||||
|
|
||||||
|
|
||||||
|
if [ -f "/usr/share/doc/pkgfile/command-not-found.zsh" ]; then
|
||||||
|
source /usr/share/doc/pkgfile/command-not-found.zsh
|
||||||
|
fi
|
||||||
|
|
||||||
|
#FZF
|
||||||
|
if [ -f "/usr/share/doc/fzf/examples/key-bindings.zsh" ]; then
|
||||||
|
source /usr/share/doc/fzf/examples/key-bindings.zsh
|
||||||
|
source /usr/share/doc/fzf/examples/completion.zsh
|
||||||
|
elif [ -f "/usr/share/fzf/key-bindings.zsh" ]; then
|
||||||
|
source /usr/share/fzf/key-bindings.zsh
|
||||||
|
source /usr/share/fzf/completion.zsh
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Autosuggestions
|
||||||
|
if [ -f "/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" ]; then
|
||||||
|
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
export HISTFILE="$XDG_STATE_HOME"/zsh/history
|
export HISTFILE="$XDG_STATE_HOME"/zsh/history
|
||||||
export HISTSIZE=10000000
|
export HISTSIZE=10000000
|
||||||
export SAVEHIST=10000000
|
export SAVEHIST=10000000
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 1f28e1886dc8e49f41b817634d5c7695b6abb145
|
|
Loading…
Reference in New Issue