aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-07-25 18:56:49 +0530
committerAkshay Nair <phenax5@gmail.com>2025-07-25 18:56:49 +0530
commit2c7d36b4aa53ffa638a7aa7046767f10e7a152bf (patch)
tree679c34d6566f5a774bcd5f979af755cf3cfeac4f /init.lua
parent51be15cd7c9f39276f27d416356744041e62c22c (diff)
downloadnull-browser-2c7d36b4aa53ffa638a7aa7046767f10e7a152bf.tar.gz
null-browser-2c7d36b4aa53ffa638a7aa7046767f10e7a152bf.zip
Expose decorations enable/disable lua api
Diffstat (limited to '')
-rw-r--r--init.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index bd73189..ffbff29 100644
--- a/init.lua
+++ b/init.lua
@@ -61,4 +61,18 @@ web.event.add_listener('NotificationReceived', {
end,
})
+-- EVENT for window creation for setting up decorations
+-- web.decorations.top.enable()
+-- web.decorations.bottom.enable()
+
+web.keymap.set('n', '<space>gg', function()
+ web.decorations.top.enable()
+ web.decorations.bottom.enable()
+end)
+
+web.keymap.set('n', '<space>gt', function()
+ web.decorations.top.disable()
+ web.decorations.bottom.disable()
+end)
+
print('ending...')