summaryrefslogtreecommitdiff
path: root/spotify-widget
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2020-12-02 09:24:05 -0500
committerstreetturtle <streetturtle@gmail.com>2020-12-02 22:04:23 -0500
commitd9eb3885eea90e06b79ff8fc4b2d1c1b8f5e4cfd (patch)
tree573bfe1b0adfc92532cce39a44b8828407e1f79d /spotify-widget
parente3d3e07af3a18331711e897d9928701d9ac21839 (diff)
trigger build action on a branch
Diffstat (limited to 'spotify-widget')
-rw-r--r--spotify-widget/spotify.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/spotify-widget/spotify.lua b/spotify-widget/spotify.lua
index fb903e8..bd2309f 100644
--- a/spotify-widget/spotify.lua
+++ b/spotify-widget/spotify.lua
@@ -11,7 +11,6 @@
local awful = require("awful")
local wibox = require("wibox")
local watch = require("awful.widget.watch")
-local naughty = require("naughty")
local GET_SPOTIFY_STATUS_CMD = 'sp status'
local GET_CURRENT_SONG_CMD = 'sp current'
@@ -24,9 +23,9 @@ end
local spotify_widget = {}
-local function worker(args)
+local function worker(user_args)
- local args = args or {}
+ local args = user_args or {}
local play_icon = args.play_icon or '/usr/share/icons/Arc/actions/24/player_play.png'
local pause_icon = args.pause_icon or '/usr/share/icons/Arc/actions/24/player_pause.png'
@@ -100,7 +99,7 @@ local function worker(args)
end
local escaped = string.gsub(stdout, "&", '&amp;')
- local album, album_artist, artist, title =
+ local album, _, artist, title =
string.match(escaped, 'Album%s*(.*)\nAlbumArtist%s*(.*)\nArtist%s*(.*)\nTitle%s*(.*)\n')
if album ~= nil and title ~=nil and artist ~= nil then