1
0
Fork 0

Add pointer disable and paginated ripgrep

main
Ambrose Chua 2021-10-01 13:34:37 +08:00
parent cb3e75f104
commit f1029164da
2 changed files with 16 additions and 1 deletions

View File

@ -85,6 +85,8 @@ input type:touchpad {
input type:pointer {
natural_scroll enabled
}
# Disable pointer and touchpad
bindsym $mod+p input type:pointer events toggle enabled disabled
### Key bindings
#

15
.zshrc
View File

@ -148,6 +148,19 @@ if [[ -f "$(which exa 2>/dev/null)" ]]; then
fi
alias ll="ls -l"
# grep
if [[ -f "$(which rg 2>/dev/null)" ]]; then
rgl() {
rg --line-number --heading --color always "$@" | less --RAW-CONTROL-CHARS
}
else
alias rg="grep --recursive --line-number"
rgl() {
rg --color=always "$@" | less --RAW-CONTROL-CHARS
}
fi
# prompt
setopt prompt_subst
@ -422,7 +435,7 @@ function theme {
fi
setup_prompt
if [[ -z "$SSH_CLIENT" ]]; then
if [[ $PLATFORM == linux ]] && [[ -f "$(which gsettings)" ]]; then
if [[ $PLATFORM == linux ]] && [[ -f "$(which gsettings 2>/dev/null)" ]]; then
gsettings set org.gnome.desktop.interface gtk-theme $gnome_theme
fi
if [[ $PLATFORM == macos ]]; then