Is there a way I can get total listening time from command line? I want to write a script to keep track of how much time I spend listening to music on a daily basis.
First, using the following command:
you can check if Banshee is running.
If yes, you can use:
command in your bash script to get the current Banshee state (if it's playing or not).
Here is some rudimentary bash code from which you can start and improve your script:
Here are some (not console, but with GUI) time-tracking apps: