hyprland-dotfiles/scripts/bravebookmarks.sh
2023-04-04 16:38:59 +02:00

16 lines
659 B
Bash
Executable File

#!/bin/bash
# ____ _ _
# | __ ) ___ ___ | | ___ __ ___ __ _ _ __| | _____
# | _ \ / _ \ / _ \| |/ / '_ ` _ \ / _` | '__| |/ / __|
# | |_) | (_) | (_) | <| | | | | | (_| | | | <\__ \
# |____/ \___/ \___/|_|\_\_| |_| |_|\__,_|_| |_|\_\___/
#
# by Stephan Raabe (2023)
# -----------------------------------------------------
selected=$(cat ~/.config/BraveSoftware/Brave-Browser/Default/Bookmarks | grep '"url":' | awk '{print $2}' | sed 's/"//g' | rofi -dmenu -p "Select a Brave Bookmark")
if [ "$selected" ]; then
brave $selected
fi