summaryrefslogtreecommitdiffstats
path: root/public/.local/bin/dmenu-opentable.sh
diff options
context:
space:
mode:
Diffstat (limited to 'public/.local/bin/dmenu-opentable.sh')
-rwxr-xr-xpublic/.local/bin/dmenu-opentable.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/public/.local/bin/dmenu-opentable.sh b/public/.local/bin/dmenu-opentable.sh
new file mode 100755
index 0000000..69786bb
--- /dev/null
+++ b/public/.local/bin/dmenu-opentable.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+# xdg-open a file selected through dmenu
+
+DIR="$HOME/docs/spreadsheet"
+FILE=$(ls "$DIR" | dmenu -i -l 10 -p "Select spreadsheet:")
+[ -z "$FILE" ] && exit 1
+xdg-open "$DIR/$FILE"