♻️ refactor(awesome): Update align -> halign

This commit is contained in:
punkfairie 2024-03-06 18:07:56 -08:00
parent 7affc5e381
commit 4dd8aa0d58
Signed by: punkfairie
GPG key ID: A86AF57F837E320F
14 changed files with 27 additions and 27 deletions

View file

@ -50,7 +50,7 @@ local create_button = function(symbol, hover_color, _, command)
local icon = wibox.widget({
forced_height = button_size,
forced_width = button_size,
align = "center",
halign = "center",
valign = "center",
font = icon_font,
markup = helpers.ui.colorize_text(symbol, theme.color.surface0),

View file

@ -13,19 +13,19 @@ local dpi = beautiful.xresources.apply_dpi
-- Song's Title
local title = wibox.widget.textbox()
title.font = helpers.ui.set_font("Medium 16")
title.align = "left"
title.halign = "left"
title.valign = "bottom"
-- Song's Artist
local artist = wibox.widget.textbox()
artist.font = helpers.ui.set_font("Regular 16")
artist.align = "left"
artist.halign = "left"
artist.valign = "bottom"
-- Song's Length
local length = wibox.widget.textbox()
length.font = helpers.ui.set_font("Regular 14")
length.align = "center"
length.halign = "center"
length.valign = "center"
-- Player's Button

View file

@ -27,13 +27,13 @@ pfp.forced_height = dpi(130)
-- User
local user = wibox.widget.textbox()
user.font = helpers.ui.set_font("SemiBold 18")
user.align = "left"
user.halign = "left"
user.markup = helpers.ui.colorize_text(os_user, theme.fg_normal)
-- Hostname
local hostname = wibox.widget.textbox()
hostname.font = helpers.ui.set_font("Regular 14")
hostname.align = "left"
hostname.halign = "left"
awful.spawn.easy_async_with_shell("hostnamectl --static", function(stdout)
hostname.markup = helpers.ui.colorize_text("@" .. tostring(stdout), theme.color.lavender)
@ -42,7 +42,7 @@ end)
-- Battery
local uptimeosd = wibox.widget.textbox()
uptimeosd.font = helpers.ui.set_font("12")
uptimeosd.align = "center"
uptimeosd.halign = "center"
-- Get data 4 widgets!
awesome.connect_signal("signal::uptime", function(uptime)
@ -55,7 +55,7 @@ local shutdown = wibox.widget({
{
font = helpers.ui.set_font("30"),
markup = helpers.ui.colorize_text(config.icons.power, theme.color.red),
align = "center",
halign = "center",
valign = "center",
widget = wibox.widget.textbox,
},
@ -75,7 +75,7 @@ local reboot = wibox.widget({
{
font = helpers.ui.set_font("30"),
markup = helpers.ui.colorize_text(config.icons.restart, theme.color.blue),
align = "center",
halign = "center",
valign = "center",
widget = wibox.widget.textbox,
},

View file

@ -73,7 +73,7 @@ local current_weather_widget = wibox.widget({
{
id = "temp_current",
markup = "20<sup><span>°</span></sup>",
align = "right",
halign = "right",
font = helpers.ui.set_font("Bold 16"),
widget = wibox.widget.textbox,
},
@ -154,7 +154,7 @@ local weather_widget = wibox.widget({
{
text = "Weather",
font = helpers.ui.set_font("Bold 16"),
align = "center",
halign = "center",
widget = wibox.widget.textbox,
},
current_weather_widget,

View file

@ -19,7 +19,7 @@ local notifs_text = wibox.widget({
local notifs_clear = wibox.widget({
markup = helpers.ui.colorize_text("", theme.color.red),
font = helpers.ui.set_font("Bold 21"),
align = "center",
halign = "center",
valign = "center",
widget = wibox.widget.textbox,
})
@ -38,7 +38,7 @@ local notifs_empty = wibox.widget({
{
markup = helpers.ui.colorize_text("Nothing Here!", theme.color.subtext1),
font = helpers.ui.set_font("Bold 17"),
align = "center",
halign = "center",
valign = "center",
widget = wibox.widget.textbox,
},
@ -119,7 +119,7 @@ local create_notif = function(icon, n)
{
markup = n.title,
font = helpers.ui.set_font("Bold 9"),
align = "left",
halign = "left",
widget = wibox.widget.textbox,
},
forced_width = dpi(140),
@ -128,7 +128,7 @@ local create_notif = function(icon, n)
nil,
{
markup = helpers.ui.colorize_text(time, theme.color.subtext1),
align = "right",
halign = "right",
valign = "bottom",
font = helpers.ui.set_font("Bold 10"),
widget = wibox.widget.textbox,
@ -141,7 +141,7 @@ local create_notif = function(icon, n)
speed = dpi(50),
{
markup = n.message,
align = "left",
halign = "left",
widget = wibox.widget.textbox,
},
forced_width = dpi(165),

View file

@ -25,7 +25,7 @@ local bri_slider = wibox.widget({
{
markup = helpers.ui.colorize_text("󰃞 ", theme.color.yellow),
font = helpers.ui.set_font("14"),
align = "center",
halign = "center",
valign = "center",
widget = wibox.widget.textbox(),
},

View file

@ -31,7 +31,7 @@ local osd_value = wibox.widget({
local icon = wibox.widget({
markup = helpers.ui.colorize_text("󰍬", theme.color.blue),
font = helpers.ui.set_font("14"),
align = "center",
halign = "center",
valign = "center",
widget = wibox.widget.textbox(),
})

View file

@ -28,7 +28,7 @@ local osd_value = wibox.widget({
local icon = wibox.widget({
markup = helpers.ui.colorize_text("󰕾 ", theme.color.blue),
font = helpers.ui.set_font("14"),
align = "center",
halign = "center",
valign = "center",
widget = wibox.widget.textbox(),
})

View file

@ -75,7 +75,7 @@ naughty.connect_signal("request::display", function(n)
{
font = helpers.ui.set_font("Round 13"),
markup = helpers.ui.colorize_text(app_icon, theme.color.base),
align = "center",
halign = "center",
valign = "center",
widget = wibox.widget.textbox,
},
@ -135,7 +135,7 @@ naughty.connect_signal("request::display", function(n)
markup = helpers.ui.colorize_text("", theme.color.blue),
widget = wibox.widget.textbox,
valign = "center",
align = "center",
halign = "center",
},
margins = dpi(4),
widget = wibox.container.margin,

View file

@ -27,7 +27,7 @@ local icon3 = icon.icon2
local osd_header = wibox.widget({
text = "Volume",
font = helpers.ui.set_font("Bold 12"),
align = "left",
halign = "left",
valign = "center",
widget = wibox.widget.textbox,
})
@ -35,7 +35,7 @@ local osd_header = wibox.widget({
local osd_value = wibox.widget({
text = "0%",
font = helpers.ui.set_font("Bold 12"),
align = "center",
halign = "center",
valign = "center",
widget = wibox.widget.textbox,
})

View file

@ -12,7 +12,7 @@ local icon = helpers.create_icon(config.icons.cpu, theme.color.maroon)
-- Uptime
local cpu = wibox.widget.textbox()
cpu.font = helpers.set_font("10")
cpu.align = "center"
cpu.halign = "center"
local function get_val()
awesome.connect_signal("signal::cpu", function(cpu_perc)

View file

@ -12,7 +12,7 @@ local icon = helpers.create_icon(config.icons.disk, theme.color.yellow)
-- Uptime
local disk = wibox.widget.textbox()
disk.font = helpers.set_font("10")
disk.align = "center"
disk.halign = "center"
local function get_val()
awesome.connect_signal("signal::disk", function(disk_perc)

View file

@ -12,7 +12,7 @@ local icon = helpers.create_icon(config.icons.mem, theme.color.green)
-- Uptime
local mem = wibox.widget.textbox()
mem.font = helpers.set_font("10")
mem.align = "center"
mem.halign = "center"
local function get_val()
awesome.connect_signal("signal::mem", function(mem_perc)

View file

@ -13,7 +13,7 @@ local icon = helpers.ui.create_icon(config.icons.vol.on, theme.color.blue)
-- Uptime
local pulseaudio = wibox.widget.textbox()
pulseaudio.font = helpers.ui.set_font("10")
pulseaudio.align = "center"
pulseaudio.halign = "center"
local function get_val()
awesome.connect_signal("signal::volume", function(vol, muted)