aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-08-17 16:17:13 +0530
committerAkshay Nair <phenax5@gmail.com>2025-08-17 16:17:13 +0530
commitb2fb7cd3d765bda9c8bb7fdee93ce7494f30cc10 (patch)
tree6660fc758d9773f99bcd38668604e2ee8de5eda3 /init.lua
parent98f3281256e6ff435c67d83c6895fff5841b70be (diff)
downloadnull-browser-b2fb7cd3d765bda9c8bb7fdee93ce7494f30cc10.tar.gz
null-browser-b2fb7cd3d765bda9c8bb7fdee93ce7494f30cc10.zip
Update internal api options
Diffstat (limited to '')
-rw-r--r--init.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/init.lua b/init.lua
index b0f4f5f..7b38ece 100644
--- a/init.lua
+++ b/init.lua
@@ -1,6 +1,6 @@
print('hello starting up...')
-web.opts.downloads_dir = os.getenv('HOME') .. '/Downloads/firefox'
+web.opts.downloads_dir = os.getenv('HOME') .. '/Downloads'
web.opts.permissions_persistance = 'never'
web.opts.user_agent =
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36'
@@ -11,7 +11,7 @@ local history = require 'null-browser.extras.history'
history.attach_hooks()
local search_engines = require 'null-browser.extras.search-engines'
-search_engines.urls['ld'] = 'https://lite.duckduckgo.com/?q={}'
+search_engines.urls['ld'] = 'https://lite.duckduckgo.com/lite/?q={}'
search_engines.urls['g'] = 'https://github.com/{}'
search_engines.urls['y'] = 'https://youtube.com/results?search_query={}'
search_engines.urls['r'] = 'https://reddit.com/r/{}'
@@ -21,7 +21,7 @@ local menu = Dmenu:new {
select_last_line = false,
args = { '-r' },
transform_output = function(selections)
- if type(selections) ~= "table" then return selections end
+ if type(selections) ~= 'table' then return selections end
if #selections <= 1 then return selections[1] end
return selections[#selections - 1]
end,
@@ -31,7 +31,7 @@ local menu = Dmenu:new {
-- args = { 'input', '--layout=default', '--print-query' },
}
-require 'null-browser.defaults.vi'.setup {
+require 'null-browser.defaults.vi'.configure {
menu = menu,
history = history,
transform_url_input = search_engines.transform_url_input,