X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/ddbf283f0ebbc6772d485fe76c5dccf338d3b837..33223f2816470636c45b280c77b9da57d5fb9d4b:/widgets/contrib/gpmdp.lua?ds=inline diff --git a/widgets/contrib/gpmdp.lua b/widgets/contrib/gpmdp.lua index 37da43d..94076c8 100644 --- a/widgets/contrib/gpmdp.lua +++ b/widgets/contrib/gpmdp.lua @@ -19,7 +19,7 @@ local setmetatable = setmetatable -- Google Play Music Desktop infos -- lain.widget.contrib.gpmdp -local gpmdp = helpers.make_widget_textbox() +local gpmdp = {} local function worker(args) local args = args or {} @@ -30,6 +30,8 @@ local function worker(args) os.getenv("HOME") .. "/.config/Google Play Music Desktop Player/json_store/playback.json" local settings = args.settings or function() end + gpmdp.widget = wibox.widget.textbox() + gpmdp_notification_preset = { title = "Now playing", timeout = 6