Add pointer disable and paginated ripgrep
parent
cb3e75f104
commit
f1029164da
|
@ -85,6 +85,8 @@ input type:touchpad {
|
||||||
input type:pointer {
|
input type:pointer {
|
||||||
natural_scroll enabled
|
natural_scroll enabled
|
||||||
}
|
}
|
||||||
|
# Disable pointer and touchpad
|
||||||
|
bindsym $mod+p input type:pointer events toggle enabled disabled
|
||||||
|
|
||||||
### Key bindings
|
### Key bindings
|
||||||
#
|
#
|
||||||
|
|
15
.zshrc
15
.zshrc
|
@ -148,6 +148,19 @@ if [[ -f "$(which exa 2>/dev/null)" ]]; then
|
||||||
fi
|
fi
|
||||||
alias ll="ls -l"
|
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
|
# prompt
|
||||||
|
|
||||||
setopt prompt_subst
|
setopt prompt_subst
|
||||||
|
@ -422,7 +435,7 @@ function theme {
|
||||||
fi
|
fi
|
||||||
setup_prompt
|
setup_prompt
|
||||||
if [[ -z "$SSH_CLIENT" ]]; then
|
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
|
gsettings set org.gnome.desktop.interface gtk-theme $gnome_theme
|
||||||
fi
|
fi
|
||||||
if [[ $PLATFORM == macos ]]; then
|
if [[ $PLATFORM == macos ]]; then
|
||||||
|
|
Loading…
Reference in New Issue