diff options
author | ダカマ <dakama@kakeranoumi.xyz> | 2025-06-02 13:08:46 +0200 |
---|---|---|
committer | ダカマ <dakama@kakeranoumi.xyz> | 2025-06-02 13:08:46 +0200 |
commit | 14a892e627a375334a02381351f139d94ad7ecf3 (patch) | |
tree | e7c1ee5040f3076f57401b3b9e9eb567e2ecfb1a /scriptlets/rxvt_yazi_launcher.sh |
Diffstat (limited to 'scriptlets/rxvt_yazi_launcher.sh')
-rwxr-xr-x | scriptlets/rxvt_yazi_launcher.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scriptlets/rxvt_yazi_launcher.sh b/scriptlets/rxvt_yazi_launcher.sh new file mode 100755 index 0000000..7bd2824 --- /dev/null +++ b/scriptlets/rxvt_yazi_launcher.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +DIR="$1" +EDITOR=/usr/bin/nvim + +if [[ ! -d "$DIR" ]]; then + /usr/bin/urxvt -geometry 160x48 -e sh -c "/usr/bin/yazi" +else + /usr/bin/urxvt -geometry 160x48 -e sh -c "/usr/bin/yazi ${DIR}" +fi |