Commits
- Commit:
83438dc0ea419cbf0de45ca9e88b421376ed87c2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
amused-monitor: fix rounding
round() rouds towards infinity, but for the line counting i need a
round towards zero, the one provided by int()
- Commit:
6242c16051255d4e6467ff657ab359a9ee223055
- From:
- Omar Polo <op@omarpolo.com>
- Date:
amused.1: sort the events
- Commit:
6045cf8739a6d44f26acba93d5405adff29f8cee
- From:
- Omar Polo <op@omarpolo.com>
- Date:
amused-monitor: fix bug when window is taller than playlist
adjust the index before reordering the entries, otherwise we may try
to read out-of-bound because the reading loop wraps at $lines, not at
$tmp size.
- Commit:
63dcef309e50e44d3faa5ce537d8f2935ff9ea67
- From:
- Omar Polo <op@omarpolo.com>
- Date:
amused-monitor: support consume too (s/repeat/mode)
- Commit:
9fb9424225a739a0fbbfec5d31f21458126fd9c2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add consume mode
the consume mode implicitly drops the tracks from the playlist when
played 'till the end (note that skipping over a track doesn't trigger
the consume mode - yet?)
- Commit:
b557564cf8a4e8fe31e78e15b27616c2a30f3c81
- From:
- Omar Polo <op@omarpolo.com>
- Date:
amused.1: misc tweaks
- Commit:
b98c922e0b9c445b7a4c81ad678cb1ff8da0a3f0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
drop restart from the list of 'status-like' commands
now it's an alias for 'seek 0', so it doesn't return the status.
- Commit:
4b42d3a3f30acc64f6720bf33c8f6d695577bf74
- From:
- Omar Polo <op@omarpolo.com>
- Date:
pledge early
This changed amused to pledge "stdio rpath" early in main() and then
drop down to "stdio" in ctlaction, by removing the pledge call in
parse. Simplifies a bit the logic and runs more code under pledge.
- Commit:
0e89621609ecbccc896bfc5614eb58894c98e6cd
- From:
- Omar Polo <op@omarpolo.com>
- Date:
include unistd.h for close
spotted on aarch64/glibc
- Commit:
fea2a1d2506a164caf952aec8990ee253bfaf9de
- From:
- Omar Polo <op@omarpolo.com>
- Date:
improve 'amused monitor' documentation
- Commit:
232e682b2ba11ede150ba4d6468afc160a025d63
- From:
- Omar Polo <op@omarpolo.com>
- Date:
s/imsg_name/event_name
- Commit:
15aecb89d41f59ac375c7a2a2194ab7cddcaa020
- From:
- Omar Polo <op@omarpolo.com>
- Date:
monitor: fix reported event
rethink a bit which event are reported and when.
- drop 'toggle' event as it's not useful; now 'amused toggle' will
report the play/pause event.
- replace 'flush' with 'load'. there's no real difference between a
flush and an empty load. (also, less event the better)
- some events (next/prev/jump) are reported earlier to avoid possible
issues (when messing around with the playing queue we can end up in
every possible state.)
- report 'seek' only after it really happened (i.e. after the player
process sent the new position.) There's still a possible race here
(we can receive a previous IMSG_POS and think it's the reply to the
seek) but it it's hard/impossible to work around.
- drop 'restart'. we have 'seek' now which is better (and actually
restart is implemented on top of seek.)
- add 'seek' to the default list of events.
- Commit:
87abdf60b66234cded899c05ebd50fe261a047eb
- From:
- Omar Polo <op@omarpolo.com>
- Date:
amused-monitor: no need to list all the events
`amused monitor' defaults to report all the events, that should be
enough.
- Commit:
949b5c2eb6f46f77b423a93558d196204dce2953
- From:
- Omar Polo <op@omarpolo.com>
- Date:
refactor control_notify
it's awkward to call it with the address of the imsgev struct inside
the ctl_conn struct. Just relay the info to every client in monitor
mode. After all, if a client is in monitor mode *and* issues
commands, it's not strange that they're echoed back (note that this is
currently impossible, the command line client can either issue
commands or be in monitor mode.)
- Commit:
3c8ce7d5563e5546fa4e8f694de4730b9cb9b757
- From:
- Omar Polo <op@omarpolo.com>
- Date:
amused-monitor: add a round function and simplify some bits