diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-05-02 12:04:43 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-05-02 16:24:38 +0530 |
| commit | 398b1a4b398324311b6e0f15d2e4ede5ad8500ff (patch) | |
| tree | 4af9a1b5106dc30d22adc0a4391b5ac006dd7141 /init.lua | |
| parent | 8a71de53c002b7afdd516cff7190896d40496483 (diff) | |
| download | null-browser-398b1a4b398324311b6e0f15d2e4ede5ad8500ff.tar.gz null-browser-398b1a4b398324311b6e0f15d2e4ede5ad8500ff.zip | |
Prefix uv with web.uv + add permissions_persistance config option
Diffstat (limited to 'init.lua')
| -rw-r--r-- | init.lua | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -20,6 +20,7 @@ require 'null-browser.defaults.vi'.setup { transform_url_input = search_engines.transform_url_input, } +-- web.set('permissions_persistance', 'never') web.event.add_listener('PermissionRequested', { callback = function(event) dmenu.select({ 'Allow', 'Deny' }, { prompt = 'Requesting permission for ' .. event.permission_type }, @@ -38,7 +39,7 @@ 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) + web.uv.spawn('notify-send', { args = args }, function(code) if code ~= 0 then print('[notify-send] Exit with status code: ' .. code) end |
