From 398b1a4b398324311b6e0f15d2e4ede5ad8500ff Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Fri, 2 May 2025 12:04:43 +0530 Subject: Prefix uv with web.uv + add permissions_persistance config option --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 031af8f..ddf87d8 100644 --- a/init.lua +++ b/init.lua @@ -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 -- cgit v1.3.1