Browse Source

Made the lock screen a little bit prettier

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

42
widgets/lock.lua

@ -58,10 +58,14 @@ return function(args)
end
s.lockscreen = awful.popup({
widget = {
{
-- Bottom layer
{
{
--Top bar
{
{
-- Top bar contents
{
markup = "AwesomewWM",
widget = wibox.widget.textbox
@ -70,22 +74,54 @@ return function(args)
widget = wibox.container.background
},
{
require("widgets.battery")({percentage = true}),
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
bg = style.lockscreen_bar_bg or
style.lockscreen_bg_normal
},
{
--Drop shadow
{
markup = "",
widget = wibox.widget.textbox,
},
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" }
}
}
},
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