hm: hypr, vesktop, dunst

This commit is contained in:
2026-10-06 13:30:23 +02:00
parent c3234faf17
commit 597c0582a8
12 changed files with 267 additions and 103 deletions

View File

@@ -1,10 +1,7 @@
set tempfile /tmp/chosendir
command yazi cwd-file=$tempfile (pwd) $argv
set tempfile (mktemp -t "yazi-cwd.XXX")
command yazi $argv --cwd-file=$tempfile
if test -f $tempfile
if [ (cat $tempfile) != (pwd) ]
cd (cat $tempfile)
end
if read -z cwd < "$tempfile"; and [ "$cwd" != "$PWD" ]; and test -d "$cwd"
builtin cd -- "$cwd"
end
rm -f $tempfile
command rm -f -- "$tempfile"