aboutsummaryrefslogtreecommitdiff
path: root/config.lua
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-04-12 19:35:54 +0530
committerAkshay Nair <phenax5@gmail.com>2025-04-12 21:04:16 +0530
commitbbe50215cbb9078ba457f93a5e90096e844c611a (patch)
tree0726730396510a2ea8cd18cee72afb5c7c1edc41 /config.lua
parentc8352009ceb6b9240ef7c1ad5be93f42312b59a2 (diff)
downloadnull-browser-bbe50215cbb9078ba457f93a5e90096e844c611a.tar.gz
null-browser-bbe50215cbb9078ba457f93a5e90096e844c611a.zip
Add user agent configuration
Diffstat (limited to '')
-rw-r--r--config.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.lua b/config.lua
index 165012d..e434ba9 100644
--- a/config.lua
+++ b/config.lua
@@ -16,6 +16,7 @@ end
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')
local dmenu = require 'null-browser.extras.dmenu'
local history = require 'null-browser.extras.history'
@@ -41,7 +42,7 @@ end
-- Open in new view
web.keymap.set('n', 'o', function()
- print(web.get('new_view_url'))
+ print(web.get('new_view_url'), web.get('user_agent'))
dmenu.select(history.list(), { prompt = 'Open view:' }, function(err, result)
if err or not result then return end
web.view.create(to_url(result))