aboutsummaryrefslogtreecommitdiff
path: root/rofi
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2019-04-20 16:08:15 +0200
committerSébastien Dailly <sebastien@chimrod.com>2019-04-20 16:08:15 +0200
commit96b77e2029a67aeef9faac9cbcb2a00f75026540 (patch)
treeaec4888e248a7a55a6d7f9a403023445b05aa082 /rofi
parentc4993a80baec31f0784f66e1e20f208b9ee1fc22 (diff)
Update config
Diffstat (limited to 'rofi')
-rwxr-xr-xrofi/firefoxhistory.sh5
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