diff options
author | Sébastien Dailly <sebastien@chimrod.com> | 2019-04-20 16:08:15 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@chimrod.com> | 2019-04-20 16:08:15 +0200 |
commit | 96b77e2029a67aeef9faac9cbcb2a00f75026540 (patch) | |
tree | aec4888e248a7a55a6d7f9a403023445b05aa082 /rofi | |
parent | c4993a80baec31f0784f66e1e20f208b9ee1fc22 (diff) |
Update config
Diffstat (limited to 'rofi')
-rwxr-xr-x | rofi/firefoxhistory.sh | 5 |
1 files changed, 3 insertions, 2 deletions
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 |