From edc4ef0106f7d4a37d367e81ae9e6470dbdc7087 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Wed, 22 Mar 2023 17:17:59 +0530 Subject: chore: config sync --- config/qutebrowser/userscripts/bookmark | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 config/qutebrowser/userscripts/bookmark (limited to 'config/qutebrowser/userscripts') 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 + -- cgit v1.3.1