From 96b77e2029a67aeef9faac9cbcb2a00f75026540 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sat, 20 Apr 2019 16:08:15 +0200 Subject: Update config --- rofi/firefoxhistory.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rofi/firefoxhistory.sh') diff --git a/rofi/firefoxhistory.sh b/rofi/firefoxhistory.sh index 6836fd2..b108e57 100755 --- a/rofi/firefoxhistory.sh +++ b/rofi/firefoxhistory.sh @@ -1,9 +1,10 @@ #!/bin/sh +DB_FILE=~/.mozilla/firefox/qoh6qw4f.default/places.sqlite if [ -z $1 ]; then - sqlite3 ~/.mozilla/firefox/3n77lp68.default/places.sqlite 'SELECT url from moz_places order by frecency desc' | grep -vE "google.com/search|google.com/url|duckduckgo" + sqlite3 "${DB_FILE}" 'SELECT url from moz_places order by frecency desc' | grep -vE "q=|place:|moz-extension" exit 0 else - i3-msg "exec firejail firefox --new-tab \"$*\"" > /dev/null + i3-msg "exec firefox --new-tab \"$*\"" > /dev/null exit 1 fi -- cgit v1.2.3