summaryrefslogtreecommitdiff
path: root/bin/open
diff options
context:
space:
mode:
authorpants <niklasjo2004@gmail.com>2026-09-21 14:17:03 -0700
committerpants <niklasjo2004@gmail.com>2026-09-21 14:17:03 -0700
commit7b21727285e50b0b050c4ddd70d07542229c5366 (patch)
tree5d369153c5df5b41f3750d25479a68f20169c8ff /bin/open
init
Diffstat (limited to 'bin/open')
-rwxr-xr-xbin/open8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/open b/bin/open
new file mode 100755
index 0000000..f6991e0
--- /dev/null
+++ b/bin/open
@@ -0,0 +1,8 @@
+#!/bin/sh
+FILE=$(find -maxdepth 5 -type f | dmenu -c -i -l 10 -p "path to open")
+
+if ( ./"$FILE" ); then
+ exit
+else
+ xdg-open "$FILE"
+fi