Commit Graph

17 Commits (729ccc83bd9eb446b4767cf8b1aa31c6f73de5cb)

Author SHA1 Message Date
jackun 729ccc83bd
Use spdlog's 'fmt' to format media player metadata
Usage:
  media_player_format={title};{artist};{album}

Semi-colon breaks to new line, might change.
3 years ago
jackun 31e879215a
[dbus] Also check if gamemode is enabled with D-Bus 3 years ago
jackun b07db5d3ef
[dbus] Don't clear metadata when reloading config file 4 years ago
Lars Krämer 9a34b55498 Move interactions with main_metadata into separate functions
More tidying up of the helper classes
4 years ago
Lars Krämer 7cc76142f1 Tidy up DBus helper classes
make sure metadata is up-tp-date when switching players (WIP)
4 years ago
Lars Krämer 72b86b4371 Fix some weird behaviour with non-spotify media players
Add DBusMessage_wrap to wrap/hide some dbus_message_* calls
4 years ago
Lars Krämer 6484e09f01 Implement wrapper class for DBusMessageIter
Implement for_each-style helpers for common constructions
Reimplement most of the DBus message parsing in terms of these
4 years ago
Lars Krämer 4bf7a3f2f0 Make DBus signal handling more event-based 4 years ago
Lars Krämer 5850643db4 Change the media player functionality to allow changing active media
player
4 years ago
larskraemer a28931ef6b
General cleanup (#272)
* Cleanup unused struct fields, use uniform include guards
4 years ago
jackun 9b595cef1a
[dbus] clear metadata on re-init; don't use exceptions 4 years ago
jackun d694a61d21
Add `media_player_name` and `media_player_color` params
Allows to set "main" media player and text color
4 years ago
Danilo Spinella 728fc9fe56 dbus: Add missing include 4 years ago
jackun 88188ee1da
[dbus] Generalize a bit more but still give Spotify special treatment, keep track of 'org.mpris.MediaPlayer2' service providers
Keeps and draws spotify's and other player's metadata separately.
Keep track of 'org.mpris.MediaPlayer2' service providers so when
a player that was the last metadata sender quits, we can stop
showing its metadata on overlay.
4 years ago
jackun e5a256bfc0
Move DBus init to overlay_params so it can be enabled/disabled on the fly from a single place 4 years ago
jackun 8024736253
Add DBus loader, combined ticker for Spotify metadata 4 years ago
FlightlessMango d975278396
Dbus with spotify 4 years ago