Browse Source

Made the lock screen a little bit prettier

master
Yessiest 2 years ago
parent
commit
768e6d49d3
  1. 68
      widgets/lock.lua

68
widgets/lock.lua

@ -59,33 +59,69 @@ return function(args)
s.lockscreen = awful.popup({
widget = {
{
--Top bar
-- Bottom layer
{
{
--Top bar
{
markup = "AwesomewWM",
widget = wibox.widget.textbox
},
{
widget = wibox.container.background
{
-- Top bar contents
{
markup = "AwesomewWM",
widget = wibox.widget.textbox
},
{
widget = wibox.container.background
},
{
require("widgets.battery")({
percentage = true
}),
wibox.widget.textclock(),
widget = wibox.container.background,
layout = wibox.layout.fixed.horizontal
},
layout = wibox.layout.align.horizontal,
},
widget = wibox.container.margin,
left = 5,
right = 5
},
widget = wibox.container.background,
forced_width = s.geometry.width,
forced_height = style.lockscreen_bar_height or 25,
bg = style.lockscreen_bar_bg or
style.lockscreen_bg_normal
},
{
--Drop shadow
{
require("widgets.battery")({percentage = true}),
wibox.widget.textclock(),
widget = wibox.container.background,
layout = wibox.layout.fixed.horizontal
markup = "",
widget = wibox.widget.textbox,
},
layout = wibox.layout.align.horizontal,
widget = wibox.container.background,
forced_height = style.lockscreen_bar_shadow or 5,
forced_width = s.geometry.width,
bg = {
-- Gradient
type = "linear",
from = { 0, 0 },
to = { 0, style.lockscreen_bar_shadow or 5},
stops = {
{ 0, style.lockscreen_bar_shadow_color_start or
"#00000055" },
{ 1, style.lockscreen_bar_shadow_color_end or
"#00000000" }
}
}
},
widget = wibox.container.background,
forced_width = s.geometry.width,
forced_height = style.lockscreen_bar_height or 25,
bg = style.lockscreen_bar_bg or style.lockscreen_bg_normal
layout = wibox.layout.fixed.vertical
},
widget = wibox.container.place,
valign = "top",
halign = "center"
},{
},
{
--Combo box (face, nickname, password entry)
style.container({
(read("./.face") and style.container {

Loading…
Cancel
Save