Add Arch Wayland dotfiles: sway/waybar/kitty/nvim/zsh, idempotent installer
Auto-adapts sway workspace routing to however many monitors are connected (laptop vs. desktop) instead of hardcoding output names.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
export EDITOR=nvim
|
||||
export VISUAL=nvim
|
||||
export PAGER=less
|
||||
export LESS='-R'
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
setopt auto_cd auto_pushd pushd_ignore_dups
|
||||
setopt hist_ignore_all_dups hist_reduce_blanks hist_save_no_dups share_history
|
||||
setopt interactive_comments extended_glob
|
||||
HISTFILE="$HOME/.zsh_history"
|
||||
HISTSIZE=50000
|
||||
SAVEHIST=10000
|
||||
|
||||
[[ -d "$HOME/.cache/zsh" ]] || mkdir -p "$HOME/.cache/zsh"
|
||||
autoload -Uz compinit && compinit -d "$HOME/.cache/zsh/zcompdump"
|
||||
zstyle ':completion:*' menu select
|
||||
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
|
||||
@@ -0,0 +1,16 @@
|
||||
bindkey -e
|
||||
bindkey '^[[H' beginning-of-line
|
||||
bindkey '^[[F' end-of-line
|
||||
bindkey '^[[3~' delete-char
|
||||
bindkey '^R' history-incremental-search-backward
|
||||
|
||||
# Word-wise editing. The CSI bindings are emitted by Kitty (and many other
|
||||
# terminals); the Meta bindings keep the same actions working elsewhere.
|
||||
bindkey '^[b' backward-word
|
||||
bindkey '^[f' forward-word
|
||||
bindkey '^[[1;5D' backward-word
|
||||
bindkey '^[[1;5C' forward-word
|
||||
|
||||
bindkey '^[^?' backward-kill-word
|
||||
bindkey '^[[127;5u' backward-kill-word
|
||||
bindkey '^[[3;5~' kill-word
|
||||
@@ -0,0 +1,16 @@
|
||||
alias ls='ls --color=auto --group-directories-first'
|
||||
alias ll='ls -lah'
|
||||
alias la='ls -A'
|
||||
alias grep='grep --color=auto'
|
||||
alias vim='nvim'
|
||||
alias v='nvim'
|
||||
alias sway-reload='swaymsg reload'
|
||||
alias pkginstall='yay -Syu'
|
||||
alias pkgsearch='yay -Ss'
|
||||
alias pkgremove='yay -Rns'
|
||||
alias pkgupdate='yay -Syu'
|
||||
|
||||
mkcd() { mkdir -p -- "$1" && cd -- "$1"; }
|
||||
|
||||
# Keep Kitty's terminfo locally, but advertise a widely supported type over SSH.
|
||||
ssh() { TERM=xterm-256color command ssh "$@"; }
|
||||
@@ -0,0 +1,5 @@
|
||||
autoload -Uz colors && colors
|
||||
setopt prompt_subst
|
||||
PROMPT='%F{blue}%n%f@%F{cyan}%m%f %F{blue}%~%f %(?.%F{green}.%F{red})❯%f '
|
||||
RPROMPT='%F{240}%D{%H:%M}%f'
|
||||
|
||||
Reference in New Issue
Block a user