You are not logged in.
Cannot recall who actually did the "Bunsen burner".
Thanks for the funny code.
Offline
Sector11 wrote:Cannot recall who actually did the "Bunsen burner".
Thanks for the funny code.
That burner I knew.
The ASCII caracter and codes I have had for quite a while, started back in the #! days:
## ASCII Characters
## box chars ─ plus ─ works on #! Statler
## Inspired by Arpinux, Box Chars by Aphelion & Sector11
## http://crunchbanglinux─fr.org/forum/viewtopic.php?pid=15355#p15355
## not with all fonts... test first .. these work:
## xftfont monospace:size=8.5
## xftfont DejaVu Sans Mono:size=8.5
## │ ─ ┌ ┬ ┐ └ ┴ ┘ ├ ┼ ┤
## ║ ═ ╔ ╦ ╗ ╚ ╩ ╝ ╠ ╬ ╣
## ↑ ↓ → ← ↔ ► ◄ ▲ ▼ « »
## ░ ▒ ▓ ☺ ☻ ♥ ♦ ♣ ♠
## • ◘ ○ ◙ ♂ ♀ ♪ ♫ ☼
## ¼ ½ ¾ ® ©
NUL ☺ ☻ ♥ ♦ ♣ ♠ • ◘ ○ ◙ ♂ ♀ ♪ ♫ ☼
► ◄ ↕ ‼ ¶ § ▬ ↨ ↑ ↓ → ← ∟ ↔ ▲ ▼
⌂ ø £ Ø × ƒ ª º ¿ ® ¬ ½ ¼ ¡ « »
░ ▒ ▓ │ ┤ Á Â À © ╣ ║ ╗ ╝ ¢ ¥ ┐
└ ┴ ┬ ├ ─ ┼ ã Ã ╚ ╔ ╩ ╦ ╠ ═ ╬ ¤
ð Ð ┘ ┌ █ ▄ ¦ ▀ Ó ß µ þ Þ ¯ ´
± ‗ ¾ ¶ § ¸ ° ¨ · ■ ⬆ ⬇
¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹ ⁰
╔ ═ ╦ ═ ╗
║ ║ ║
╠ ═ ╬ ═ ╣
║ ║ ║
╚ ═ ╩ ═ ╝
┌ ─ ┬ ─ ┐
│ │ │
├ ─ ┼ ─ ┤
│ │ │
└ ─ ┴ ─ ┘
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
RadioTrayNG - Now Playing
https://forums.bunsenlabs.org/viewtopic … 76#p135976After 5+ months of testing I can say that the script works better than expected.
Maybe it's time for a new version, the script has been improved and new features have been added:
1) You can now (if you want) see the album_art.png thumbnail in your file manager
If you open ~/album_art.png (with preferred app) you will get a size of 300x300 which is probably bigger than in conky and the album cover is much more detailed.https://i.postimg.cc/t7xb7L70/file-manager.png https://i.postimg.cc/fJQNdB0V/image-viewer.png
You can easily activate this by removing the ' # ' at the beginning of the lines (with convert and cp).
#### Add the album_art.png thumbnail to the File Manager convert $HOME/.conky/RadioTray_NG/album_art.png $HOME/.conky/RadioTray_NG/album_art.png cp $HOME/.conky/RadioTray_NG/album_art.png $HOME/album_art.png #### END - Add the album_art.png thumbnail to the File Manager
2) The option Disable conky when turn off Radiotray-NG is now the default
When you turn off Radiotray-NG, the conky will disappear, along with the album_art.png thumbnail in the file manager.
3) The code has also been improved...
This is the new radiotray-ng script:
#!/bin/bash test1=$(pacmd list-sink-inputs | grep -A 2 'Radiotray-NG' | awk 'END{print}' | sed -e 's/^[ \t]*//' | sed 's/media.title = "//' | sed 's/.$//' | awk -F' - ' '{print $1}' | sed 's/\\"//g' | sed 's/é/e/g' | sed -e 's/^[ \t]*//' | sed 's/[ \t]*$//') test2=$(pacmd list-sink-inputs | grep -A 2 'Radiotray-NG' | awk 'END{print}' | sed -e 's/^[ \t]*//' | sed 's/media.title = "//' | sed 's/.$//' | awk -F' - ' '{print $2}' | sed 's/\\"//g' | sed -e 's/^[ \t]*//' | sed 's/[ \t]*$//') if [[ "$test1" == "$(sed -n '1p' $HOME/.conky/RadioTray_NG/album_cover)" && "$test2" == "$(sed -n '2p' $HOME/.conky/RadioTray_NG/album_cover)" ]]; then exit 0 fi echo $test1 > $HOME/.conky/RadioTray_NG/album_cover echo $test2 >> $HOME/.conky/RadioTray_NG/album_cover if [[ "$test1" == "" && "$test2" == "" ]]; then cp $HOME/.conky/RadioTray_NG/headphone.png $HOME/.conky/RadioTray_NG/album_art.png else artist=$(sed -n '1p' $HOME/.conky/RadioTray_NG/album_cover | sed 's/ /%20/g' | sed -e 's/$/%20-&/' | tr '[A-Z]' '[a-z]') song=$(sed -n '2p' $HOME/.conky/RadioTray_NG/album_cover | sed 's/ /%20/g' | sed -e 's/$/\&size=medium&/' | sed 's/^/%20&/' | tr '[A-Z]' '[a-z]') curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0' -o $HOME/.conky/RadioTray_NG/image "https://aaaas.deno.dev?query=$artist$song" album_art=$(sed -n '1p' $HOME/.conky/RadioTray_NG/image | sed 's/{"image":"//' | sed 's/"}//') if [[ "$album_art" == "" ]]; then cp $HOME/.conky/RadioTray_NG/not_available.png $HOME/.conky/RadioTray_NG/album_art.png else curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0' -o $HOME/.conky/RadioTray_NG/album_art.png "$album_art" cat /dev/null > $HOME/.conky/RadioTray_NG/image #### Add the album_art.png thumbnail to the File Manager # convert $HOME/.conky/RadioTray_NG/album_art.png $HOME/.conky/RadioTray_NG/album_art.png # cp $HOME/.conky/RadioTray_NG/album_art.png $HOME/album_art.png #### END - Add the album_art.png thumbnail to the File Manager fi fi #### Disable conky when you turn off Radiotray-NG sleep 0.8 test3=$(pacmd list-sink-inputs | grep 'radiotray-ng') if [[ "$test3" == "" ]]; then radiotray_conky=$(pgrep -a conky | awk '/RadioTray_NG/{print $1}') kill -SIGKILL $radiotray_conky > $HOME/.conky/RadioTray_NG/album_cover thumbnail=$(ls | grep album_art) if [ -f "$thumbnail" ]; then rm $HOME/album_art.png fi fi
Notes *
1) Don't forget to make the script executable
2) Inside the ~/.conky/RadioTray_NG folder, create an album_cover file
3) Change the path to the new script (radiotray-ng) in the conky
I also wanted to install this on sid.
inxi -Sxxx
System:
Host: carbon Kernel: 6.12.21-amd64 arch: x86_64 bits: 64 compiler: gcc
v: 14.2.0 clocksource: tsc
Desktop: Openbox v: 3.6.1 with: jgmenu,tint2 tools: light-locker vt: 7
dm: LightDM v: 1.32.0 Distro: BunsenLabs 13 (Carbon) base: Debian GNU/Linux
trixie/sid
wget https://github.com/ebruck/radiotray-ng/releases/download/v0.2.9/radiotray-ng_0.2.9_ubuntu_24.04_amd64.deb -O radiotray-ng.deb
Unfortunately, I encountered unexpected difficulties with the libjsoncpp25 package, because this mandatory package does not (or no longer) exist in sid.
sudo apt install ./radiotray-ng.deb
...
Error: The following information from --solver 3.0 may provide additional context:
Unable to satisfy dependencies. Reached two conflicting decisions:
1. radiotray-ng:amd64=0.2.9 is selected for install
2. radiotray-ng:amd64 Hängt ab von libjsoncpp25
but none of the choices are installable:
[no choices]
Does anyone have any advice?
Last edited by unklar (2025-04-06 12:06:29)
Offline
^ Have you tried this?
sudo apt-get install -f
or:
https://github.com/ebruck/radiotray-ng? … an-package
$ git clone https://github.com/ebruck/radiotray-ng.git
$ cd radiotray-ng
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_BUILD_TYPE=Release
$ make package
$ sudo dpkg -i ./radiotray-ng_x.y.z_<distro>_<i386|amd64>.deb
$ sudo apt-get install -f
If radiotray-ng_0.2.9_ubuntu_24.04_amd64.deb doesn't work try radiotray-ng_0.2.9_ubuntu_20.04_amd64.deb or radiotray-ng_0.2.9_ubuntu_22.04_amd64.deb
https://github.com/ebruck/radiotray-ng/releases
P.S.
I know @johnraff uses radiotray-ng (I don't know which version) and you can expect a solution tomorrow if my advice didn't help.
If people would know how little brain is ruling the world, they would die of fear.
Offline
Thank you @marens.
^ Have you tried this?
sudo apt-get install -f
^^Yes, of course I tried that.
APT itself also suggested
apt --fix-broken install
But, it can't do magic if the required dependency doesn't exist in sid.
Versions 20.04 and 22.04 have even more NOT installable packages than libjsoncpp25 in version 24.04
Offline
Does anyone have any advice?
Either add bookworm sources to draw in the dependency or build the package locally after modifying https://github.com/ebruck/radiotray-ng/ … eLists.txt to change libjsoncpp25
to https://packages.debian.org/trixie/libjsoncpp26 so the package has the correct dependencies (lines 61 & 67).
EDIT: also change "bookworm"
to "trixie"
in that file.
@marens: apt
uses -f
automatically when used to install .debs.
Last edited by Head_on_a_Stick (2025-04-06 15:06:22)
Offline
@HoaS, you smart head!
sudo apt install -t bookworm-backports libjsoncpp26
worked without any problems.
But, the error in radiotray-ng remains because libjsoncpp25 is expected.
Do I have to unpack the .deb with the archive management, change the lines 61 and 67 from 25 to 26 and pack it again? I have never unpacked and packed a .deb before.
Offline
I said to use bookworm's sources, not bookworm-backports.
To build a native trixie .deb package clone the git repository, modify the file I linked to, and then install the build dependencies and build the package.
Offline
^OK.
cmake installed. The errors are piling up...
cmake .. -DCMAKE_BUILD_TYPE=Release
-- The CXX compiler identification is GNU 14.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.31/Modules/FindCURL.cmake:203 (find_package_handle_standard_args)
CMakeLists.txt:34 (find_package)
-- Configuring incomplete, errors occurred!
I have now simply installed from the bookworm page:
sudo apt install ./libjsoncpp25_1.9.5-4_amd64.deb
finally
sudo apt install ./radiotray-ng.deb
radiotray-ng running.
Thank you for your patience!
Offline
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Try
sudo apt install curl libcurlpp-dev
I have now simply installed from the bookworm page
If you install it from the repository instead it will be kept updated.
Offline
radiotray-ng running.
I'm glad you made it.
Just a few notes if you want to use my radiotray-ng script:
1) @HoaS already told you in the post above to install curl and that command is also needed for script
2) Download these images and Copy/Paste them into the folder ~/.conky/RadioTray_NG:
https://postimg.cc/phKKdBmm
https://postimg.cc/bdjy403h ## > Rename image to not_available.png
3) I'm just using the image ~/.conky/RadioTray_NG/album_art.png (top left - 128x128) in conky, but if (like @loutch) you're using a lua script remove the ' # ' at the beginning of this line:
# convert $HOME/.conky/RadioTray_NG/album_art.png $HOME/.conky/RadioTray_NG/album_art.png
This is my ~/.conky/RadioTray_NG/RadioTray_NG conky:
${texeci 10 bash $HOME/.conky/RadioTray_NG/radiotray-ng}\
${image $HOME/.conky/RadioTray_NG/album_art.png -p 0,0 -s 128x128}
If people would know how little brain is ruling the world, they would die of fear.
Offline
unklar wrote:Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Try
sudo apt install curl libcurlpp-dev
unklar wrote:I have now simply installed from the bookworm page
If you install it from the repository instead it will be kept updated.
I ignored curl because conky's are already active here with curl.
apt policy curl
curl:
Installiert: 8.13.0-1
Installationskandidat: 8.13.0-1
Versionstabelle:
*** 8.13.0-1 500
500 https://deb.debian.org/debian trixie/main amd64 Packages
100 /var/lib/dpkg/status
apt policy libcurlpp-dev
libcurlpp-dev:
Installiert: (keine)
Installationskandidat: 0.8.1-6
Versionstabelle:
0.8.1-6 500
500 https://deb.debian.org/debian trixie/main amd64 Packages
I appreciate the update from the repo. But I wanted to test @marens' script first, because I kind of like it.
Once again, thank you for your constructive help
Offline
unklar wrote:radiotray-ng running.
I'm glad you made it.
Just a few notes if you want to use my radiotray-ng script:
1) @HoaS already told you in the post above to install curl and that command is also needed for script
2) Download these images and Copy/Paste them into the folder ~/.conky/RadioTray_NG:
https://postimg.cc/phKKdBmm
https://postimg.cc/bdjy403h ## > Rename image to not_available.png3) I'm just using the image ~/.conky/RadioTray_NG/album_art.png (top left - 128x128) in conky, but if (like @loutch) you're using a lua script remove the ' # ' at the beginning of this line:
# convert $HOME/.conky/RadioTray_NG/album_art.png $HOME/.conky/RadioTray_NG/album_art.png
This is my ~/.conky/RadioTray_NG/RadioTray_NG conky:
${texeci 10 bash $HOME/.conky/RadioTray_NG/radiotray-ng}\ ${image $HOME/.conky/RadioTray_NG/album_art.png -p 0,0 -s 128x128}
@marens
Thanks for your help.
At the moment I can't get my head around 'album.cover; album.art' etc.pp.
This is the terminal message:
conky: desktop window (0x49d) is root window
conky: window type - normal
conky: drawing to created window (0x4200001)
conky: drawing to double buffer
conky: forked to background, pid is 11609
conky: FOUND: wayland
conky: FOUND: x11
conky: FOUND: file
conky: FOUND: ncurses
conky: FOUND: console
conky: 'bunsenlabs' x11 session running 'BunsenLabs' desktop
conky: Unable to load image '/home/unklar/.conky/RadioTray_NG/album_art.png'
No PulseAudio daemon running, or not running as session daemon.
No PulseAudio daemon running, or not running as session daemon.
sed: can't read /home/unklar/.conky/RadioTray_NG/album_cover: No such file or directory
sed: can't read /home/unklar/.conky/RadioTray_NG/album_cover: No such file or directory
conky: received SIGHUP, SIGINT, or SIGTERM to terminate. bye!
^C
[1]+ Fertig LANG=C conky -c ~/.conky/RadioTray_NG/radiotray_conky
Edit
Oh, yes, and this:
$ inxi -Axxx
Audio:
Device-1: Intel Alder Lake PCH-P High Definition Audio vendor: Holco
Enterprise Co /Shuttle driver: snd_hda_intel v: kernel bus-ID: 00:1f.3
chip-ID: 8086:51c8 class-ID: 0403
API: ALSA v: k6.12.21-amd64 status: kernel-api
Server-1: PipeWire v: 1.4.1 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
Last edited by unklar (2025-04-07 09:43:07)
Offline
OK
I understood about the album_cover file and image file.
Now the terminal shows me the PulseAudioDaemon error as the only error.
unklar@carbon:~/.conky/RadioTray_NG/script$ ./radiotray-ng
No PulseAudio daemon running, or not running as session daemon.
No PulseAudio daemon running, or not running as session daemon.
In the conky itself the headphone.png(album_art.png) does not change.
Offline
^ My script uses pacmd.
From man pacmd:
NAME
pacmd - Reconfigure a PulseAudio sound server during runtime
Your OS is different but I think you'll be able to solve it easily.
If you have qdbus and jq installed try:
test1=$(qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep artist |sed 's/^.*" \: "//' |sed 's/",.*$//' | sed 's/é/e/g' | sed -e 's/^[ \t]*//' | sed 's/[ \t]*$//')
test2=$(qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep title |sed 's/^.*" \: "//' |sed 's/",.*$//' | sed -e 's/^[ \t]*//' | sed 's/[ \t]*$//')
For test3, we need the output when radiotray-ng is turned off:
$ qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state
If people would know how little brain is ruling the world, they would die of fear.
Offline
Can you/or my change the pacmd in the script?
wpctl status
PipeWire 'pipewire-0' [1.4.1, unklar@carbon, cookie:4105816793]
└─ Clients:
33. WirePlumber [1.4.1, unklar@carbon, pid:1543]
34. pipewire [1.4.1, unklar@carbon, pid:1544]
47. WirePlumber [export] [1.4.1, unklar@carbon, pid:1543]
58. PipeWire ALSA [pnmixer] [1.4.1, unklar@carbon, pid:1712]
59. xdg-desktop-portal [1.4.1, unklar@carbon, pid:1731]
60. Blueman [1.4.1, unklar@carbon, pid:1742]
64. wpctl [1.4.1, unklar@carbon, pid:33360]
67. radiotray-ng [1.4.1, unklar@carbon, pid:28520]
Audio
├─ Devices:
│ 48. Internes Audio [alsa]
│
├─ Sinks:
│ * 55. Internes Audio Analoges Stereo [vol: 0.55]
│
├─ Sources:
│ 56. Internes Audio Analoges Stereo [vol: 1.00]
│
├─ Filters:
│
└─ Streams:
61. radiotray-ng
62. output_FR > ALC888-VD Analog:playback_FR [active]
63. output_FL > ALC888-VD Analog:playback_FL [active]
Video
├─ Devices:
│
├─ Sinks:
│
├─ Sources:
│
├─ Filters:
│
└─ Streams:
Settings
└─ Default Configured Devices:
Edit: Sorry, overlapped
Last edited by unklar (2025-04-07 13:57:35)
Offline
OK. Changed qdbus.
The album_art.png file appears briefly and disappears again when the last message appears in the terminal (PulseAudio daemon).
conky: desktop window (0x49d) is root window
conky: window type - normal
conky: drawing to created window (0x2600001)
conky: drawing to double buffer
conky: forked to background, pid is 37039
conky: FOUND: wayland
conky: FOUND: x11
conky: FOUND: file
conky: FOUND: ncurses
conky: FOUND: console
conky: 'bunsenlabs' x11 session running 'BunsenLabs' desktop
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 76 100 76 0 0 184 0 --:--:-- --:--:-- --:--:-- 185
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 23810 100 23810 0 0 129k 0 --:--:-- --:--:-- --:--:-- 129k
No PulseAudio daemon running, or not running as session daemon.
However, it is still present in the directory until the next song (.png image).
I have to go now, sorry. See you tomorrow.
Last edited by unklar (2025-04-07 14:59:14)
Offline
^ OK.
There is progress.
Can you give me the output for these commands when radiotray-ng is playing?
$ qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep artist |sed 's/^.*" \: "//' |sed 's/",.*$//' | sed 's/é/e/g' | sed -e 's/^[ \t]*//' | sed 's/[ \t]*$//'
$ qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep title |sed 's/^.*" \: "//' |sed 's/",.*$//' | sed -e 's/^[ \t]*//' | sed 's/[ \t]*$//'
Then open the file album_cover (text editor) and check the contents.
Are there artist (line 1) and title (line 2)?
* and when radiotray-ng doesn't play:
$ qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state
EDIT
I assume this error occurred because we haven't replaced the test3 value yet:
No PulseAudio daemon running, or not running as session daemon.
Last edited by marens (2025-04-07 17:24:41)
If people would know how little brain is ruling the world, they would die of fear.
Offline
qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep artist |sed 's/^.*" \: "//' |sed 's/",.*$//' | sed 's/é/e/g' | sed -e 's/^[ \t]*//' | sed 's/[ \t]*$//'
Gianna Nannini
qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep title |sed 's/^.*" \: "//' |sed 's/",.*$//' | sed -e 's/^[ \t]*//' | sed 's/[ \t]*$//'
I maschi
Then open the file album_cover (text editor) and check the contents.
Are there artist (line 1) and title (line 2)?
The file is empty
qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state
{
"artist" : "",
"bitrate" : "",
"codec" : "",
"group" : "Pop / Rock",
"image" : "radiotray-ng-notification",
"mute" : false,
"state" : "stopped",
"station" : "Radio SwissPop",
"title" : "",
"url" : "",
"volume" : "100"
}
Last edited by unklar (2025-04-07 19:04:34)
Offline
^ OK.
I don't have qdbus installed but I made a simulation.
Replace the lines:
test3=$(pacmd list-sink-inputs | grep 'radiotray-ng')
if [[ "$test3" == "" ]]; then
With:
test3=$(qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep state | awk '{print$3}' | sed 's/"//g' | sed 's/,//g')
if [[ "$test3" == "stopped" ]]; then
Also important is the line:
radiotray_conky=$(pgrep -a conky | awk '/RadioTray_NG/{print $1}')
Inside the awk command is the NAME (not the path) of your conky.
P.S.
When radiotray-ng plays in album_cover file you should have artist (line 1) and title (line 2).
When radiotray-ng is not playing the file album_cover is empty.
If people would know how little brain is ruling the world, they would die of fear.
Offline