From 2c7d36b4aa53ffa638a7aa7046767f10e7a152bf Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Fri, 25 Jul 2025 18:56:49 +0530 Subject: Expose decorations enable/disable lua api --- init.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'init.lua') 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', 'gg', function() + web.decorations.top.enable() + web.decorations.bottom.enable() +end) + +web.keymap.set('n', 'gt', function() + web.decorations.top.disable() + web.decorations.bottom.disable() +end) + print('ending...') -- cgit v1.3.1