![]() ![]()
|
Hi all, any possibility to add a global hotkey function for copying/pasting the song name/ artist to any place...meaning that wouldnt even be needed to have anykind of plugins installed for spamming the songname to chat in apps like valknut.
Hope u understand me. lol |
![]() Registered Member ![]()
|
Take a look at the DCOP interface (see the Wiki), it does everything you want!
|
![]() ![]()
|
Ok i looked at the wiki. Obviously im not too smart. Anyone give me some kind of example?
|
![]() ![]()
|
Feeling stupid also;
I would love to get an example of a script which can do the thing what wegface wants. ![]() |
![]() Registered Member ![]()
|
[code:1]
#!/usr/bin/perl #small perl script to display current track playing in amaroK chomp ($ARTIST=`dcop amarok player artist`); chomp ($TITLE=`dcop amarok player title`); chomp ($ALBUM=`dcop amarok player album`); chomp ($CTIME=`dcop amarok player currentTime`); chomp ($TTIME=`dcop amarok player totalTime`); chomp ($SCORE=`dcop amarok player score`); print \"oggb4mp3 is listening to - \\\"$TITLE\\\" by $ARTIST ($ALBUM) [$SCORE]\\n\"; [/code:1] |
![]() Registered Member ![]()
|
or if you prefer bash
[code:1] #!/bin/bash #small bash script to display current track playing in amaroK ARTIST=`dcop amarok player artist`; TITLE=`dcop amarok player title`; ALBUM=`dcop amarok player album`; CTIME=`dcop amarok player currentTime`; TTIME=`dcop amarok player totalTime`; SCORE=`dcop amarok player score`; echo \"oggb4mp3 is listening to - \\\"$TITLE\\\" by $ARTIST ($ALBUM) [$SCORE]\"; [/code:1] |
![]() Administrator ![]()
|
Could anyone give a hint how to copy that information to the clipboard? ^^
Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.
10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts |
![]() Registered Member ![]()
|
uhm, highlight and ctrl-c or the unix middle button trick.
|
![]() Administrator ![]()
|
oggb4mp3 wrote:
I meant something like a global key. [key] would copy the text to clipboard, and then you\'ll be able to paste it anywhere.
Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.
10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts |
![]() ![]()
|
|
![]() KDE Developer ![]()
|
DCOP + KHotKeys
--
Mark Kretschmann - Amarok Developer |
Registered users: Bing [Bot], Google [Bot]