Made the lock screen a little bit prettier

This commit is contained in:
Yessiest 2022-04-18 13:02:01 +04:00
parent dcfcc459a1
commit 768e6d49d3
1 changed files with 54 additions and 18 deletions

View File

@ -58,10 +58,14 @@ return function(args)
end end
s.lockscreen = awful.popup({ s.lockscreen = awful.popup({
widget = { widget = {
{
-- Bottom layer
{
{ {
--Top bar --Top bar
{ {
{ {
-- Top bar contents
{ {
markup = "AwesomewWM", markup = "AwesomewWM",
widget = wibox.widget.textbox widget = wibox.widget.textbox
@ -70,22 +74,54 @@ return function(args)
widget = wibox.container.background widget = wibox.container.background
}, },
{ {
require("widgets.battery")({percentage = true}), require("widgets.battery")({
percentage = true
}),
wibox.widget.textclock(), wibox.widget.textclock(),
widget = wibox.container.background, widget = wibox.container.background,
layout = wibox.layout.fixed.horizontal layout = wibox.layout.fixed.horizontal
}, },
layout = wibox.layout.align.horizontal, layout = wibox.layout.align.horizontal,
}, },
widget = wibox.container.margin,
left = 5,
right = 5
},
widget = wibox.container.background, widget = wibox.container.background,
forced_width = s.geometry.width, forced_width = s.geometry.width,
forced_height = style.lockscreen_bar_height or 25, 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, widget = wibox.container.place,
valign = "top", valign = "top",
halign = "center" halign = "center"
},{ },
{
--Combo box (face, nickname, password entry) --Combo box (face, nickname, password entry)
style.container({ style.container({
(read("./.face") and style.container { (read("./.face") and style.container {