Skip to content

Commit a69682b

Browse files
committed
use more standard progressbar direction
1 parent 5a1cef6 commit a69682b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mpris-widget/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ local function worker(user_args)
209209
forced_height = 24,
210210
forced_width = 24,
211211
rounded_edge = true,
212-
bg = "#ffffff11",
212+
colors = {"#ffffff11", "black"},
213213
paddings = 2,
214214
}
215215

@@ -256,7 +256,7 @@ local function worker(user_args)
256256
s = s .. "\n" .. meta.current_song .. " (" .. duration(meta.position) .. "/" .. duration(meta.length) .. ")"
257257
metadata_widget:set_text(s)
258258

259-
progress_widget.value = meta.progress
259+
progress_widget.values = {1.0 - meta.progress, meta.progress}
260260

261261
-- poor man's urldecode
262262
local art_url = meta.art_url:gsub("file://", "/")

0 commit comments

Comments
 (0)