Commit graph

11 commits

Author SHA1 Message Date
haruInDisguise
b55d5a6739 modules/mpris: Moved code over to 'sd-bus'
- Ported d-bus specific code from 'libdbus' to 'sd-bus'
- 'sd_bus' has been added to mesons dependencies. If systemd (>=221) is
  not installed, we fall back to [basu](https://git.sr.ht/~emersion/basu)
  v2.1
- Fixed a memory leak upon metadata change
2024-09-18 14:55:31 +02:00
haruInDisguise
8415d40988 modules/mpris: Fixed progress bar not dispalying progress 2024-09-12 17:52:51 +02:00
haruInDisguise
5636977a52 modules/mpris: Added support for multiple clients
This module now supports multiple MPRIS clients and displays the
status fo the most recently active one.
I've also removed any atempts at supporting incomplete/incorrect MPRIS
implementations. The entire update cycle is now completely event
based.
This also means that MPRIS clients must start up after yambar to be
recognized.
2024-09-02 15:52:27 +02:00
haruInDisguise
240b8b16e7 modules/mpris: fix: 'position' property now updates on metadata change
Not updating the position upon metadata change could result in a crash
due to the progress-bar particle begin initialized with invalid
arguments.
2024-08-31 02:27:01 +02:00
haruInDisguise
f5d7e5c227 modules/mpris.c: codespell: fixed typo 2024-08-29 12:05:27 +02:00
haruInDisguise
e04024a16b module/mpris: Added a man page 2024-08-29 11:55:01 +02:00
haruInDisguise
0a91025a1c modules/mpris: Fixed playback position
The playback position properly handles playing/pausing/seeking
2024-08-28 23:22:29 +02:00
haruInDisguise
eeeb33aee1 modules/mpris: Bugfixes and restructuring
- The 'update_status_from_message()' function now properly parses all
  changed properties, instead of only the first one.
- Implemented support for the 'Seekd' signal
2024-08-25 21:45:16 +02:00
haruInDisguise
63199c1378 modules/mpris: Major Update. See description
- Added support for signals and therefore the ability to listen
  for updates to the internal state, without having to query it
  manually every update cycle
- The entire implementation recieved various changes all across the
  codebase.
2024-08-24 21:06:28 +02:00
haruInDisguise
32ab5b9309 module/mpris: Improved error handeling 2024-07-06 10:32:13 +02:00
haruInDisguise
1b8962d296 Added 'MPRIS' module
This commit adds the ability to display status information for MPRIS
compatible music players.
I've adapted most of the naming conventions (and some code) from the
MPD module.
2024-07-05 23:22:20 +02:00