]> git.armaanb.net Git - bin.git/commitdiff
bookmarks: add script
authorArmaan Bhojwani <me@armaanb.net>
Wed, 16 Jun 2021 02:15:07 +0000 (22:15 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Wed, 16 Jun 2021 02:15:07 +0000 (22:15 -0400)
bookmarks [new file with mode: 0755]
man/bookmarks.1.scd [new file with mode: 0644]

diff --git a/bookmarks b/bookmarks
new file mode 100755 (executable)
index 0000000..6556d55
--- /dev/null
+++ b/bookmarks
@@ -0,0 +1,3 @@
+#!/usr/bin/env sh
+
+cat ${1:-~/org/bookmarks} | dmenu -l 20 | xargs xdg-open
\ No newline at end of file
diff --git a/man/bookmarks.1.scd b/man/bookmarks.1.scd
new file mode 100644 (file)
index 0000000..67fa1fc
--- /dev/null
@@ -0,0 +1,16 @@
+bookmarks(1)
+
+# NAME
+bookmarks - select a bookmark with dmenu
+
+# SYNOPSIS
+*bookmarks*++
+*bookmarks [path to bookmarks file]*
+
+# DESCRIPTION
+Allows you to select a bookmark from a list of newline delimited urls (defaults
+to ~/org/bookmarks) and open it in the default browser.
+
+# COPYRIGHT
+This is free and unencumbered software released into the public domain. For more
+information, please refer to <https://unlicense.org/>.