From 9ddc020b330b6b41ad0e57f7a7395a07efa5332d Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 10 Jun 2021 19:17:30 +0200 Subject: rc: scale the panel width with screen DPI --- rc.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rc.lua b/rc.lua index c71df5d..7da589a 100644 --- a/rc.lua +++ b/rc.lua @@ -74,6 +74,8 @@ mypromptbox = {} local wsp = workspace.Workspace:new(layouts) for s in screen do + local panel_width = beautiful.xresources.apply_dpi(128, s) + wsp:view(s, s.index, 1) -- Create a promptbox for each screen @@ -114,7 +116,7 @@ for s in screen do layout:set_bottom(layout_bottom) -- Create the wibox - mywibox[s] = awful.wibar({ position = "right", screen = s, width = 128 }) + mywibox[s] = awful.wibar({ position = "right", screen = s, width = panel_width }) mywibox[s]:set_widget(layout) end -- cgit v1.2.3