diff options
Diffstat (limited to '')
| -rw-r--r-- | init.lua | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1,14 +1,15 @@ print('hello starting up...') -web.set('new_view_url', 'https://lite.duckduckgo.com') -web.set('close_window_when_no_views', true) --- web.set('user_agent', 'MacOS | Safari - $500 edition') -web.set('downloads_dir', os.getenv('HOME') .. '/Downloads/firefox') - local dmenu = require 'null-browser.extras.dmenu' local history = require 'null-browser.extras.history' local search_engines = require 'null-browser.extras.search-engines' +web.set('new_view_url', 'https://lite.duckduckgo.com') +web.set('close_window_when_no_views', true) +web.set('user_agent', + 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36') +web.set('downloads_dir', os.getenv('HOME') .. '/Downloads/firefox') + history.attach_hooks() search_engines.urls['ld'] = 'https://lite.duckduckgo.com/?q={}' @@ -35,6 +36,7 @@ web.event.add_listener('PermissionRequested', { web.event.add_listener('NotificationReceived', { callback = function(event) + -- TODO: Add action/click (-A) local args = { '-a', 'null-browser', '-r', event.tag, event.title, event.message } uv.spawn('notify-send', { args = args }, function(code) if code ~= 0 then |
