ebruck / radiotray-ng

An Internet radio player for Linux
GNU General Public License v3.0
255 stars 23 forks source link

title and artist do not copy by mouse click #191

Closed pivusan closed 7 months ago

pivusan commented 1 year ago

ubuntu 22.04 radiotray-ng_0.2.8_ubuntu_22.04_amd64.deb installed


{
    "bookmarks" : "/home/pav/.config/radiotray-ng/bookmarks.json",
    "debug-logging" : true,
    "disable-logging" : true,
    "ihr-title" : true,
    "last-station" : "Soundpark Deep",
    "last-station-group" : "root",
    "last-station-notifications" : true,
    "notification-verbose" : true,
    "notifications" : true,
    "root-group-bottom-pos" : false,
    "split-title" : true,
    "tag-info-verbose" : true,
    "track-info-copy" : true,
    "volume-level" : 100
}```
i click on icon radiotray-ng in tray 
i click on area where title and artist show
there is nothing in buffer
ebruck commented 1 year ago

@pivusan are you using wayland? It only works for me under xorg.

ebruck commented 1 year ago

From the little reading I've done, it may not be possible to set the clipboard contents (under wayland) unless your application window has focus. Since radiotray-ng doesn't have one there may be no way to make this work.

pivusan commented 1 year ago

thank you for answer. i do not know. i use standard preference. wayland default in ubuntu 22.04 is there the possibility add to radiotray-ng the functionality internet radio with icon "Copy"?: изображение

HeidrHH commented 1 year ago

Radiotray v0.2.8-2-g7fe8c4a

Operating System: TUXEDO OS 2 (Ubuntu 22.04.2 jammy) https://www.tuxedocomputers.com/en/TUXEDO-OS_1.tuxedo# KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.106.0 Qt Version: 5.15.9 Kernel Version: 6.2.0-10007-tuxedo (64-bit)

It would be a wish of me too that it would be possible to copy song title and artist to clipboard with a simple mouse click.

Radiotray is still my favorite app to stream radio from internet.

ebruck commented 8 months ago

I know this isn't a fix, but you could write a script and assign it to a hotkey that runs this command:

wl-copy $(rtng-dbus get_player_state | jq -r '[.title,.artist] | @csv')