You are not logged in.
ERROR:
conky: llua_do_call: function conky_setup execution failed: /home/unklar/.config/conky/LUA/main.lua:52: attempt to index local 'file' (a nil value)
LUA code line 52:
local output = file:read("*a");
So those seem to match
ERROR:
conky: llua_do_call: function conky_main execution failed: /home/unklar/.config/conky/LUA/main.lua:108: attempt to perform arithmetic on global 'width' (a nil value)
lua code line 108
local centerx = width/2;
Second match
conky code:
minimum_width = 1366,
maximum_width = 1366,
You do have a width defined.
To follow up on what damo said:
lua code line 117:
local file = io.popen("usr/sbin/route -n | grep -c '^0\.0\.0\.0'");
And you said you had a dual core. So maybe:
local file = io.popen("usr/sbin/route -n | grep -c '^0\.0'");
But I'm dead in the water when it comes to LUA, maybe it is just checking checking for a "possible" 4 core/cpu CPU. Others would know better than me.
Also to note about CPUs and Conky:
Intel CPUs talk about X "CORE"s
AMD CPUs talk about X "CPU"s
Conky doesn't care it calls them all CPUs
and ${cpu cpu0} is the average of your dual core CPU:
So you can show 3:
Avg: ${cpu cpu0}
----------
1: ${cpu cpu1}
2: ${cpu cpu2}
Conky manual:
cpu (cpuN)
CPU usage in percents. For SMP machines, the CPU number can be provided as an argument. ${cpu cpu0} is the total usage, and ${cpu cpuX} (X >= 1) are individual CPUs.
No sense in my trying this as I do not use "spotify".
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
@Sector11
Sorry, my good friend, I am on the hot beach and the heat had clouded my brain.
Finally, I can confirm @damo's solution, as I only have a Pentium4 available here.
That's a typo. It is only a PentiumM here and not a Pentium4. 8)
It was just a test to confirm @damo's statement. That's all I wanted and, my box doesn't give the rest.
inxi -CG
CPU: Topology: Single Core model: Intel Pentium M bits: 32 type: MCP L2 cache: 2048 KiB
Speed: 600 MHz min/max: 600/1400 MHz Core speed (MHz): 1: 600
Graphics: Device-1: Intel 82852/855GM Integrated Graphics driver: i915 v: kernel
Display: x11 server: X.Org 1.20.4 driver: intel unloaded: fbdev,modesetting,vesa
resolution: 1024x768~50Hz
OpenGL: renderer: Mesa DRI Intel 852GM/855GM x86/MMX/SSE2 v: 1.3 Mesa 18.3.6
snip]
${color1}${font Inconsolata:light:size=8}Aureola Gambodekuno v2.0.3${font}
${font Inconsolata:bold:size=12}${color1}\
${color1}
#${if_running spotify}:
#${voffset 490}${goto 770}${execi 5 dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 1 "album"|egrep -v "album"|cut -b 44-|cut -d '"' -f 1|egrep -v ^$}
#${voffset 00}${goto 770}${execi 5 dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 2 "artist"|egrep -v "artist"|egrep -v "array"|cut -b 27-|cut -d '"' -f 1|egrep -v ^$}
#${execi 5 dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 1 "title"|egrep -v "title"|cut -b 44-|cut -d '"' -f 1|egrep -v ^$}
#${execi 6 ~/.config/conky/spotify-cover.sh}
#${image ~/.config/conky/last_album_pic.png -p 760,580 -s 80x80 -f 5}${else}${endif}
[snip
Last edited by unklar (2021-06-26 15:37:59)
Offline
@Sector11
Sorry, my good friend, I am on the hot beach and the heat had clouded my brain.
Well my friend, our situations are opposite:
I'm in a cold room and old age has clouded my brain.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
@ misko_2083
Hope you get well soon!
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
@ misko_2083
Hope you get well soon!
+10
@S11 -
I keep meaning to ask you, for the digital clock in this screenshot, top of screen, can the greyed-out part of the clock be dimmed a bit more so it's not so noticeable? And is that a clock application or a conky clock?
Last edited by PackRat (2021-06-26 16:49:51)
You must unlearn what you have learned.
-- yoda
Offline
@PackRat
^Without prejudging the master , the last time he had dealt with this was here.
Of course you can make the color 778899 (LightSlateGray) of the numbers 88:88:88 lighter. I like to use this page as a comparison.
Offline
@PackRat
^Without prejudging the master, the last time he had dealt with this was here.
Of course you can make the color 778899 (LightSlateGray) of the numbers 88:88:88 lighter. I like to use this page as a comparison.
Thanks.
My uber simple conky with just some basic information:
some color changes as warnings:
conky.config = {
--#############################################
-- Settings
--#############################################
background = true,
use_xft = true,
font = 'Roboto Mono:regular:size=10',
xftalpha = 1.0,
update_interval = 3.0,
update_interval_on_battery = 10.0,
total_run_times = 0,
own_window = true,
own_window_colour = '#111112',
own_window_transparent = true,
-- own_window_type = 'normal/desktop/override/panel/dock'
own_window_type = 'desktop',
-- own_window_type = 'dock',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_class = 'Conky',
own_window_title = 'Conky',
--#############################################
-- Compositing tips:
-- Conky can play strangely when used with
-- different compositors. I have found the
-- following to work well, but your mileage
-- may vary. Comment/uncomment to suit.
--#############################################
-- -- compton/xfce transparency change own_window_transparent to false.
-- own_window_argb_visual = true,
-- own_window_argb_value = 180,
--#############################################
no_buffers = true,
uppercase = true,
cpu_avg_samples = 2,
override_utf8_locale = true,
short_units = true,
imlib_cache_size = 0,
pad_percents = 1,
-- max_specials = '2048',
max_user_text = 3200,
text_buffer_size = 1024,
no_buffers = true,
if_up_strictness = 'address',
double_buffer = true,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
border_inner_margin = 8,
border_outer_margin = 2,
-- default_color = '#607D8B',
-- default_color = '#DAC79C',
default_color = '#686652',
default_shade_color = '#090909',
default_outline_color = '#828282',
color0 = '#FFFFFF',
color1 = '#000000',
color2 = '#FF0000',-- - red
color3 = '#FFFF00',-- - yellow
color4 = '#0000FF',-- - blue
color5 = '#00FF00',-- - green
color6 = '#FFA500',-- - orange
-- color7 = '#DAC79C',
color7 = '#686652', -- - match default
color8 = '#DA9920',-- - gold
color9 = '#F00F16',-- - reddish
minimum_width = 180, minimum_height = 0,
maximum_width = 180,
alignment = 'br',
gap_x = 24,
gap_y = 48,
-- -- doesn't work when docked in the slit or as panel --#
-- lua_load = '~/conky/transbg.lua',
-- lua_draw_hook_pre = 'draw_bg 4 0 0 0 0 0x0A0A0A 0.15',
-- ${voffset 6}Mem:${goto 60}${if_match ${memperc}<=50}${color7}${else}${if_match ${memperc}<=70}${color8}${else}${if_match ${memperc}>70}${color9}${endif}${endif}${endif}${memperc}%${color}
-- ${voffset 4}${battery_bar 4,116 BAT0}
-- CPU:${goto 64}${cpu cpu0}%${goto 116}Mem:${alignr 8}${memperc}%
-- ${voffset 6}UP:${goto 60}${uptime_short}
};
conky.text = [[
CPU:${goto 60}${if_match ${cpu}<=50}${color7}${else}${if_match ${cpu}<=70}${color8}${else}${if_match ${cpu}>70}${color9}${endif}${endif}${endif}${cpu cpu0}%${color}\
${alignr 8}${execpi 5 /home/doug/bin/cpu-temp.pl | cut -c1-7}
${voffset 6}BAT:${goto 60}${execpi 60 acpi -b | awk '/Battery 0/ {print $3}' | cut -c1-4}${alignr 8}${if_match ${battery_percent BAT0}<=15}${color9}${blink ${battery_percent BAT0}%}${color}${else}${if_match ${battery_percent BAT0}<=33}${color8}${battery_percent BAT0}%${else}${if_match ${battery_percent BAT0}>33}${color7}${battery_percent BAT0}%${endif}${endif}${endif}${color}
${voffset 6}NET:${goto 60}${wireless_bitrate wlp1s0}${alignr 8}${wireless_link_qual_perc wlp1s0}%
]];
Last edited by PackRat (2021-06-27 16:48:47)
You must unlearn what you have learned.
-- yoda
Offline
Offline
Cinnamon, wall by @bronto, GTKs by me...
https://imgur.com/zS4HAU4t.png
Damn. I need black for the selected foreground color.
There's a conky in the upper-right corner! Wow! Thank you for sharing this here on the conky thread. It's very innovative, yet so minimalistic. But where is the conky's selected foreground color? I'm confused. Care to share the code?
Offline
^Meant for the screenshot thread, sorry.
No, he can't sleep on the floor. What do you think I'm yelling for?!!!
Offline
Sector11 wrote:@ misko_2083
Hope you get well soon!
+10
@S11 -
I keep meaning to ask you, for the digital clock in this screenshot, top of screen, can the greyed-out part of the clock be dimmed a bit more so it's not so noticeable? And is that a clock application or a conky clock?
Sorry I totally missed your post.
Yea that clock is pure conky and the "LED_mono" font.
It's just perfect IMHO!
The code needed:
xftfont LED_mono:size=60
color1 778899 #LightSlateGray
color2 FAEBD7 #AntiqueWhite
update_interval 1
TEXT
${goto 13}${color1}88:88:88${goto 13}${color2}${time %T}${color}
@ unklar - thank you for replying.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
@ unklar - thank you for replying.
Gladly!
^Young people need to support each other.
Offline
Offline
Offline
Hello
Radiotray-ng 2021
The conky work with my radio for yours yo must change blabla , logo for your station & xx
${if_match "${execi 4 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.station'}" == "blabla"} ${lua fDrawImage ~/.conky/radiotrayng/logos/blabla.png XXX XX XX XX}
conkyrc
conky.config = {
background = true,
use_xft = true,
font = 'Liberation Sans:size=7',
xftalpha = 1,
update_interval = 1.0,
total_run_times = 0,
own_window = true,
own_window_transparent = true,
--own_window_color 000000
own_window_argb_visual = true,
--own_window_argb_value = 250,
own_window_type = 'normal',
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
double_buffer = true,
minimum_width = 400, minimum_height = 100,
--maximum_width 200
text_buffer_size = 2048,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
default_color = 'white',
default_outline_color = 'white',
alignment = 'top_left',
gap_x = 780,
gap_y = 50,
no_buffers = true,
uppercase = false,
cpu_avg_samples = 2,
override_utf8_locale = true,
imlib_cache_flush_interval = 60,
imlib_cache_size = 10000,
-- Taille des pointillés
stippled_borders = 5,
-- Couleurs
default_color = '#ffffff',--ffd579
default_shade_color = '#333333',
default_outline_color = 'black',
lua_load = '~/.conky/lua/image.lua',
};
conky.text = [[
${texeci 8 ~/.conky/radiotrayng/pochette.sh}
${voffset -4}${alignc -90}${font GE Inspira:size=12}${execi 5 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.station'}$font ${goto 340}Vol: ${exec amixer get Master | awk 'NR==5{print $4}' | tr -d {[]}}
${voffset 33}${alignc}${execi 4 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.artist'}
${alignc}${execi 4 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.title'}
${lua fDrawImage $HOME/.conky/radiotrayng/images/case.png 0 0 410 108}
${if_match "${execi 4 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.station'}" == "RTL"} ${lua fDrawImage ~/.conky/radiotrayng/logos/rtl.png 240 32 50 50} ${else}
${if_match "${execi 4 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.station'}" == "Hotmixradio 80"} ${lua fDrawImage ~/.conky/radiotrayng/logos/hotmix80.png 248 28 35 35} ${else}
${if_match "${execi 4 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.station'}" == "Maxi 80"} ${lua fDrawImage ~/.conky/radiotrayng/logos/maxi80.png 250 29 35 35} ${else}
${if_match "${execi 4 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.station'}" == "RTL2"} ${lua fDrawImage ~/.conky/radiotrayng/logos/rtl2.png 240 32 45 45} ${else}
${if_match "${execi 4 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.station'}" == "MAGNUM LA RADIO"} ${lua fDrawImage ~/.conky/radiotrayng/logos/magnumradio.png 204 26 120 40}${else}
${if_match "${execi 4 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.station'}" == "Radio Swiss Pop"} ${lua fDrawImage ~/.conky/radiotrayng/logos/rspop.png 250 30 35 35} ${else}
${if_match "${execi 4 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.station'}" == "RFM"} ${lua fDrawImage ~/.conky/radiotrayng/logos/rfm.png 244 35 45 45} ${else}
${if_match "${execi 4 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.station'}" == "80's & 90's hits"} ${lua fDrawImage ~/.conky/radiotrayng/logos/80-90.png 248 28 35 35} ${else}
${if_match "${execi 4 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.station'}" == "Best Hits Radio 80's"}${lua fDrawImage ~/.conky/radiotrayng/logos/80.png 248 28 35 35} ${endif}
${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}
${if_match "${execi 4 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.title'}" == ""}${lua fDrawImage ~/.conky/radiotrayng/logos/radio.png 19 10 78 78}
${else}${lua fDrawImage ~/pochette.png 24 14 68 70}${endif}
#${lua fDrawImage ~/.conky/radiotrayng/logos/radio.png 19 10 78 78}
${lua fDrawImage ~/.conky/radiotrayng/images/stop.png 115 31 13 13}
${lua fDrawImage ~/.conky/radiotrayng/images/prev.png 100 45 13 13}
${lua fDrawImage ~/.conky/radiotrayng/images/play.png 115 45 13 13}
${lua fDrawImage ~/.conky/radiotrayng/images/next.png 130 45 13 13}
${lua fDrawImage ~/.conky/radiotrayng/images/pause.png 115 59 13 13}
${lua fDrawImage ~/.conky/radiotrayng/images/bar.png 98 78 48 4}
${lua fDrawImage ~/.conky/radiotrayng/images/grip.png 115 78 5 5}
${lua fDrawImage ~/.conky/radiotrayng/images/1-play.png 155 15 10 10}
${voffset -800}
]];
pochette.sh
#!/bin/bash
#créé par loutch
#2018-12-27 modifier par TeoBigusGeekus et loutch pour radiotray-ng et conky 1.10
#2021-02-20 modifier par nic80 et loutch pour google 2021
qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep artist |sed 's/^.*" \: "//' |sed 's/",.*$//' > artiste_titre.txt
qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep title |sed 's/^.*" \: "//' |sed 's/",.*$//' >> artiste_titre.txt
titre=$(cat artiste_titre.txt)
lynx --source -useragent="Googlebot-Image/1.0" "www.google.com/search?q=$titre\&tbm=isch" | perl -pe 's!.*<img .* src="([^"]*)".*!$1!' > lienMiniaturefile
sed -i 's/^.* http\:/http\:/' lienMiniaturefile
sed -i '/gstatic/!d' lienMiniaturefile
lienMiniature=$(cat lienMiniaturefile)
lynx -dump "$lienMiniature" > miniatureGoogleImage
convert miniatureGoogleImage pochette.png
image pack for background & other here
Radio images if no cover or title found
@+
Last edited by loutch (2021-07-03 12:52:13)
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
@loutch
Merci beaucoup d'avoir partagé ce chef-d'œuvre de Conky avec tous les fans de Conky.
Mon ami, je suis particulièrement impressionné par le fait que vous n'ayez pas abandonné au sujet de l'erreur de script et que vous ayez persévéré pour trouver une solution.
#2021-02-20 modifier par nic80 et loutch pour google 2021
Merci à lui aussi !
-------------------
Thank you for sharing this Conky masterpiece with all Conky fans.
My friend, I am especially impressed that you didn't give up because of the script error and persevered to find a solution.
--
Thanks to him too!
Offline
Hello
@ unhlar
Ich bin auch auf der Suche nach Skripten, um meinen conky audacious-clic neu zu gestalten.
Ein Conky-click mit der Version 1.10 ist nicht einfach zu machen.
Die 1.9-Version war wirklich großartig.
Im Moment verwende ich auf einigen meiner Distributionen Clementine und Covergloobus.
Leider wird Coverglobus nicht mehr gepflegt und ist nur noch für Ubuntu-Varianten verfügbar keine funktionierende .rpm
@+
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
@loutch many thanks!
Something else to play with.
I'll have to remove the station-specific parts though, because I have too many radio station bookmarks...
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
Hello
Radiotray-ng 2021
@+
WOW!!!!
As always loutch another masterpiece.
A must try {dusting off earphones}
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
loutch wrote:Hello
Radiotray-ng 2021
@+WOW!!!!
As always loutch another masterpiece.
A must try {dusting off earphones}
Thank you very much.
Especially from a great conkystador like you.
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