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

@ -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
},
{
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.background,
forced_width = s.geometry.width,
forced_height = style.lockscreen_bar_height or 25,
bg = style.lockscreen_bar_bg or
style.lockscreen_bg_normal
},
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
{
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 {