From 8db391ce6ca07ec78780c782a204abee357d73d0 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Mon, 10 Feb 2025 08:24:09 +0900 Subject: modified qutebrowser/config.py, modified bin/bookmarks, created greasemonkey/, created bin/umpv --- ar/.local/bin/bookmarks | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ar/.local/bin/bookmarks') 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*) -- cgit v1.2.3