improve zsh conf

This commit is contained in:
Johannes Knopp
2026-07-01 17:18:21 +02:00
parent 5ad06b3c9e
commit 3a1899cae1
5 changed files with 15 additions and 5 deletions

View File

@ -64,6 +64,7 @@ env = WLR_NO_HARDWARE_CURSORS,1
env = CLUTTER_BACKEND,wayland
env = SDL_VIDEODRIVER,wayland,x11
env = GDK_BACKEND,wayland,x11
env = SDL_AUDIODRIVER,pipewire
# jetbrains
env = _JAVA_AWT_WM_NONREPARENTING, 1
@ -109,11 +110,13 @@ general {
resize_on_border = false
# Please see https://wiki.hypr.land/Configuring/Tearing/ before you turn this on
allow_tearing = false
allow_tearing = true
layout = dwindle
}
# windowrule = immediate, class:^(cs2)$
# --- Decorations / cosmic glass ---
decoration {
@ -216,6 +219,7 @@ misc {
force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers
disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :(
middle_click_paste = false
vrr = 2
}

View File

@ -1,6 +1,6 @@
# Generated by nwg-displays on 2026-04-20 at 01:17:12. Do not edit manually.
monitor=DP-1,2560x1440@165.0,6626x876,1.0
monitor=DP-1,2560x1440@165.0,6626x876,1.0,vrr,2
monitor=DP-2,2560x1440@165.0,4066x876,1.0
monitor=HDMI-A-2,1920x1080@60.0,9186x396,1.0,transform,3
# monitor=HDMI-A-2,transform,3

View File

@ -16,3 +16,5 @@ if [[ -n "$MACHINE_TYPE" && -f "$HOME/dotfiles/zsh/hosts/$MACHINE_TYPE.zsh" ]];
fi
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gcr/ssh"
export SDL_AUDIODRIVER=pipewire

View File

@ -1,8 +1,8 @@
HISTFILE="$HOME/.zsh_history"
HISTSIZE=50000
SAVEHOST=50000
# setopt share_history # persist, and share live across open shells
setopt inc_append_history # history of session appended to HISTFILE after session ends
setopt share_history # persist, and share live across open shells
# setopt inc_append_history # history of session appended to HISTFILE after session ends
setopt extended_history # record timestamps
setopt hist_ignore_dups # drop a command identical to the one before it
setopt hist_ignore_space # don't record commands typed with a leading space
@ -56,7 +56,10 @@ ZSH_PLUGINS_DIR="$HOME/.zsh/plugins"
source "$ZSH_PLUGINS_DIR/zsh_autosuggestions/zsh-autosuggestions.zsh"
source "$ZSH_PLUGINS_DIR/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
bindkey '^H' backward-kill-word
bindkey '^H' backward-kill-word # Ctrl+Backspace - delete word
bindkey '^[[3;5~' kill-word # Ctrl+Delete - delete forward word
bindkey '^[[1;5C' forward-word # Ctrl+Right - jump forward a word
bindkey '^[[1;5D' backward-word # Ctrl+Left - jump backward a word
eval "$(zoxide init zsh)"

View File

@ -1 +1,2 @@
export FZF_CTRL_R_OPTS="--layout=reverse"
source <(fzf --zsh)