summaryrefslogtreecommitdiff
path: root/scripts/bookmarks
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/bookmarks')
-rwxr-xr-xscripts/bookmarks7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/bookmarks b/scripts/bookmarks
new file mode 100755
index 0000000..cb0c192
--- /dev/null
+++ b/scripts/bookmarks
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+readarray -t bookmarks < $MENULAUNCHER_DIR/bookmarks
+
+url=$(printf '%s\n' "${bookmarks[@]}" | dmenu -p "Bookmark: " -i -l 16 | sed 's/^.*: //g')
+
+[[ ! -z "$url" ]] && firefox --new-tab $url