1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-24 11:51:50 +08:00

see below

Kitty: add ctrl+shift+n to open new window in $PWD
.zshrc: use exa for better ls implementation
sway: remove mouse accel for pointers
This commit is contained in:
juan 2021-08-29 09:32:43 +08:00
parent 90fb6ff11e
commit 3b355ac8f1
3 changed files with 13 additions and 5 deletions

View File

@ -1112,7 +1112,7 @@ symbol_map U+23FB-U+23FE,U+2B58,U+E200-U+E2A9,U+E0A0-U+E0A3,U+E0B0-U+E0BF,U+E0C0
#: For more details, see launch. #: For more details, see launch.
# map kitty_mod+n new_os_window map kitty_mod+n new_os_window_with_cwd
#: Works like new_window above, except that it opens a top level OS #: Works like new_window above, except that it opens a top level OS
#: kitty window. In particular you can use new_os_window_with_cwd to #: kitty window. In particular you can use new_os_window_with_cwd to

View File

@ -70,6 +70,11 @@ input 1:1:AT_Translated_Set_2_keyboard {
xkb_options "ctrl:swapcaps" xkb_options "ctrl:swapcaps"
} }
input type:pointer {
accel_profile flat
pointer_accel 0
}
###END### ###END###
# Start a terminal # Start a terminal

11
.zshrc
View File

@ -22,11 +22,13 @@ source "$HOME/.zinit/bin/zinit.zsh"
zinit ice compile'(pure|async).zsh' pick'async.zsh' src'pure.zsh' zinit ice compile'(pure|async).zsh' pick'async.zsh' src'pure.zsh'
zinit light sindresorhus/pure zinit light sindresorhus/pure
zinit light zsh-users/zsh-autosuggestions zinit light zsh-users/zsh-autosuggestions
zinit light zsh-users/zsh-history-substring-search
zinit ice lucid wait zinit ice lucid wait
zinit light zdharma/fast-syntax-highlighting zinit light zdharma/fast-syntax-highlighting
zinit light zsh-users/zsh-history-substring-search
zinit ice lucid wait zinit ice lucid wait
zinit light agkozak/zsh-z zinit light agkozak/zsh-z
autoload -Uz _zinit autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit (( ${+_comps} )) && _comps[zinit]=_zinit
@ -134,9 +136,9 @@ alias free='free -h'
alias g='git' alias g='git'
alias grep='grep --color=auto' alias grep='grep --color=auto'
alias ip='ip -color=auto' alias ip='ip -color=auto'
alias la='ls -a --color=auto' alias la='exa -a'
alias ll='ls -lh --color=auto' alias ll='exa -l'
alias ls='ls --color=auto' alias ls='exa'
alias nya='doas' alias nya='doas'
alias pd='pandoc --pdf-engine=xelatex -V "mainfont:Source Han Sans CN"' alias pd='pandoc --pdf-engine=xelatex -V "mainfont:Source Han Sans CN"'
alias pls='echo "doas "$(fc -ln -1) && doas $(fc -ln -1)' alias pls='echo "doas "$(fc -ln -1) && doas $(fc -ln -1)'
@ -144,6 +146,7 @@ alias se='doas emerge'
alias sp='doas pacman' alias sp='doas pacman'
alias ssh='TERM="xterm-256color" ssh' alias ssh='TERM="xterm-256color" ssh'
alias sv='doasedit.sh' alias sv='doasedit.sh'
alias p='python'
alias v='nvim' alias v='nvim'
alias vw='nvim -c VimwikiIndex' alias vw='nvim -c VimwikiIndex'
alias yt-dl='yt-dlp --sub-lang en,zh-Hant --audio-format best' alias yt-dl='yt-dlp --sub-lang en,zh-Hant --audio-format best'