Quick iTunes control from the command line.
GPL-3.0 License
Control iTunes from the command line
This is an experiment on ncurses
, ScriptingBridge
, and Swift
.
The current version is a reimplementation of the old tune I wrote ages ago, which had a direct launch argument API. Now it uses ncurses
for a pretty text-based UI.
You can see the evolution of tune through some asciicasts I've recorded in asciinema.
This projects includes an advanced Swift wrap around ncurses
, and that might become an independent project in the future. You can check it out in the source by clicking here.
cd tune
make
./build/Release/tune
You can run the following command to add tune to your run path without moving any file. And then when you compile a new version, the link will automatically point to the new binary:
ln -s $(pwd)/build/Release/tune /usr/local/bin/tune
This software is only supported on macOS, since ScriptingBridge
is not available outside of it.
It would be nice to make tune support other media players, such as Spotify. The application uses a generic protocol-based entities to pass info back-and-forth between the UI and the control layer, so adding some other players shouldn't be too complicated.
Copyright 2017 Bruno Philipe. All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.