swaydots

my dotfiles
git clone https://git.awy.one/swaydots.git
Log | Files | Refs | README | LICENSE

commit 034155d1e326e3cf486aec3b1bcb34a9b0413a51
parent b8a5c1211a0858b144471f7378563aebcb12ec7a
Author: awy <awy@awy.one>
Date:   Thu, 12 Jun 2025 19:58:22 +0300

tidy

Diffstat:
M.local/bin/sd | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.local/bin/sd b/.local/bin/sd @@ -8,10 +8,10 @@ for PID in $PIDlist; do cmdline=$(ps -o args= -p "$PID") process_group_leader=$(ps -o comm= -p "$(ps -o pgid= -p "$PID" | tr -d ' ')") cwd=$(readlink /proc/"$PID"/cwd) - # zsh and lf won't be ignored even if it shows ~ or / + # zsh and yazi won't be ignored even if it shows ~ or / case "$cmdline" in - 'lf -server') continue ;; - "${SHELL##*/}"|'lf'|'lf '*) break ;; + 'yazi') continue ;; + "${SHELL##*/}"|'yazi'|'yazi '*) break ;; esac # git (and its sub-processes) will show the root of a repository instead of the actual cwd, so they're ignored [ "$process_group_leader" = 'git' ] || [ ! -d "$cwd" ] && continue