1 -- Authors: Voker57 <voker57@gmail.com>
2 -- License: Public domain
3 -- Last Changed: Unknown
5 -- Real simple xmms2 monitor
7 -- %xmms2 - current song in format "Artist - Title"
9 -- by Voker57 <voker57@gmail.com>
13 -- 500 or less makes seconds increment relatively smoothly while playing
17 local settings
=table.join(statusd
.get_config("xmms2"), defaults
)
21 local function get_xmms2_status()
22 local xmms2
= io
.popen("xmms2 current")
36 local function update_xmms2()
37 local xmms2_st
= get_xmms2_status()
38 statusd
.inform("xmms2", xmms2_st
)
39 xmms2_timer
:set(settings
.update_interval
, update_xmms2
)
43 xmms2_timer
=statusd
.create_timer()