You are not logged in.
RadioTrayNG - Now Playing
https://forums.bunsenlabs.org/viewtopic … 76#p135976
Looking for album art is not an easy job.
There is no source that has all released albums because that is impossible.
Most radio stations only publish the artist and the song (no album) and this makes things even more complicated.
Luckily, my favorite station (XRDS.fm) is an exception:
https://forums.bunsenlabs.org/viewtopic … 05#p139305
Today I had a case where one letter (symbol) caused a problem:
John Németh - Memphis Grease - Her Good Lovin'
I knew that John Nemeth (as an artist) was in the archive, but I got the image not_ available.png as a result.
Of course the reason is the letter (symbol) " é " instead of " e ".
Inside test1 (at the end) I added:
| sed 's/é/e/g'
After a few seconds, the expected album cover appeared:
Today I updated the script, but I won't do it again because there are too many radio stations, artists and such examples.
This post shows how to try to solve a similar case.
If people would know how little brain is ruling the world, they would die of fear.
Offline
@loutch
I saw that you often use the Hotmix80 radio station:
https://forums.bunsenlabs.org/viewtopic … 66#p136266
In my conky, I only use the image album_art.png, but you also have the radio station logo.
If you want, you can display the same logo in the notifications instead of the radiotray icon.
1) Find and download the hotmix-logo.png image
2) Turn off the radio station if it is playing
3) Open ~/.config/radiotray-ng/bookmarks.json and add after "name" : line "image" : as below
{
"name" : "Hotmix80",
"image" : "~/.conky/radiotray-ng/hotmix-logo.png",
"url" : "http://..."
},
4) Change the path and name of the logo if necessary
5) Open radiotray-ng popup menu > Preferences > Reload Bookmarks
Done.
P.S.
Can you post the URL for Hotmix80?
If people would know how little brain is ruling the world, they would die of fear.
Offline
Hello
Tank's here url
http://stream.rcs.revma.com/hxt0rfc9q7uvv
@+
Last edited by loutch (2024-11-22 08:14:18)
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
MarkW wrote:Definitely all 12. With seconds lines in between (am I gong too far)?
It's not possible to go too far talking conky with S11.
Thank you for the vote of confidence Packrat
Nope can be done - but I'll need some time.
We continue this conversation here.
Something simple with the numbers or a little more complex, see below for complex?
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
@MarkW
Does this work for you?
Six screenshots: 6, 5, 4, 3, 2 and 1
NOTES:
1.) I'm a conky v1.9 so converting the code is required
2.) check the /path/to/various/scripts/and/codes
BL-MarkW.conky
# Created for MarkW - BunsenLabs
# by: Sector11 - 2024-11-22
# NOTES
# 1.) conky v 1.9 format
# 2.) Change paths as required.
# pkill -xf "conky -q -c /media/5/Conky/BL-MarkW.conky" &
# Put sscc - script in your path - one click to start 1 click to shutdown
# sscc-BL-MarkW - make it executable
### Begin Window Settings #####################
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
own_window_colour 000000
own_window_class Conky
own_window_title Markw Button Clock
### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type normal
# own_window_argb_visual yes # Options: yes or no
### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
# own_window_argb_value 0
minimum_size 180 180 ### w|h
maximum_width 180
gap_x 0 ### l|r
gap_y 0 ### u|d
alignment mm
####################### End Window Settings ###
### Font Settings #############################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Liberation Mono:bold:size=9
#xftfont Fantasque Sans Mono:bold:size=9
# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes
uppercase no
######################### End Font Settings ###
### Colour Settings ###########################
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000
default_color DCDCDC # Gainsboro
color0 C0C0C0 # Silver
color1 778899 #LightSlateGray
color2 F5F5DC #Beige
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 CD5C5C #IndianRed
####################### End Colour Settings ###
### Borders Section ###########################
draw_borders no
# Stippled borders?
stippled_borders 5
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 2
# graph borders
#draw_graph_borders yes
#default_graph_size 15 40
####################### End Borders Section ###
### Miscellaneous Section #####################
# Boolean value, if true, Conky will be forked to background when started.
background yes
# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none
# Subtract (file system) buffers from used memory?
no_buffers yes
# change GiB to G and MiB to M
short_units yes
# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2
# Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
# $image lots. Set to 0 to disable the image cache.
imlib_cache_size 0
# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes
# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
#text_buffer_size 6144
# Maximum size of user text buffer, i.e. layout below TEXT line in config file
# (default is 16384 bytes)
#max_user_text 16384
# Desired output unit of all objects displaying a temperature. Parameters are
# either "fahrenheit" or "celsius". The default unit is degree Celsius.
#temperature_unit Fahrenheit
################# End Miscellaneous Section ###
### LUA Settings ##############################
#--------------------------------
#lua_load /media/5/Conky/LUA/draw-bg.lua
#lua_draw_hook_pre draw_bg 10 0 0 0 0 0xffffff 0.05
#lua_draw_hook_pre draw_bg 0 0 0 0 0 0x000000 0.15
#lua_draw_hook_post draw_bg 10 0 0 0 0 0xffffff 0.5
#lua_draw_hook_post draw_bg 10 0 0 0 0 0x000000 0.25
#
# TEXT
#${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}
#
lua_draw_hook_pre main
lua_load /media/5/Conky/LUA/MarkW-12.lua
############################ End LUA Settings ###
update_interval 1
TEXT
${image /media/5/Conky/images/BL-Orb-Flame-lt-180x180.png -p 0,0}\
${image /media/5/Conky/images/MarkW/clock-face-RN.3ar.png -p 10,10 -s 160x160}
the MarkW-12.lua script (the clock)
--[[drawing a clock in conkyrc
by mrpeachy - 12 March 2010
Edited by Sector11 for personal use - 12 Mar 2012
Edited by Sector11 for MarkW - 2024·11·22 → MarkW-12.lua
lua_load /path/clock.lua
lua_draw_hook_pre main
TEXT
]]
require 'cairo'
function conky_main()
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
cr = cairo_create(cs)
--##############################################################################
-- SETTINGS AREA
--##############################################################################
--12 OR 24
local clock_type=12
--CLOCK SETTINGS
local clock_radius=90
local clock_centerx=97
local clock_centery=97
-- SET MARKS
--how many marks around edge
local number_marks=60 --12 --24
--set mark length
local m_length=8
--set mark line width
local m_width=0.5
--set mark line cap type
local m_cap=CAIRO_LINE_CAP_ROUND
--set mark color and alpha,red blue green alpha
local mr,mg,mb,ma=1,1,1,1 --opaque white
--SET BORDER OPTIONS
local clock_border_width=0 --2
--set color and alpha for clock border
local cbr,cbg,cbb,cba=1,1,1,1 --full opaque white
--gap from clock border to hour marks
local b_to_m=5
--SECONDS HAND SETUP
--set length of seconds hand
local sh_length=90
--set hand width
local sh_width=1
--set hand line cap
local sh_cap=CAIRO_LINE_CAP_ROUND
--set seconds hand color
local shr,shg,shb,sha=1,0,0,1 --fully opaque red
--MINUTE HAND SETUP
--set length of minutes hand
local mh_length=80
--set hand width
local mh_width=2
--set hand line cap
local mh_cap=CAIRO_LINE_CAP_ROUND
--set minute hand color
local mhr,mhg,mhb,mha=1,1,1,1 --fully opaque white
--HOUR HAND SETUP
--set length of hour hand
local hh_length=70
--set hand width
local hh_width=4
--set hand line cap
local hh_cap=CAIRO_LINE_CAP_ROUND
--set hour hand color
local hhr,hhg,hhb,hha=1,1,1,1 --fully opaque white
--##############################################################################
-- END SETTINGS AREA
--##############################################################################
--DRAWING CODE
--draw border
cairo_set_source_rgba (cr,cbr,cbg,cbb,cba)
cairo_set_line_width (cr,clock_border_width)
cairo_arc (cr,clock_centerx,clock_centery,clock_radius,0,2*math.pi)
cairo_stroke (cr)
--DRAW MARKS
--stuff that can be moved outside of the loop, needs only be set once
--calculate end and start radius for marks
m_end_rad=clock_radius-b_to_m
m_start_rad=m_end_rad-m_length
--set line cap type
cairo_set_line_cap (cr, m_cap)
--set line width
cairo_set_line_width (cr,m_width)
--set color and alpha for marks
cairo_set_source_rgba (cr,mr,mg,mb,ma)
--start for loop
for i=1,number_marks do
--drawing code using the value of i to calculate degrees
--calculate start point for 12 oclock mark
radius=m_start_rad
point=(math.pi/180)*((i-1)*(360/number_marks))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--set start point for line
cairo_move_to (cr,clock_centerx+x,clock_centery+y)
--calculate end point for 12 oclock mark
radius=m_end_rad
point=(math.pi/180)*((i-1)*(360/number_marks))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--set path for line
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
--draw the line
cairo_stroke (cr)
end--of for loop
--TIME CALCULATIONS ###########################
if clock_type==12 then
hours=tonumber(os.date("%I")) --12 hour clock
--convert hours to seconds
h_to_s=hours*60*60
elseif clock_type==24 then
hours=tonumber(os.date("%H")) --24 hour clock
--convert hours to seconds
h_to_s=hours*60*60
end
minutes=tonumber(os.date("%M"))
--convert minutes to seconds
m_to_s=minutes*60
--get current seconds
seconds=tonumber(os.date("%S"))
--DRAW HOUR HAND ############################
--convert hours, minutes & seconds to seconds
hsecs=h_to_s+m_to_s+seconds
--calculate number of degrees for each hand per second
hsec_degs=hsecs*(360/(60*60*clock_type)) -- USING AN EQUATION INSTEAD OF TYPING THE CALCULATION IN BECAUSE THE RESULT OF 360/43200 HAS DECIMAL PLACES
--set radius we will use to calculate hand points
radius=hh_length
--set our starting line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
--calculate coordinates for end of minutes hand
point=(math.pi/180)*hsec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
--set up line attributes and draw line
cairo_set_line_width (cr,hh_width)
cairo_set_source_rgba (cr,hhr,hhg,hhb,hha)
cairo_set_line_cap (cr, hh_cap)
cairo_stroke (cr)
--DRAW MINUTES HAND ############################
--convert minutes & seconds to seconds
msecs=m_to_s+seconds
--calculate degrees for the hand each second
msec_degs=msecs*0.1
--set radius we will use to calculate hand points
radius=mh_length
--set our starting line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
--calculate coordinates for end of minutes hand
point=(math.pi/180)*msec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
--set up line attributes and draw line
cairo_set_line_width (cr,mh_width)
cairo_set_source_rgba (cr,mhr,mhg,mhb,mha)
cairo_set_line_cap (cr, mh_cap)
cairo_stroke (cr)
--DRAW SECOND HAND #############################
--calculate degrees for each second the hand moves
sec_degs=seconds*6
--set radius we will use to calculate hand points
radius=sh_length
--set our starting line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
--calculate coordinates for end of second hand
point=(math.pi/180)*sec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
--set up line attributes and draw line
cairo_set_line_width (cr,sh_width)
cairo_set_source_rgba (cr,shr,shg,shb,sha)
cairo_set_line_cap (cr, sh_cap)
cairo_stroke (cr)
--##############################################################################
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end-- end main function
The sscc-BL-MarkW bash script to start|stop the conky
#!/bin/bash
## click to start, click to stop
## Original pkill line by: GrouchyGaijin - Ununtu Conky Thread
## to start stop a specific conky
## This idea by: Stinkeye - Jan 2013 - Ununtu Conky Thread
## start/stop conky with pkill line
## With a tweak by: arclance
## remove "sticky" from own_window_hints
if pgrep -f "conky -q -c /media/5/Conky/BL-MarW.conky"
then
pkill -xf "conky -q -c /media/5/Conky/BL-MarW.conky"
else
conky -q -c /media/5/Conky/BL-MarW.conky
fi
Let's not forget the images: The BL-Orb-Flame-lt-180x180.png (maybe it's a different one, I made a few back when) and the clockface
Enjoy!
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
C'est magnifique!
Offline
C'est magnifique!
De rien
De nada
Bitte sehr
You're welcome
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Could you upload the files somewhere? Copying and pasting in Geany, or any other text editor, always seems to give me something like this
I have no place to upload files.
That's weird, it works just fine in any text editor for me, even nano.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
MarkW wrote:Could you upload the files somewhere? Copying and pasting in Geany, or any other text editor, always seems to give me something like this
I have no place to upload files.
That's weird, it works just fine in any text editor for me, even nano.
I put them on pastebin -
You must unlearn what you have learned.
-- yoda
Offline
NOTES:
1.) I'm a conky v1.9 so converting the code is required
Does convert.lua still work?
You must unlearn what you have learned.
-- yoda
Offline
Sector11 wrote:MarkW wrote:Could you upload the files somewhere? Copying and pasting in Geany, or any other text editor, always seems to give me something like this
I have no place to upload files.
That's weird, it works just fine in any text editor for me, even nano.
I put them on pastebin -
You're a champ. Thank you.
Does convert.lua still work: It seems so.
2024·11·23 @ 09:51:50 ~
$ convert.lua /media/5/Conky/BL-MarkW.conky /media/5/Conky/BL-MarkW.conky10
2024·11·23 @ 09:52:34 ~
$
conky.config = {
-- Created for MarkW - BunsenLabs
-- by: Sector11 - 2024-11-22
-- NOTES
-- 1.) conky v 1.9 format
-- 2.) Change paths as required.
-- pkill -xf "conky -q -c /media/5/Conky/BL-MarkW.conky" &
-- Put sscc - script in your path - one click to start 1 click to shutdown
-- sscc-BL-MarkW - make it executable
--## Begin Window Settings #####################
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',
own_window_colour = '#000000',
own_window_class = 'Conky',
own_window_title = 'Markw Button Clock',
--## ARGB can be used for real transparency
--## NOTE that a composite manager is required for real transparency.
--## This option will not work as desired (in most cases) in conjunction with
--## own_window_type normal
-- own_window_argb_visual yes # Options: yes or no
--## When ARGB visuals are enabled, this use this to modify the alpha value
--## Use: own_window_type normal
--## Use: own_window_transparent no
--## Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
-- own_window_argb_value 0
minimum_width = 180, minimum_height = 180,--## w|h
maximum_width = 180,
gap_x = 0,--## l|r
gap_y = 0,--## u|d
alignment = 'middle_middle',
--###################### End Window Settings ###
--## Font Settings #############################
-- Use Xft (anti-aliased font and stuff)
use_xft = true,
font = 'Liberation Mono:bold:size=9',
--xftfont Fantasque Sans Mono:bold:size=9
-- Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha = 1,
-- Force UTF8? requires XFT ###
override_utf8_locale = true,
uppercase = false,
--######################## End Font Settings ###
--## Colour Settings ###########################
draw_shades = true,
default_shade_color = '#000000',
draw_outline = false,
default_outline_color = '#000000',
default_color = '#DCDCDC',-- Gainsboro
color0 = '#C0C0C0',-- Silver
color1 = '#778899',--LightSlateGray
color2 = '#F5F5DC',--Beige
color3 = '#87CEFA',--LightSkyBlue
color4 = '#48D1CC',--MediumTurquoise
color5 = '#FFDEAD',--NavajoWhite
color6 = '#00BFFF',--DeepSkyBlue
color7 = '#B0E0E6',--PowderBlue
color8 = '#FFD700',--Gold
color9 = '#CD5C5C',--IndianRed
--###################### End Colour Settings ###
--## Borders Section ###########################
draw_borders = false,
-- Stippled borders?
stippled_borders = 5,
-- border margins
border_inner_margin = 5,
border_outer_margin = 0,
-- border width
border_width = 2,
-- graph borders
--draw_graph_borders yes
--default_graph_size 15 40
--###################### End Borders Section ###
--## Miscellaneous Section #####################
-- Boolean value, if true, Conky will be forked to background when started.
background = true,
-- Adds spaces around certain objects to stop them from moving other things
-- around, this only helps if you are using a mono font
-- Options: right, left or none
use_spacer = 'none',
-- Subtract (file system) buffers from used memory?
no_buffers = true,
-- change GiB to G and MiB to M
short_units = true,
-- Like it says, ot pads the decimals on % values
-- doesn't seem to work since v1.7.1
pad_percents = 2,
-- Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
-- $image lots. Set to 0 to disable the image cache.
imlib_cache_size = 0,
-- Use the Xdbe extension? (eliminates flicker)
-- It is highly recommended to use own window with this one
-- so double buffer won't be so big.
double_buffer = true,
-- Default and Minimum size is 256 - needs more for single commands that
-- "call" a lot of text IE: bash scripts
--text_buffer_size 6144
-- Maximum size of user text buffer, i.e. layout below TEXT line in config file
-- (default is 16384 bytes)
--max_user_text 16384
-- Desired output unit of all objects displaying a temperature. Parameters are
-- either "fahrenheit" or "celsius". The default unit is degree Celsius.
--temperature_unit Fahrenheit
--################ End Miscellaneous Section ###
--## LUA Settings ##############################
----------------------------------
--lua_load /media/5/Conky/LUA/draw-bg.lua
--lua_draw_hook_pre draw_bg 10 0 0 0 0 0xffffff 0.05
--lua_draw_hook_pre draw_bg 0 0 0 0 0 0x000000 0.15
--lua_draw_hook_post draw_bg 10 0 0 0 0 0xffffff 0.5
--lua_draw_hook_post draw_bg 10 0 0 0 0 0x000000 0.25
# };
conky.text = [[
#${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}
#
lua_draw_hook_pre main
lua_load /media/5/Conky/LUA/MarkW-12.lua
############################ End LUA Settings ###
update_interval 1
TEXT
${image /media/5/Conky/images/BL-Orb-Flame-lt-180x180.png -p 0,0}\
${image /media/5/Conky/images/MarkW/clock-face-RN.3ar.png -p 10,10 -s 160x160}]];
But 2000+ conkys
EDIT: convert.lua: Actually, No not quite - has at least one error.
Conky v1.9 has a little tutorial about using lua scripts and has a commented
# TEXT
line in it:
### LUA Settings ##############################
#--------------------------------
#lua_load /media/5/Conky/LUA/draw-bg.lua
#lua_draw_hook_pre draw_bg 10 0 0 0 0 0xffffff 0.05
#lua_draw_hook_pre draw_bg 0 0 0 0 0 0x000000 0.15
#lua_draw_hook_post draw_bg 10 0 0 0 0 0xffffff 0.5
#lua_draw_hook_post draw_bg 10 0 0 0 0 0x000000 0.25
#
# TEXT
#${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}
#
lua_draw_hook_pre main
lua_load /media/5/Conky/LUA/MarkW-12.lua
############################ End LUA Settings ###
the "convert.lux" used that as the start of the TEXT section even thouh it was commented:
--## LUA Settings ##############################
----------------------------------
--lua_load /media/5/Conky/LUA/draw-bg.lua
--lua_draw_hook_pre draw_bg 10 0 0 0 0 0xffffff 0.05
--lua_draw_hook_pre draw_bg 0 0 0 0 0 0x000000 0.15
--lua_draw_hook_post draw_bg 10 0 0 0 0 0xffffff 0.5
--lua_draw_hook_post draw_bg 10 0 0 0 0 0x000000 0.25
# };
conky.text = [[
#${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}
#
lua_draw_hook_pre main
lua_load /media/5/Conky/LUA/MarkW-12.lua
############################ End LUA Settings ###
update_interval 1
TEXT
${image /media/5/Conky/images/BL-Orb-Flame-lt-180x180.png -p 0,0}\
${image /media/5/Conky/images/MarkW/clock-face-RN.3ar.png -p 10,10 -s 160x160}]];
The reason for that tutorial is a reminder that you can run lua scripts two wats:
→ before the TEXT section
lua_draw_hook_pre main
lua_load /media/5/Conky/LUA/MarkW-12.lua
TEXT
→ after the TEXT section
lua_draw_hook_post main
TEXT
lua_load /media/5/Conky/LUA/MarkW-12.lua
And the results are different.
Last edited by Sector11 (2024-11-23 13:59:31)
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
And the results are different.
Hello, my friend.
I'm writing with fat fingers on a smart phone. Very awkward for old people.
Internet will probably be available to me again here in Wunderland in December.
---
You have 2x 'TEXT' in your conkyrc(1.9). Even if one is commented out with '#', it will still be evaluated by the lua-script. This is why the following errors occur.
Remove the '# TEXT' and you will be satisfied. The lua-script will work correctly.
Offline
Sector11 wrote:And the results are different.
Hello, my friend.
I'm writing with fat fingers on a smart phone. Very awkward for old people.
Internet will probably be available to me again here in Wunderland in December.
---
You have 2x 'TEXT' in your conkyrc(1.9). Even if one is commented out with '#', it will still be evaluated by the lua-script. This is why the following errors occur.Remove the '# TEXT' and you will be satisfied. The lua-script will work correctly.
unklar you old dog (friend), how are you? I have missed you a lot.
You have misunderstood the problem.
A commented "TEXT" in a conky v1.9 has no problem at all above or even below the actual "TEXT" section start.
The problem entered when I ran "convert.lua" to convert the conky to a v1.10+ lua format.
- it converted the lua "tutorial area" above TEXT from this:
### LUA Settings ##############################
#--------------------------------
#lua_load /media/5/Conky/LUA/draw-bg.lua
#lua_draw_hook_pre draw_bg 10 0 0 0 0 0xffffff 0.05
#lua_draw_hook_pre draw_bg 0 0 0 0 0 0x000000 0.15
#lua_draw_hook_post draw_bg 10 0 0 0 0 0xffffff 0.5
#lua_draw_hook_post draw_bg 10 0 0 0 0 0x000000 0.25
#
# TEXT
#${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}
#
lua_draw_hook_pre main
lua_load /media/5/Conky/LUA/MarkW-12.lua
############################ End LUA Settings ###
To this:
--## LUA Settings ##############################
----------------------------------
--lua_load /media/5/Conky/LUA/draw-bg.lua
--lua_draw_hook_pre draw_bg 10 0 0 0 0 0xffffff 0.05
--lua_draw_hook_pre draw_bg 0 0 0 0 0 0x000000 0.15
--lua_draw_hook_post draw_bg 10 0 0 0 0 0xffffff 0.5
--lua_draw_hook_post draw_bg 10 0 0 0 0 0x000000 0.25
# };
conky.text = [[
#${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}
#
lua_draw_hook_pre main
lua_load /media/5/Conky/LUA/MarkW-12.lua
############################ End LUA Settings ###
That or very similar commented section exists in over 280 conkys under /media/5/Conky that are more in other directories.
2024·11·24 @ 09:20:10 /media/5/Conky
$ ftxt '# TEXT'
S12_TD_Clock.conky 92:## TEXT 95:## TEXT
S11_Vert.conky 82:# TEXT
S11_MD_Cal-br_old.conky 117:# TEXT
wkdy.conky 153:# TEXT
net.conky 123:## TEXT 130:# TEXT
easysid/MechClock/conkyrc_clock
134:## TEXT 144:# TEXT
S11-topline.cal.conky 163:# TEXT
test.v9000.conky 128:## TEXT 138:# TEXT
TFH_Alert_2.conky 131:# TEXT
S11_MM_YearClock_2.conky 129:# TEXT
S11_BS_v9.conky 122:# TEXT
branding.conky 130:## TEXT 137:# TEXT
LostKnight.conky 135:## TEXT 142:# TEXT
t5test.conky 129:## TEXT 136:# TEXT
S11_Top-Right.conky 158:# TEXT
S11-greyclock12.conky 84:# TEXT
S11_Mounted_df.conky 153:# TEXT
BerlinClock.conky 184:# TEXT
S11_thin_side.conky 116:# TEXT
World_Weather-text.conky 133:# TEXT
3quarks/test.conky 132:## TEXT 139:# TEXT
BBT.conky 136:## TEXT 143:# TEXT
Calendar_LUA.conky 142:# TEXT
S11_Corner_TR.conky 135:## TEXT 145:# TEXT
S11_topconky 165:# TEXT
S12_Clock.conky 92:## TEXT 95:## TEXT
S11_alarm.conky 142:# TEXT
S11_HappyNewYear.conky 159:# TEXT
TeoWeatherClock-2/Teo_Clock_wun.conky 167:# TEXT
TeoWeatherClock-2/Teo_Clock_2.conky 166:# TEXT
TeoWeatherClock-2/LUA/Teo_Weather_Clock.lua 161: ## TEXT
S11_thin_l_side_i3_spaceport_wall.conky 115:# TEXT
S11_MD_Cal-br_2_2.conky 115:# TEXT
BL_Latm_Keyboard.conky 131:## TEXT 138:# TEXT
Dr.Bunsen.thinks.conky 176:## TEXT 191:## TEXT 222:## TEXT 246:## TEXT
worldtimeclock.conky 132:## TEXT 139:# TEXT
S11_Email_1.conky_with_lavabit 134:# TEXT
S11_ASCII.conky 139:# TEXT
Yoda.conky 175:# TEXT
S11_Star_Clock_2.conky 118:# TEXT
S11_MD_System.conky 128:## TEXT 138:# TEXT
S11_Email_02.conky 118:# TEXT
ohnonot.conky 132:## TEXT 139:# TEXT
S11_topline_cal.conky 156:# TEXT
S11_remind-cal.conky 159:# TEXT
openweather/openweather.conky 130:## TEXT 137:# TEXT
test.world.time.conky 135:## TEXT 142:# TEXT
S11_cal.C512.conky 134:## TEXT 143:# TEXT
LuaCal/1.9.conky 130:## TEXT 137:# TEXT
S11_thin_r3_side.conky 84:# TEXT
S11-t.accu.wx_tacross.conky 129:# TEXT
S11_CB_Shortcuts 135:# TEXT
S11-t.accu.wx_tl.conky 130:# TEXT
t2test.conky 129:## TEXT 136:# TEXT
S11_thin_l_wx.conky 112:# TEXT
S11_BAR.conky 99:# TEXT
S11_Debian_7.8.conky 135:# TEXT
MrEd_Tube-Time.conky 126:## TEXT 133:# TEXT
BL-MarkW.conky 139:# TEXT
ForgottenTales.conky 130:## TEXT 137:# TEXT
S11_Arg-blue.conky 133:# TEXT
S11_OJO_L.conky 147:# TEXT
BL-MarW.conky 141:# TEXT
S11_Mounted.conky 153:# TEXT
olgmen-clock/olgmen-clock.conky 125:## TEXT
S11.conky 146:# TEXT
conkymain-may-2017 150:# TEXT
S11_cal.C512_play.conky 133:## TEXT 142:# TEXT
bclock/oops.conky 128:# TEXT
bclock/conkyrc 128:# TEXT
S11_MD_Cal-br_2.conky:keep 118:# TEXT
S11_all-text-2.conky 142:# TEXT
S11_WTD.conky.txt 147:## TEXT 157:# TEXT
7.screens.conky 130:## TEXT 140:# TEXT
PetroDawg/conky_PD_S11_combo_tr 123:# TEXT
PetroDawg/conky_PD_S11_2 123:# TEXT
PetroDawg/conky_current_too-many-fonts 60:# TEXT
PetroDawg/conky_too-many-fonts 60:# TEXT
PetroDawg/calendar_current_S11 149:# TEXT
PetroDawg/conky_cal_PD_S11_2 123:# TEXT
PetroDawg/conky_current 61:# TEXT
PetroDawg/conky_font 124:# TEXT
PetroDawg/conky_PD_S11_combo_tl 123:# TEXT
PetroDawg/conky_PD_S11 123:# TEXT
PetroDawg/conky_cal_PD_S11 123:# TEXT
S11-BL.conky 140:# TEXT
Teo_wun/T-wun_36.conky 138:# TEXT
Teo_wun/T-wun_2.conky 120:# TEXT
Teo_wun/T_all-text_wun_H.conky 140:# TEXT
Teo_wun/T_all-text_wun.conky 140:# TEXT
Teo_wun/T-wun_36.conky_publish 138:# TEXT
Teo_wun/T-wun_V_DN.conky 135:# TEXT
Teo_wun/T-wunClock.conky 166:# TEXT
Teo_wun/T-wun.conky 135:# TEXT
Teo_wun/T_all-text_wcom_H.conky 140:# TEXT
Teo_wun/T-wun_all.conky 120:# TEXT
Teo_wun/T-wun_fd.conky 143:# TEXT
Teo_wun/T-wun_fd.conky_UC 143:# TEXT
Teo_wun/T_all-text_wun_2.conky 140:# TEXT
Teo_wun/T-wun_3.conky 124:# TEXT
Teo_wun/LUA/Teo_Weather_Clock.lua ## TEXT
Teo_wun/T_all-text_wun.conky_bak 140:# TEXT
Teo_wun/T_all-text_wun_H_2.conky 140:# TEXT
S11-Grey-Clock.conky 84:# TEXT
S11_v9_corner.conky 128:## TEXT 138:# TEXT
SuperKarambatest.conky 131:## TEXT 138:# TEXT
wheels.conky 131:## TEXT 139:# TEXT
LK.7.conky 116:# TEXT
S11_Vert_x.conky 117:# TEXT
S11_all-text.conky 128:# TEXT
FT_Sun_Mopom.conky 129:## TEXT 136:# TEXT
S11_all-text.conky_2 137:# TEXT
test.conky.old 131:## TEXT 138:# TEXT
Time_Dot_Calendar_LUA.conky 141:# TEXT
S11_Teo_Top.conkyrc 136:# TEXT
V9-hourly-data.conky 149:# TEXT
S11_MD_Cal-br.conky2 118:# TEXT
S11_thin_l_side_old_w.com.conky 116:# TEXT
S11_Binary3.conky 134:# TEXT
hrhr.conky 81:# TEXT
test.conky 136:## TEXT 143:# TEXT
S11_wx.bsas_1.conky 116:# TEXT
S11_MD_Cal-tm_1.conky 118:# TEXT7
S11_MD_Cal-br.conky 118:# TEXT
steampunk.watch.conky 125:## TEXT 132:# TEXT
S11_MD_Cal-br_1.conky 115:# TEXT
S11_FL8.conky 127:## TEXT 137:# TEXT
S11_MD_Cal-br_2_talktime.conky 118:# TEXT
S11-time.conky 131:## TEXT 141:# TEXT
CDN_weather/CDN_2.conky 128:## TEXT 138:# TEXT
CDN_weather/CDN.conky 128:## TEXT 138:# TEXT
CDN_weather/liloo-t.accu.wx_tr.conky 129:# TEXT
yaws162/yaws.detail.conky 118:# TEXT
yaws162/yaws.conky 118:# TEXT
4_Moon_archive_20200305/conkyrc_4_Moon_2_OLD 150:# TEXT
4_Moon_archive_20200305/conkyrc_4_Moon_2_OLD_DO_NOT_USE 150:# TEXT
S11-BunsenLabs-Flame-lt-sm.conky 160:# TEXT
fortran.conky 131:## TEXT 138:# TEXT
clicky.conky 127:## TEXT 134:## TEXT
S11_VNSTAT.conky 115:## TEXT
seconds.conky 82:# TEXT
S11_thin_r_side_i3_spaceport_wall.conky 116:# TEXT
S11_Binary2.conky 134:# TEXT
S11-time_L.conky 120:# TEXT
S11_MD_Cal-br_3.conky 121:# TEXT
MrEd_Tube-Time-Date.conky 126:## TEXT 133:# TEXT
S11-time_tm.conky 129:# TEXT
TFH_Alert.conky 129:# TEXT
S11_topconky-oops 164:# TEXT
S11_Binary.conky 134:# TEXT
steampunk.clocks.conky 125:## TEXT 132:# TEXT
S11_Word.time.conky 143:# TEXT
test.world.times.conky 130:## TEXT 137:# TEXT
S11-d1-right.conky.old 83:## TEXT
S11_pos.conky 139:# TEXT
Ardesia.conky 130:## TEXT 137:# TEXT
S11-bm.conky 84:## TEXT
TFH_Alert_3.conky 130:# TEXT
S11_Binary3a.conky 134:# TEXT
time.conky 82:# TEXT
test.mono.conky 129:## TEXT 136:# TEXT
Chronograph_mrpeachy.conky 151:# TEXT
yaws16/yaws.conky 155:# TEXT
S11_v9_Vert-manual.conky 122:## TEXT
perfect.conky 130:## TEXT 137:# TEXT
S11_Email_0a.conky 133:# TEXT
S11_Corner_Time.conky 139:# TEXT
S11_MD_Cal-br_2.conky 119:# TEXT
S11_OJO_R.conky 147:# TEXT
S11_Vert.conkyrc 118:## TEXT 127:# TEXT
S11_3-liner-top 255:# TEXT
S11_Star_Clock.conky 140:# TEXT
S11_TM_Corner.conky 132:## TEXT 142:# TEXT
S11_Keyboard_2.conky 136:# TEXT
S11_thin_r_side_BL.conky 112:# TEXT
BunsenLabs-Branding.conky 140:# TEXT
t3test.conky 129:## TEXT 136:# TEXT
S11_UVI.conky 97:# TEXT
fd_v9000_1.conky 128:## TEXT 138:# TEXT
S11_BL-Button.conky 118:# TEXT
S11_Roots.conky 163:# TEXT
S11-t.accu.wx_tr.conky 129:# TEXT
S11_CB_Shortcuts.conky 135:# TEXT
test.date.time.conky 131:## TEXT 138:# TEXT
S11-d1-right.with.cal.conky 83:## TEXT
CBLCB.conky 117:# TEXT
S11_Full8.conky 127:## TEXT 137:# TEXT
TeoWeatherClock/Teo_Clock.conky 166:# TEXT
TeoWeatherClock/Teo_Clock_2.conky_weather.com
166:# TEXT
TeoWeatherClock/Teo_Clock_2.conky 166:# TEXT
TeoWeatherClock/LUA/Teo_Weather_Clock.lua
161: ## TEXT
S11_Currency_02.conky 117:# TEXT
conkyrc/.conkyrc1 140:# TEXT
conkyrc/.conkyrc5 148:# TEXT
conkyrc/.conkyrc3 140:# TEXT
conkyrc/.conkyrc_desk 142:# TEXT
conkyrc/.conkyrc2 140:# TEXT
conkyrc/.conkyrc_easysid 143:# TEXT
conkyrc/.conkyrc_bak 140:# TEXT
S11_v9000_test.conky 146:# TEXT
S11-topline.conky 155:# TEXT
S11-Grey-Clock-test.conky 84:# TEXT
orbit.conky 129:## TEXT 136:# TEXT
S11-BunsenLabs-Text-lt-sm.conky 165:# TEXT
t4test.conky 129:## TEXT 136:# TEXT
S11_MM_YearClock.conky 124:# TEXT
t1test.conky 129:## TEXT 136:# TEXT
test.faketime.conky 172:# TEXT
S12/S12_v9_HnD.conky 148:# TEXT
S12/S12_v9_10d-3.conky 153:# TEXT
S12/S12_time.conky 131:## TEXT 141:# TEXT
S12/S12_t.accu.wx_tr.conky 129:# TEXT
S12/S12_v9_H.conky 146:# TEXT
S12/S12_HiLiloo.conky 131:## TEXT 138:# TEXT
S12/S12_wx-1b2_tm.conky 133:# TEXT
S12/S12_t.accu.wx_tl.conky 130:# TEXT
S12/S12_v9_H_2.conky 153:# TEXT
S12/S12_t.accu.wx_tacross.conky 129:# TEXT
errorist.conky 127:## TEXT 137:# TEXT
S11_Connie.conky 132:## TEXT 139:# TEXT
S11_World.conky 145:## TEXT 155:# TEXT
kyw5lien.conky 143:## TEXT 150:# TEXT
S11_MD_Cal-br_2_old.conky 118:# TEXT
S11_thin_r2_side.conky 85:# TEXT
ncal.test.conky 107:## TEXT 116:# TEXT
S11_Binary.conky_orig 134:# TEXT
.conkyrc2 103:## TEXT
text.conky 132:## TEXT 139:# TEXT
S11_Jugsaw-T.conky 133:## TEXT 143:# TEXT
test2.conky 130:## TEXT 137:# TEXT
DiceClock/Dice-Date.conky 123:## TEXT 133:# TEXT
DiceClock/Dice-Clock-bg.conky 132:## TEXT 142:# TEXT
DiceClock/Dice-Date-bg.conky 122:## TEXT 132:# TEXT
DiceClock/Dice-Clock.conky 133:## TEXT 143:# TEXT
DiceClock/Dice-Date-t.conky 123:## TEXT 133:# TEXT
DiceClock/Dice-Clock-t.conky 133:## TEXT 143:# TEXT
steampunk.decoder.conky 125:## TEXT 132:# TEXT
S11_v9_Vert.conky 122:## TEXT
test.desktop.conky 122:## TEXT 129:# TEXT
S11_CB_Modified_conky 135:# TEXT
S11_TL_Corner.conky 134:## TEXT 144:# TEXT
S11-BunsenLabs-Text-dk-sm.conky 165:# TEXT
S11_thin_r_side.conky 107:# TEXT
YAWS/yaws-1.6/yaws_6_9d.conky 153:# TEXT
YAWS/yaws-1.6/yaws_6_sm.conky 153:# TEXT
YAWS/yaws-1.6/yaws_6.conky 153:# TEXT
YAWS/yaws-1.6/yaws_6_4d.conky 153:# TEXT
YAWS/yaws.conky 153:# TEXT
S11-d1-right.conky 83:## TEXT
t7test.conky 129:## TEXT 136:# TEXT
S11_3-liner-top.conky 140:# TEXT
t6test.conky 129:## TEXT 136:# TEXT
S11_thin_l2_side.conky 84:# TEXT
Grey-Clock-ututo.conky 81:## TEXT 88:# TEXT
S11_Date-Time-Wx.conky 134:## TEXT 143:# TEXT
test.another.conky 135:## TEXT 142:# TEXT
LINUX.conky 131:## TEXT 138:# TEXT
S11_MD_Cal-br_test.conky 118:# TEXT
S11_Arg-blue.conky_2 133:# TEXT
S11-time_R.conky 120:# TEXT
steampunk.clock.IV.2.conky 125:## TEXT 132:# TEXT
S11_Top_Centre.conky 141:# TEXT
steampunk.mugen.clock.conky 125:## TEXT 132:# TEXT
steampunk.gear.clock.2.300.conky 125:## TEXT 132:# TEXT
LUA/Teo_Weather_Clock.lua 163: ## TEXT
LUA/My_Latest_conky.txt 153:# TEXT 493:# TEXT 827:# TEXT
LUA/Teo_Weather_Clock_1.lua 125:## TEXT
LUA/chrono_lua/Teo_Weather_Clock.lua 163:## TEXT
LUA/chrono_lua/Teo_Weather_Clock_1.lua 161: ## TEXT
LUA/chrono_lua/Teo_Weather_Clock_3.lua 161: ## TEXT
LUA/chrono_lua/Teo_Weather_Clock_0.lua 162: ## TEXT
LUA/chrono_lua/s11_clock.lua 157:## TEXT
LUA/Teo_Weather_Clock_3.lua 161:## TEXT
LUA/f80-intelliCrono.lua 163: ## TEXT
LUA/Teo_Weather_Clock_0.lua 162: ## TEXT
LUA/s11_clock.lua 157: ## TEXT
haunted.conky 126:## TEXT
conky_clock/conky.conky 135:# TEXT
S11_thin_l_side.conky 116:# TEXT
to-boldly-go.conky 130:## TEXT 137:# TEXT
S11-BunsenLabs-Flame-dk-sm.conky 165:# TEXT
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
@MarkW
I sent the files as a .ZIP file.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Got em. Cheers
Offline
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
RadioTrayNG - Now Playing
https://forums.bunsenlabs.org/viewtopic … 76#p135976
I usually use a keyboard shortcut (Ctrl + Super + Alt + R) to enable/disable the RadioTray_NG conky.
I thought it would be nice to skip that step when I turn off radiotray-ng.
If you find it interesting, just add this to the end of the script:
# Disable conky if radiotray-ng does not play
sleep 0.4
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
fi
Note *
Inside the awk command is the conky name (RadioTray_NG).
If you use a different name just replace it.
EDIT
When changing radio stations, conky may turn off unexpectedly.
The bug was fixed by adding sleep 0.4 (or more) at the beginning of the code.
Last edited by marens (2024-12-09 16:40:20)
If people would know how little brain is ruling the world, they would die of fear.
Offline
revisiting an old friend.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline