Nguyễn Gia Phong
83efd26802
Nitpick style, mainly to make luacheck happy
...
Only cover the widget types that were recently refactored.
A few conventions are set as followed:
* Textwidth is preferably 80, since the whole point of tiling windows
is to be able to view more pane of codes
* Standard, 3rd-party and local require should be grouped together
* Closing parentheses should not be on lines by themselves
There should be a style guide to clarify these.
2019-08-23 22:50:13 +07:00
mutlusun
025d2e1ad5
added type to environmet where missing
2019-08-23 10:51:15 +02:00
Nguyễn Gia Phong
db446c35d9
[mpd] Deprecate io.popen
2019-06-05 10:57:18 +07:00
Lorenzo Gaggini
9cf9e994cd
[mpd] fixes if-else block missing end ( #81 )
2019-03-18 19:48:48 +07:00
Lorenzo Gaggini
f37566b0af
[mpd] Add playing progress percentage ( #80 )
2019-03-16 08:38:52 +07:00
Lorenzo Gaggini
60c57e8a41
[mpd] More math.floor for format progress fix
2019-03-15 21:36:52 +07:00
Juan Carlos Menonita
bb74db1835
[mpd] Use math.floor when formatting song progress ( #75 )
...
This ensure compatibility with Lua 5.3
2019-03-04 10:23:23 +07:00
Jörg Thalheim
d11703d589
move format_progress to mpd module
...
The function is not used by any other module and is only really useful
for formatting durations as exposed by mpd.
2018-12-15 00:10:38 +07:00
Nguyễn Gia Phong
e84be352c5
Make mpd widget type expose more info
...
By default, format time values in [hh:]mm:ss. Also use printf instead of
echo, which is shell-specific.
2018-12-15 00:10:38 +07:00
Nguyễn Gia Phong
065bd1d009
Remove manual XML entities escape in widgets
2018-10-22 21:42:31 +07:00
mutlusun
5b30e432e6
move mpd widget to match new layout
2017-01-26 10:40:37 +01:00