diff options
Diffstat (limited to 'config/qutebrowser/userscripts')
| -rwxr-xr-x | config/qutebrowser/userscripts/bookmark | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/config/qutebrowser/userscripts/bookmark b/config/qutebrowser/userscripts/bookmark new file mode 100755 index 0000000..8695551 --- /dev/null +++ b/config/qutebrowser/userscripts/bookmark @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +BOOKMARKS_PATH="$HOME/nixos/extras/bookmarks" + +case "$1" in + show) + local link=$(dmenu -p 'Bookmark :: ' < "$BOOKMARKS_PATH") + if test "$link"; then + echo "open -t '$link'" >> "$QUTE_FIFO" + fi + ;; + new) + echo "$QUTE_URL" >> "$BOOKMARKS_PATH" + ;; +esac + |
