diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-06-10 19:17:30 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-06-10 19:17:30 +0200 |
commit | 9ddc020b330b6b41ad0e57f7a7395a07efa5332d (patch) | |
tree | b1ae503e4ad57d8eff53a86ef47c611dbc0a0e2c | |
parent | 98aea7c88bd0b2042bd520b270314b06c1d4adc1 (diff) |
rc: scale the panel width with screen DPI
-rw-r--r-- | rc.lua | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |