diff --git a/.bashrc b/.bashrc index 630eb3e..e51b675 100644 --- a/.bashrc +++ b/.bashrc @@ -36,6 +36,7 @@ alias shot='scrot -d 3 -c -z -u' alias shotsel='scrot -s' alias nf='neofetch' alias pf='pfetch' +alias wifi='nmtui' # GIT alias gs="git status" diff --git a/polybar/config.ini b/polybar/config.ini index 1e2fbb3..7e84c05 100644 --- a/polybar/config.ini +++ b/polybar/config.ini @@ -42,7 +42,7 @@ enable-ipc = true [module/mymenu] type = custom/text content-foreground = ${colors.primary} -content = " " +content = " " click-left = "rofi -show drun -icon-theme 'Papirus' -show-icons" [module/myexit] diff --git a/qtile/config.py b/qtile/config.py index b2ea844..f573bb4 100644 --- a/qtile/config.py +++ b/qtile/config.py @@ -134,7 +134,8 @@ keys = [ # Apps 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], "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, "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"), diff --git a/scripts/bravebookmarks.sh b/scripts/bravebookmarks.sh new file mode 100755 index 0000000..1784c39 --- /dev/null +++ b/scripts/bravebookmarks.sh @@ -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