Artem Tarasov
0adeedfe99
formatting with stylua (Spaces, AutoPreferSingle, NoSingleTable, FunctionOnly)
2024-06-01 09:43:13 +02:00
Artem Tarasov
cb150775ec
avoid passing nil to string.sub
2024-06-01 09:17:10 +02:00
Artem Tarasov
d58ed66d0a
extra protection against division by zero
2024-05-26 22:46:04 +02:00
Artem Tarasov
0391d98acb
swap play and pause icons to indicate intended action instead of the status
2024-05-23 08:05:59 +02:00
Artem Tarasov
a69682b240
use more standard progressbar direction
2024-05-23 08:04:51 +02:00
Artem Tarasov
5a1cef608c
allow to override default player
2024-05-20 20:26:56 +02:00
Artem Tarasov
10aeeb71ad
handle absence of year in the metadata
2024-05-20 20:20:56 +02:00
Artem Tarasov
08b401442e
put back forced_height (useful for long album names)
2024-05-20 20:07:57 +02:00
Artem Tarasov
cc3e74e099
show album year in the popup
2024-05-20 20:06:14 +02:00
Artem Tarasov
182f80349d
customizable popup width
2024-05-20 19:58:40 +02:00
Artem Tarasov
2e422691d2
fix duration function, allow to override icons and font
2024-05-20 19:55:06 +02:00
Artem Tarasov
f944270602
refactoring + fix player selection
2024-05-20 19:05:59 +02:00
Artem Tarasov
d8376f7bec
minor improvements
2024-05-19 18:34:45 +02:00
Artem Tarasov
484eb68671
show cover art in the popup
2024-05-19 14:38:46 +02:00
Artem Tarasov
a11ee2ec8a
working progressbar
2024-05-19 12:42:49 +02:00
Nuno Silva
e791743eaf
fix CI warnings
...
from https://github.com/streetturtle/awesome-wm-widgets/actions/runs/6915243510/job/18813967822?pr=421
2023-11-18 18:17:55 +00:00
pingarelho
5e8d065baf
'e.g.' instead of 'e.g'
2023-09-20 23:09:25 +01:00
Rowan
15c483923f
Make player duration and status appear on hover
...
This commit adds displaying player metadata in a popup when the user
hovers over the mpris-widget
2023-07-12 14:51:11 +08:00
Romanos Skiadas
4bc22fbb70
mpris-widget: delete on mouse::enter code
...
this code is janky, because the notification is set asynchronously, it
can end up not being cleaned by the mouse exit and then you can end up
with multiple ones. Also, the image field of the table needs to be icon,
but if the icon is an http url like some players print or even a local
file like firefox does, setting the icon causes an error as it can't be
read.
2021-10-16 09:59:03 +03:00
Romanos Skiadas
ca08528926
mpris-widget: correct artUrl
...
Perhaps due to the regex change, or maybe it never did work, art was always
nil. Use gears.string.split(), which works, is much easier to read than the
regex and removes the need to munge the artUrl after too.
2021-10-15 18:47:11 +03:00
Romanos Skiadas
567b5bb84f
mpris-widget: make play/pause icon work
...
The middle part of mpris_widget was meant to be a play/pause icon. It
only displayed a circle, as an unrelated widget that was not shown was
set up and modified according to the play state. Delete the invisible
widget, add the icon where it should be.
2021-10-15 18:34:09 +03:00
Romanos Skiadas
aacbf61fac
mpris-widget: enable notification on mouse enter
...
use the right widget and it just works(TM). Changed the title to not
have bold formatting, as it's already formatted and the <b> was printed
literally, changed the <b>by</b> to - as it looks nicer to me.
2021-10-15 18:23:26 +03:00
Romanos Skiadas
2b829c7257
mpris-widget: remove more dead code
...
no need to update a widget that is never updated
2021-10-15 18:18:30 +03:00
Romanos Skiadas
588227cc1a
mpris-widget: rename mpdstatus to player_status
2021-10-15 17:51:59 +03:00
Romanos Skiadas
435d5d14f8
mpris-widget: fix api call
...
there is no naughty.notification, notify returns a notification
2021-10-15 17:51:59 +03:00
Romanos Skiadas
c5852546ae
mpris-widget: correctly clean list of players
...
Do it outside the loop, otherwise the last player wins.
2021-10-15 17:51:59 +03:00
Romanos Skiadas
db0b3e9e8c
mpris-widget: fix incorrect boolean expression
...
the loop is not meant to be executed if the player name is nil or '', so
the expression needs to be an and.
2021-10-15 17:51:59 +03:00
Romanos Skiadas
2755f85623
mpris-widget: remove some dead code
...
the mpdarc widget is not really used and is a copy-paste leftover. The
current widget has its own bindings already.
2021-10-15 17:51:59 +03:00
Romanos Skiadas
540d5edb5f
mpris-widget: fix capture regex for playerctl output
...
Before, the table ended up being something like {"status", "",
"artist", "", ..}, so the output of the widget was garbled.
2021-08-23 11:20:27 +03:00
Romanos Skiadas
cede33fa3f
mpris-widget: fix call to set_text
...
.set_text is invalid, it should be :set_text like in the other branches
of the if.
2021-08-23 11:20:08 +03:00
Romanos Skiadas
cdeed22ba5
mpris-widget: fix README, typo
2021-08-23 11:19:33 +03:00
streetturtle
8ad4d0228d
fix build
2020-12-17 15:27:00 -05:00
streetturtle
baa9177b70
ultimate volume widget improvements
2020-12-14 22:33:56 -05:00
streetturtle
a0cd854a4d
fix more warnings
2020-12-05 20:57:04 -05:00
gaberm
062a6d7762
Added image icon for streaming from firefox
2020-11-25 23:11:32 +02:00
mgabs
de14c1325f
Merge branch 'master' into pr-213
2020-11-23 21:19:52 +02:00
gaberm
5dbfab7248
added icon to mpris popup
2020-11-23 21:03:06 +02:00
streetturtle
30199568c6
wrap widget in a function
2020-11-23 09:55:37 -05:00
gaberm
0e1d31ad6f
Fixed notify status - mpris widget
2020-11-21 14:45:37 +02:00
gaberm
c95ff15ab4
adding an mpris widget
2020-11-16 21:38:16 +02:00