summaryrefslogtreecommitdiff
path: root/scriptlets/rxvt_yazi_launcher.sh
diff options
context:
space:
mode:
authorダカマ <dakama@kakeranoumi.xyz>2025-06-02 13:08:46 +0200
committerダカマ <dakama@kakeranoumi.xyz>2025-06-02 13:08:46 +0200
commit14a892e627a375334a02381351f139d94ad7ecf3 (patch)
treee7c1ee5040f3076f57401b3b9e9eb567e2ecfb1a /scriptlets/rxvt_yazi_launcher.sh
First dumpHEADmaster
Diffstat (limited to 'scriptlets/rxvt_yazi_launcher.sh')
-rwxr-xr-xscriptlets/rxvt_yazi_launcher.sh10
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