nice spotify notification

This commit is contained in:
2026-02-01 01:53:47 +01:00
parent caca94bc6a
commit dc325834c7
7 changed files with 256 additions and 167 deletions

View File

@@ -2,8 +2,10 @@
#include <memory>
#include <vector>
#include "services/dbus/mpris.hpp"
#include "gdkmm/monitor.h"
#include "gtkmm/window.h"
class NotificationController {
static std::shared_ptr<NotificationController> instance;
@@ -15,9 +17,11 @@ class NotificationController {
return NotificationController::instance;
}
void showSpotifyNotification(const std::string &title, const std::string &message, const std::string &artwork_url);
void showSpotifyNotification(MprisController::MprisPlayer2Message mpris);
void showNotificationOnAllMonitors(const std::string &title, const std::string &message);
private:
NotificationController();
std::vector<std::shared_ptr<Gdk::Monitor>> activeMonitors;
void baseWindowSetup(std::shared_ptr<Gtk::Window> win, std::shared_ptr<Gdk::Monitor> monitor);
};