From 0eae8ed781fff825104c725f7e9e2c815fcb6fbe Mon Sep 17 00:00:00 2001 From: sudacode Date: Fri, 3 Apr 2026 23:33:20 -0700 Subject: [PATCH] update --- .config/hypr/windowrules.conf | 20 ++++++++++---------- .zsh/.zshrc##os.Darwin | 23 +++++++++++++++++++++++ 2 files changed, 33 insertions(+), 10 deletions(-) diff --git a/.config/hypr/windowrules.conf b/.config/hypr/windowrules.conf index 659d52d..c4244ad 100644 --- a/.config/hypr/windowrules.conf +++ b/.config/hypr/windowrules.conf @@ -77,17 +77,17 @@ windowrule = border_size 0, match:title LunaTranslator windowrule = stay_focused on, match:class gsm_overlay # windowrule = fullscreen_state 2, match:class gsm_overlay -windowrule = float on, match:class SubMiner -windowrule = border_size 0, match:class SubMiner -windowrule = xray off override, match:class SubMiner -windowrule = no_shadow on, match:class SubMiner -windowrule = no_blur on, match:class SubMiner -windowrule = no_dim on, match:class SubMiner -windowrule = opaque on, match:class SubMiner -windowrule = dim_around off, match:class SubMiner -windowrule = allows_input offf, match:class SubMiner +windowrule = float on, match:class subminer +windowrule = border_size 0, match:class subminer +windowrule = xray off override, match:class subminer +windowrule = no_shadow on, match:class subminer +windowrule = no_blur on, match:class subminer +windowrule = no_dim on, match:class subminer +windowrule = opaque on, match:class subminer +windowrule = dim_around off, match:class subminer +windowrule = allows_input offf, match:class subminer windowrule = border_size 0, match:class steam_app_1277940 -windowrule = opacity 1.0 override, match:class SubMiner +windowrule = opacity 1.0 override, match:class subminer # }}} # {{{ FEH diff --git a/.zsh/.zshrc##os.Darwin b/.zsh/.zshrc##os.Darwin index 05b466b..79a0f40 100644 --- a/.zsh/.zshrc##os.Darwin +++ b/.zsh/.zshrc##os.Darwin @@ -29,6 +29,29 @@ bindkey -v # Substring search source /opt/homebrew/share/zsh-history-substring-search/zsh-history-substring-search.zsh +fzf-file-widget-smart-root() { + setopt localoptions pipefail no_aliases 2>/dev/null + + local -a words + local last raw root sel + words=(${(z)LBUFFER}) + last=${words[-1]} + raw=${(Q)last} # unquote shell word + root=${~raw} # expand ~ + + if [[ -n "$raw" && "$raw" == */ && -d "$root" ]]; then + sel="$(cd -- "$root" && __fzf_select)" || return + LBUFFER+="$sel" + else + LBUFFER+="$(__fzf_select)" + fi + + zle reset-prompt +} + +zle -N fzf-file-widget-smart-root + + # Bind arrow keys for vi insert mode bindkey -M viins '^[[A' history-substring-search-up bindkey -M viins '^[[B' history-substring-search-down