use screen resolution

This commit is contained in:
streetturtle 2020-04-28 20:46:06 -04:00
parent 7688de1642
commit 007e50d01c
1 changed files with 7 additions and 3 deletions

View File

@ -30,10 +30,14 @@ function widget.new()
local w = wibox {
visible = false,
ontop = true,
height = 1060,
width = 1920,
height = mouse.screen.geometry.height,
width = mouse.screen.geometry.width,
opacity = 0.9,
bg = 'radial:960,540,20:960,540,700:0,#00000022:0.2,#33333388:1,#000000ff'
bg = 'radial:'.. mouse.screen.geometry.width/2 .. ','
.. mouse.screen.geometry.height/2 .. ',20:'
.. mouse.screen.geometry.width/2 .. ','
.. mouse.screen.geometry.height/2
.. ',700:0,#2E344022:0.2,#4C566A88:1,#2E3440ff'
}
local suspend_button = wibox.widget {