commit 6f4c25194a01382ef8dcf3b1a7ad210e2b46eae1 parent 7fb9e5af6c53196c8f3b281cdf1b0c5e9fa52dbe Author: sin <sin@2f30.org> Date: Fri, 3 Jun 2016 16:21:21 +0100 Allow selecting output device on the cmdline Diffstat:
M | ncmixer.c | | | 6 | +++++- |
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/ncmixer.c b/ncmixer.c @@ -440,8 +440,12 @@ curses_exit(void) } int -main(void) +main(int argc, char *argv[]) { + if (argc > 1) + outputs[0].name = argv[1]; + if (argc > 2) + outputs[1].name = argv[2]; curses_init(); draw(); loop();