Commits
- 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
- Commit:
d855e568075e8a68f66fe8c5a76131aa36d6b853
- From:
- Omar Polo <op@omarpolo.com>
- Date:
amused-monitor: drop unused `min' function
- Commit:
42426670caf9d7bec75f1aeee5db318d77555c85
- From:
- Omar Polo <op@omarpolo.com>
- Date:
amused-monitor: rewrite excerpt function
instead of passing "half" of the context wanted, just take the number
of lines wanted. switch to a circular buffer to store the lines
instead of shelling out (badly) to grep -C.
- Commit:
6576093aa0f0a23c584d95c79c03c4ea9a390aaa
- From:
- Omar Polo <op@omarpolo.com>
- Date:
initialize status_format early in the main()
otherwise we may leave it NULL (it's set only in ctl_status) and crash
in print_status.
- Commit:
127f376a4797636687374f562e7a65cae3586040
- From:
- Omar Polo <op@omarpolo.com>
- Date:
handle when the duration is zero
- Commit:
3a0b3cb88bee8e71aaf36a6ddfc930218088a915
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix some leftovers
better to use a control variable rather than `last' from a subroutine
- Commit:
508e5f5f044ac52bcc9f4d6155deb6f48dce16a4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add amused-monitor: an ncurses tui written in perl
- Commit:
57d97cc5a2a487a0b6fe3eed4cd3eae2ac919e90
- From:
- Omar Polo <op@omarpolo.com>
- Date:
document status -f
- Commit:
68e4f29ee2b7e9e14d8cf147a938ab08a7397d3d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
allow to customize the output of amused status
This add a -f flag (that falls back to $AMUSED_STATUS_FORMAT) to
control which field to print and in which order.
- Commit:
47e75b09912a9bd95bc714f4c0ff0831203ed72d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
explain better non-regular/unknown files are treated
- Commit:
129b80cfb6dd2d57ef78665e30a9df75efa01c94
- From:
- Omar Polo <op@omarpolo.com>
- Date:
reword sentence