Add Brave Bookmarks script

This commit is contained in:
Stephan Raabe 2023-04-04 16:38:59 +02:00
parent 56bb277e07
commit 3c27da2b1e
4 changed files with 19 additions and 2 deletions

View File

@ -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"

View File

@ -42,7 +42,7 @@ enable-ipc = true
[module/mymenu] [module/mymenu]
type = custom/text type = custom/text
content-foreground = ${colors.primary} content-foreground = ${colors.primary}
content = " " content = " "
click-left = "rofi -show drun -icon-theme 'Papirus' -show-icons" click-left = "rofi -show drun -icon-theme 'Papirus' -show-icons"
[module/myexit] [module/myexit]

View File

@ -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
View 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