aboutsummaryrefslogtreecommitdiff
path: root/main.go
Commit message (Collapse)AuthorAge
* Make waybar-mpris more flexible customizableYaroslav de la Peña Smirnov2022-11-20
| | | | | | | | | | Instead of customizing by indicating just the order and using flags for other customization options (e.g. separator), read a C-like format string with tokens/verbs that are replaced with their respective information (e.g. `%a` for artist). Also made it possible to customize the tooltip. The principle is the same as with the module's text.
* escape double quotesHarvey Tindall2022-01-27
|
* write connection refused error to stderrHarvey Tindall2022-01-24
|
* Truncate file when directly sharingHarvey Tindall2021-10-29
| | | | | | | Fixes bug where recipient instance would have a bit of the previous track data on the end of the output if the previous track data was longer, which effectively froze the output on waybar as it was no longer valid JSON.
* always return the expected number of bytes writtenHarvey Tindall2021-05-24
| | | | | emptyEveryWrite was returning the wrong number, so it ignores the real value and just returns the expected value (len(bytes in)). For #4 again.
* change order of writers in io.MultiwriterHarvey Tindall2021-05-21
| | | | | | io.MultiWriter (i think) thinks dataWrite.Write fails, and so doesn't continue writing to all other outputs. This just makes it the last one, should fix #4.
* support multiple instances with different layoutsHarvey Tindall2021-05-17
| | | | | if specified layout for nth instance is different than 1st, the player data is shared instead of the waybar output.
* only share output when args are identical; use fixed length socketHarvey Tindall2021-05-17
| | | | | | | commands fixed length commands were originally a guess for an issue I was having, but it's cleaner this way anyway.
* add PLAYER to --order, remove binary from repoHarvey Tindall2021-05-16
| | | | also added more prominent download links to the readme.
* fix upload.py args for new versionHarvey Tindall2021-04-24
|
* build JSON string instead of json.Marshal-ingHarvey Tindall2021-04-24
| | | | | not that this was a problem, but the output is simple enough to just create it by hand.
* overwrite previous content when sharing outputHarvey Tindall2021-04-24
| | | | this way /tmp/waybar-mpris.out won't get filled up.
* use external mpris2client libHarvey Tindall2021-01-08
| | | | now at github.com/hrfee/mpris2client.
* move mpris2 component to separate moduleHarvey Tindall2021-01-07
| | | | I'll likely put it in a different repo as i'm thinking of writing a last.fm scrobbler and it'd be reused there.
* add some comments and change identifier namesHarvey Tindall2020-12-15
|
* print clone message to stderrHarvey Tindall2020-11-26
| | | | any non-json output at all seems to break waybar now, so this avoids it.
* fix help outputHarvey Tindall2020-11-16
|
* Run multiple instances by attaching to originalHarvey Tindall2020-09-28
| | | | | | Fixes #1. When another instance is detected, a command is sent over the socket for the original to write to stdout and to a temporary file, which is then tailed by the new instance. Can be overridden with --replace.
* add optional position interpolation, escape ampersandsHarvey Tindall2020-09-14
| | | | | | added --interpolate which will increment the track position if there hasnt been a change after a second. Kinda buggy, so disabled by default. Ampersands are escaped in the tooltip.
* fix crash when tracklength not availableHarvey Tindall2020-09-11
|
* remove socket on exit; fix --position crashHarvey Tindall2020-09-06
|
* log to /tmp/waybar-mpris.logHarvey Tindall2020-08-31
|
* ask before removing existing socketHarvey Tindall2020-08-31
| | | | | automatically removes the socket after 5 seconds of no input so that its functions headlessly.
* ignore player-next/prev if only one player avavilableHarvey Tindall2020-08-28
| | | | stops the tooltip from flickering.
* add list command for debugHarvey Tindall2020-08-27
| | | | | responds with the current list of players and some info, to be used for debugging purposes
* optionally display track positionHarvey Tindall2020-08-26
| | | | | with the --position flag, the position is grabbed every second and outputted. Nothing else is refreshed.
* ignore playerctldHarvey Tindall2020-08-25
| | | | | playerctld displays and controls other players, so including it is pointless.
* display browser name in tooltipHarvey Tindall2020-08-23
| | | | reads /proc/<pid>/cmdline directly instead of using a library.
* remote control via unix socketsHarvey Tindall2020-08-22
| | | | | | waybar-mpris --send will send commands to a currently running waybar-mpris instance. Players can be switched between and controlled individually. Also added gifs, more stuff to README.
* Add flags, executable and improve README.mdHarvey Tindall2020-08-22
|
* fix halt when player is removedHarvey Tindall2020-08-22
| | | | | rewritten without goroutines or checking if processes exist and it seems to work much better now.
* add players as detected, switch to currently playing player on stateHarvey Tindall2020-08-21
| | | | change.
* firstHarvey Tindall2020-08-21