forgot to add those files

This commit is contained in:
Rene Kievits
2022-06-01 09:43:19 +02:00
parent ed9043c4ee
commit da2d55e149
2 changed files with 12 additions and 4 deletions

View File

@@ -4,6 +4,12 @@
-- Awesome Libs -- Awesome Libs
local naughty = require("naughty") local naughty = require("naughty")
if awesome.startup_errors then
naughty.notify({ preset = naughty.config.presets.critical,
title = "Oops, there were errors during startup!",
text = awesome.startup_errors })
end
do do
local in_error = false local in_error = false
awesome.connect_signal( awesome.connect_signal(

View File

@@ -192,7 +192,7 @@ return function(s)
{ {
{ -- Album art { -- Album art
{ {
image = "default image", image = icondir .. "spotify.svg",
resize = true, resize = true,
clip_shape = function(cr, width, height) clip_shape = function(cr, width, height)
gears.shape.rounded_rect(cr, width, height, dpi(8)) gears.shape.rounded_rect(cr, width, height, dpi(8))
@@ -211,6 +211,7 @@ return function(s)
{ {
{ {
{ --Title { --Title
markup = "Title",
halign = "center", halign = "center",
align = "center", align = "center",
widget = wibox.widget.textbox, widget = wibox.widget.textbox,
@@ -233,6 +234,7 @@ return function(s)
{ {
{ {
{ --Artist { --Artist
markup = "Artist",
halign = "center", halign = "center",
align = "center", align = "center",
widget = wibox.widget.textbox, widget = wibox.widget.textbox,
@@ -302,7 +304,7 @@ return function(s)
color = color["Purple200"], color = color["Purple200"],
background_color = color["Grey800"], background_color = color["Grey800"],
max_value = 100, max_value = 100,
value = 50, value = 0,
forced_height = dpi(5), forced_height = dpi(5),
shape = function(cr, width) shape = function(cr, width)
gears.shape.rounded_bar(cr, width, dpi(5)) gears.shape.rounded_bar(cr, width, dpi(5))
@@ -378,7 +380,7 @@ return function(s)
function(stdout2) function(stdout2)
local tit = stdout2:gsub("\n", "") local tit = stdout2:gsub("\n", "")
title = tit title = tit
music_widget:get_children_by_id("textbox4")[1].text = tit music_widget:get_children_by_id("textbox4")[1].text = tit or "Title"
end end
) )
@@ -388,7 +390,7 @@ return function(s)
function(stdout2) function(stdout2)
local art = stdout2:gsub("\n", "") local art = stdout2:gsub("\n", "")
artist = art artist = art
music_widget:get_children_by_id("textbox3")[1].text = art music_widget:get_children_by_id("textbox3")[1].text = art or "Artist"
end end
) )