awesome: 9x bar icons

This commit is contained in:
Cynthia Foxwell 2022-12-22 18:48:40 -07:00
parent 16f54c424b
commit 7e3c217495
8 changed files with 23 additions and 21 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 365 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 358 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 686 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 358 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 643 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 B

View File

@ -81,7 +81,7 @@ local layout_buttons = gears.table.join(
end)
)
local function make_bar_icon(icon)
--[[local function make_bar_icon(icon)
local img = wibox.widget.imagebox(beautiful["bar_" .. icon], false)
img.forced_height = 18
img.forced_width = 18
@ -90,6 +90,18 @@ local function make_bar_icon(icon)
top = 1,
layout = wibox.container.margin,
}
end--]]
local function make_bar_icon(icon)
local img = wibox.widget.imagebox(vars.env.ICON_DIR .. "/bar/9x/" .. icon .. ".png", false)
img.forced_height = 16
img.forced_width = 16
return {
img,
top = 1,
left = 2,
right = 2,
layout = wibox.container.margin,
}
end
local function make_inset(child)
@ -236,6 +248,7 @@ local packages = wibox.widget.textbox()
local packages_wrapper = wibox.widget(status_box({
packages_icon,
packages,
spacing = 2,
layout = wibox.layout.fixed.horizontal,
}))
@ -272,6 +285,7 @@ local music = wibox.widget.textbox()
local music_wrapper = wibox.widget(status_box({
music_icon,
music,
spacing = 2,
layout = wibox.layout.fixed.horizontal,
}))
@ -441,30 +455,18 @@ awful.screen.connect_for_each_screen(function(s)
{
music_wrapper,
status_box({
{
cpu_icon,
cpu.widget,
layout = wibox.layout.fixed.horizontal,
},
{
cpu_temp_icon,
cpu_temp,
layout = wibox.layout.fixed.horizontal,
},
cpu_icon,
cpu.widget,
cpu_temp_icon,
cpu_temp,
spacing = 2,
layout = wibox.layout.fixed.horizontal,
}),
status_box({
{
gpu_icon,
gpu,
layout = wibox.layout.fixed.horizontal,
},
{
gpu_temp_icon,
gpu_temp,
layout = wibox.layout.fixed.horizontal,
},
gpu_icon,
gpu,
gpu_temp_icon,
gpu_temp,
spacing = 2,
layout = wibox.layout.fixed.horizontal,
}),