Add Brave Bookmarks script
This commit is contained in:
parent
56bb277e07
commit
3c27da2b1e
1
.bashrc
1
.bashrc
@ -36,6 +36,7 @@ alias shot='scrot -d 3 -c -z -u'
|
|||||||
alias shotsel='scrot -s'
|
alias shotsel='scrot -s'
|
||||||
alias nf='neofetch'
|
alias nf='neofetch'
|
||||||
alias pf='pfetch'
|
alias pf='pfetch'
|
||||||
|
alias wifi='nmtui'
|
||||||
|
|
||||||
# GIT
|
# GIT
|
||||||
alias gs="git status"
|
alias gs="git status"
|
||||||
|
@ -134,7 +134,8 @@ keys = [
|
|||||||
# Apps
|
# Apps
|
||||||
Key([mod], "Return", lazy.spawn(terminal), desc="Launch terminal"),
|
Key([mod], "Return", lazy.spawn(terminal), desc="Launch terminal"),
|
||||||
Key([mod, "control"], "Return", lazy.spawn("rofi -show drun -icon-theme 'Papirus' -show-icons"), desc="Launch Rofi"),
|
Key([mod, "control"], "Return", lazy.spawn("rofi -show drun -icon-theme 'Papirus' -show-icons"), desc="Launch Rofi"),
|
||||||
Key([mod], "b", lazy.spawn(browser), desc="Launch Chromium"),
|
Key([mod], "b", lazy.spawn(browser), desc="Launch Browser"),
|
||||||
|
Key([mod, "control"], "b", lazy.spawn(home + "/dotfiles/scripts/bravebookmarks.sh"), desc="Rofi Brave Bookmarks"),
|
||||||
Key([mod], "v", lazy.spawn(home + "/dotfiles/scripts/looking-glass.sh"), desc="Start Looking Glass Client"),
|
Key([mod], "v", lazy.spawn(home + "/dotfiles/scripts/looking-glass.sh"), desc="Start Looking Glass Client"),
|
||||||
Key([mod, "shift"], "w", lazy.spawn(home + "/dotfiles/scripts/updatewal.sh"), desc="Update Theme and Wallpaper"),
|
Key([mod, "shift"], "w", lazy.spawn(home + "/dotfiles/scripts/updatewal.sh"), desc="Update Theme and Wallpaper"),
|
||||||
Key([mod, "control"], "w", lazy.spawn(home + "/dotfiles/scripts/wallpaper.sh"), desc="Select Theme and Wallpaper"),
|
Key([mod, "control"], "w", lazy.spawn(home + "/dotfiles/scripts/wallpaper.sh"), desc="Select Theme and Wallpaper"),
|
||||||
|
15
scripts/bravebookmarks.sh
Executable file
15
scripts/bravebookmarks.sh
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
#!/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
|
Loading…
Reference in New Issue
Block a user