add a simple launcher for brave
This commit is contained in:
parent
8860a7a4d9
commit
dd5307d47b
|
@ -15,6 +15,10 @@ super + d
|
|||
ctrl + b; d
|
||||
tmenu_run
|
||||
|
||||
# launch brave with profile selection
|
||||
super + b
|
||||
brave-launcher
|
||||
|
||||
# kill sxhkd with USR1 and restart bspwm
|
||||
super + r
|
||||
pkill -USR1 -x sxhkd; \
|
||||
|
@ -94,7 +98,7 @@ shift + Insert
|
|||
special_ins
|
||||
|
||||
# phone specific -- send the escape key since we can't use it
|
||||
super + b; [
|
||||
ctrl + b; [
|
||||
xdotool key Escape
|
||||
|
||||
# mouse keybindings on the keypad
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
profiles=$(ls ~/.config/BraveSoftware/Brave-Browser/ | grep Profile)
|
||||
choices=""
|
||||
|
||||
IFS="
|
||||
"
|
||||
for profile in $profiles; do
|
||||
name_of_profile=$(cat ~/.config/BraveSoftware/Brave-Browser/$profile/Preferences | jq .profile.name -r)
|
||||
choices=$(printf "%s:%s|%s" "$name_of_profile" "$profile" "$choices")
|
||||
done
|
||||
|
||||
choice=$(echo $choices | sed 's/|/\n/g' | tmenu)
|
||||
profile_name=$(echo $choice | awk -F':' '{print $2}')
|
||||
brave --profile-directory="$profile_name" & disown
|
Loading…
Reference in New Issue