From a9e8f53b5b4bc639adc8c024312a6e66a2603810 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Thu, 25 Aug 2022 16:25:43 +1000 Subject: [PATCH] actually works now, maybe --- init.lua | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/init.lua b/init.lua index fad475c..5717531 100644 --- a/init.lua +++ b/init.lua @@ -4,6 +4,7 @@ local wibox = require("wibox") local switcherpopup = require("awesome-switcherpopup") local launcherpopup = require("awesome-launcherpopup") local longpress = require("awesome-longpress") +local vkbd = require("vkbd") local navbar = { iconSize = 96, @@ -41,18 +42,15 @@ function navbar.new(s) end) local rnavbar = awful.wibar({ + position = landscape and "left" or "bottom", + height = (portrait and 96) or nil, + width = (landscape and 96) or nil, ontop = true, screen = s }) - function rnavbar.reflow() - rnavbar.position = landscape and "left" or "bottom" - rnavbar.height = (portrait and navbar.iconSize) or nil - rnavbar.width = (landscape and navbar.iconSize) or nil - rnavbar:setup({ - layout = landscape and wibox.layout.ratio.vertical or wibox.layout.ratio.horizontal, launcher_button, switcher_button, kb_button - }) - end - rnavbar.reflow() + rnavbar:setup({ + layout = landscape and wibox.layout.ratio.vertical or wibox.layout.ratio.horizontal, launcher_button, switcher_button, kb_button + }) s.keyboard = awful.wibar({ height = s.geometry.height * 0.25, @@ -64,6 +62,7 @@ function navbar.new(s) }) vkbd.spacing = 1 + vkbd.init("ansi") s.keyboard:setup ({ layout = wibox.layout.ratio.horizontal, vkbd