summaryrefslogtreecommitdiff
path: root/scriptlets/rxvt_yazi_launcher.sh
diff options
context:
space:
mode:
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