diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-03-22 17:17:59 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-03-22 17:17:59 +0530 |
| commit | edc4ef0106f7d4a37d367e81ae9e6470dbdc7087 (patch) | |
| tree | 2e49381dbfec01b74d3b91bffc3c75e040742cef /config/qutebrowser/userscripts/bookmark | |
| parent | 384f3554cc53cf03fa9a4cf9e1bfa74aaa64a13f (diff) | |
| download | nixos-config-edc4ef0106f7d4a37d367e81ae9e6470dbdc7087.tar.gz nixos-config-edc4ef0106f7d4a37d367e81ae9e6470dbdc7087.zip | |
chore: config sync
Diffstat (limited to 'config/qutebrowser/userscripts/bookmark')
| -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 + |
