summaryrefslogtreecommitdiff
path: root/ar/.local/bin/bookmarks
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-10 08:24:09 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-10 08:24:09 +0900
commit8db391ce6ca07ec78780c782a204abee357d73d0 (patch)
tree97df2788261b86c9e2cb1bb45116ebc51c55af71 /ar/.local/bin/bookmarks
parent9a1d363908228a4d9fffec191aff106598a6ac27 (diff)
modified qutebrowser/config.py, modified bin/bookmarks, created greasemonkey/, created bin/umpv
Diffstat (limited to 'ar/.local/bin/bookmarks')
-rwxr-xr-xar/.local/bin/bookmarks7
1 files changed, 4 insertions, 3 deletions
diff --git a/ar/.local/bin/bookmarks b/ar/.local/bin/bookmarks
index 306f47d..c365095 100755
--- a/ar/.local/bin/bookmarks
+++ b/ar/.local/bin/bookmarks
@@ -75,19 +75,19 @@ openwindow() {
openinbrowser() {
# Extract only the default part of the profile name
case $BROWSER in
- firefox)
+ *firefox*)
profiles_ini_path="$HOME/.mozilla/firefox/profiles.ini"
profile=$(awk '/\[Install/ {found=1} found && /^Default=/ {split($0, arr, "."); print arr[2]; exit}' "$profiles_ini_path")
profile_dir=$(find ~/.mozilla/firefox -type d -name "*.$profile*" | head -n 1)
db_path="$profile_dir/places.sqlite"
;;
- librewolf)
+ *librewolf*)
profiles_ini_path="$HOME/.librewolf/profiles.ini"
profile=$(awk '/\[Install/ {found=1} found && /^Default=/ {split($0, arr, "."); print arr[2]; exit}' "$profiles_ini_path")
profile_dir=$(find ~/.librewolf -type d -name "*.$profile*" | head -n 1)
db_path="$profile_dir/places.sqlite"
;;
- qutebrowser)
+ *qutebrowser*)
profile_dir="${XDG_DATA_HOME:-${HOME}/.local/share}/qutebrowser"
db_path="$profile_dir/history.sqlite"
;;
@@ -115,6 +115,7 @@ openinbrowser() {
ORDER BY b.title;
"
;;
+ *qutebrowser*) geturls && openwindow && exit ;;
esac
;;
*history*)