
Console Amarok Controller
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
This script will control Amarok from a command line.
New in V2.0:
You can now search for a song and play it!
I wrote this script because my Desktop PC is hooked up to my Stereo and I work from my laptop. So I SSH onto my Desktop PC and control Amarok via DCOP. I used to type each command by hand but I got tired quick, so I wrote this Script. I know it's simple but it works.
Only basic functions are available at the moment. I don't think I'll add any new features unless I personally need them. If you want anything added you can do it yourself or ask me to do it. I will most likely only add a feature if I think I will use it. Selfish... maybe but at least I am sharing this script with you.
13 years ago
Version 2.0:
You now have the ability to search your collection for a song, by Title, Album, Artist, or all 3.
Version 1.1:
The current track is now refreshed when the track is over or the track changes, and not every 10 seconds like in V1.0
13 years ago
Version 2.0:
You now have the ability to search your collection for a song, by Title, Album, Artist, or all 3.
Version 1.1:
The current track is now refreshed when the track is over or the track changes, and not every 10 seconds like in V1.0
crc294
12 years ago
Additionally, I get these messages:
"/home/rob/bin/console_amarok.sh: line 32: [: ==: unary operator expected"
after 7) Mute
"/home/rob/bin/console_amarok.sh: line 240: read: CHOICE: invalid timeout specification"
after q) Quit
Any ideas?
Report
saul
12 years ago
DCOP_COMMAND=" dcop --user `whoami` --all-sessions "
Then replace any occurrence within the script of dcop with $DCOP_COMMAND
By the way, this is a great script. Very useful :-)
Report
crc294
12 years ago
Report
Yonen
12 years ago
Since I moved, I don't have a need for this script now, so I haven't been using it.
I'm glad to see that other people are using it.
Report
Moni
13 years ago
p.s. first time i run the script i got:
/bin/bash^M: bad interpreter: No such file or directory
than i converted the file at: http://www.iconv.com/dos2unix.htm
Report
Yonen
13 years ago
Sorry about that... I should have thought of that.
Report
GrotcH
13 years ago
Report
Yonen
13 years ago
I'm actually put an update soon, it now only refreshes the track name when the song is over instead of every 10 seconds.
Report