From f7fc05f29805cbd80d3e9b1ff1b3950e0d706f93 Mon Sep 17 00:00:00 2001 From: Fyodor Kurlyuk <40423143+qrlk@users.noreply.github.com> Date: Tue, 17 Sep 2019 01:40:42 +0300 Subject: [PATCH] gpmdp.lua: simple fixes to make it work in 2019 (#147) --- recipes/gpmdp.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/gpmdp.lua b/recipes/gpmdp.lua index 4230f5b..55215b8 100644 --- a/recipes/gpmdp.lua +++ b/recipes/gpmdp.lua @@ -7,6 +7,7 @@ --]] local awful = require("awful") local naughty = require("naughty") +local dpi = require("beautiful.xresources").apply_dpi local io, next, os, string, table = io, next, os, string, table -- Google Play Music Desktop Player widget @@ -85,7 +86,7 @@ gpmdp.widget = awful.widget.watch({"pidof", "Google Play Music Desktop Player"}, gpmdp.latest = gpm_now -- customize here - gpmdp_notification_preset.text = string.format("%s (%s) - %s", gpm_now.artist, gpm_now.album, gpm_now.title) + gpmdp.notification_preset.text = string.format("%s (%s) - %s", gpm_now.artist, gpm_now.album, gpm_now.title) widget:set_text(gpm_now.artist .. " - " .. gpm_now.title) if gpm_now.playing then