From e367ecdded2d9fecafd30f517c7043d19a75280c Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Wed, 3 Aug 2022 11:37:16 -0400 Subject: update the readme to reflect libmoc work --- README | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/README b/README index ccb726f..b8eb062 100644 --- a/README +++ b/README @@ -1,5 +1,48 @@ README +This whole project was spawned by my highschool self, I wrote an applet called +Mocicon that sits on the X11 systray and issues commands to the moc music player. + +However It was woefully dumb, it issued commands by just calling mocp with various flags, +and had no internal notion of the state of MOC. + +So, here I am, more than a decade later without a great way to talk to mocp still, though +there have been some notably decent contributions and patches including MPRIS support. However, +I'd like to avoid using dbus as it would make doing this all over the network less fun. + + +Here's what we have so far. + + +1. a small header and library we can use to get information about mocp +2. a demo x11 applet that pulls the information + + +Here's what we don't have + +1. A way to submit events to the queue. +2. Safety around the structure. More helper functions to access elements should prevent weird +data issues around locking. + + + +It's been written in a way that the library operates on it's own thread, so that you can use +this in realtime with a separate event loop. Initially I tried to jam the X11 and moc socket +events into one loop but it just caused to many issues. the downside is now I need to communicate in +and out of the thread and do so safetly. + +I think I am going to just write an event queue that we can lock, push events into, and then let the +main libmoc thread pickup during it's loop. That way we can submit events like play, pause, stop, and so forth. + + + + + + +Here's the original Readme for kicks. + +# MocIcon + Mocicon is a Music On Console tray icon for quick access. Report Bugs (which there aren't any) or suggestions to MutantTurkey@gmail.com, MutantTurkey@freenode.net -- cgit v1.2.1