From a69682b2404ae05499b50334da7d3345fba5b1d1 Mon Sep 17 00:00:00 2001 From: Artem Tarasov Date: Thu, 23 May 2024 08:04:51 +0200 Subject: [PATCH] use more standard progressbar direction --- mpris-widget/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mpris-widget/init.lua b/mpris-widget/init.lua index 1bd4a5f..f590b18 100644 --- a/mpris-widget/init.lua +++ b/mpris-widget/init.lua @@ -209,7 +209,7 @@ local function worker(user_args) forced_height = 24, forced_width = 24, rounded_edge = true, - bg = "#ffffff11", + colors = {"#ffffff11", "black"}, paddings = 2, } @@ -256,7 +256,7 @@ local function worker(user_args) s = s .. "\n" .. meta.current_song .. " (" .. duration(meta.position) .. "/" .. duration(meta.length) .. ")" metadata_widget:set_text(s) - progress_widget.value = meta.progress + progress_widget.values = {1.0 - meta.progress, meta.progress} -- poor man's urldecode local art_url = meta.art_url:gsub("file://", "/")