summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-06-10 19:17:30 +0200
committerAnton Khirnov <anton@khirnov.net>2021-06-10 19:17:30 +0200
commit9ddc020b330b6b41ad0e57f7a7395a07efa5332d (patch)
treeb1ae503e4ad57d8eff53a86ef47c611dbc0a0e2c
parent98aea7c88bd0b2042bd520b270314b06c1d4adc1 (diff)
rc: scale the panel width with screen DPI
-rw-r--r--rc.lua4
1 files changed, 3 insertions, 1 deletions
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