You are not logged in.
Hello!
I am working on this conky theme tinkering in ~/.conkyrc
Things were going pretty well, conky -d was reflecting all my appends.
Then I tried to apply a custom lua config and conky was not able to load the llua etc.
I literally tried everything, looked things up online, and finally dug up a "[Solution]" on ArchForums where it said to install an older version conky_lua from AUR/git.
Ever since then, Conky went nuts:
conky: Syntax error (/root/.conkyrc:37: '}' expected (to close '{' at line 1) near '=') while reading config file.
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:139: attempt to index a nil value (local 'settings')I quadblahruple-checked my syntaxes, then -Rs conky_lua, -S conky 1.10.8-2, backed up rc, deleted, and went line by line.
Then I got a string of error messages: "can't load font [...]" even when I switched it to a system standard font....... maybe something is wrong with conky..... but it loads without the rc file. :S
Here is my .conkyrc:
conky.config = {
background = true,
update_interval = 2,
#i set cpu samples to a higher level because i don't necessarily need moment-to-moment samples
cpu_avg_samples = 2,
net_avg_samples = 2,
out_to_console = false,
override_utf8_locale = true,
double_buffer = true,
no_buffers = true,
text_buffer_size = 32768,
imlib_cache_size = 0,
wn_window = true,
own_window_transparent = false,
own_window_type = 'override',
own_window_argb_visual = true,
own_window_argb_value = 50,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
border_inner_margin = 10,
border_outer_margin = 0,
xinerama_head = 0,
alignment = 'top_left',
gap_x = 5,
gap_y = 50,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
use_xft = true,
font = 'FontAwesome Mono:size=7',
xftalpha = 0.8,
uppercase = false,
default_color = '#FFFFFF',
own_window_colour = '#000000',
minimum_width = 0, minimum_height = 0,
maximum_width = 200,
#lua_load = '~/.config/conky/conky_uoo.lua',
#lua_draw_hook_post = 'main'
};
conky.text = [[
# MACHINE INFO
${color #c7b9ff}${font FontAwesome bold:size=10}${nodename}$machine ${alignr}${color #5500ff}${font bold:size=7}${kernel}
# TIME
${color #00fbff}${font FontAwesome bold:size=8}${voffset 4}${alignr} ⱺ ${time %h.%d.%y} ⱺ ${color #00fbff}${voffset -0}${font FontAwesome bold:size=8}${time %H:%M}
# WEATHER (I can't seem to find a way to align this properly!!)
${goto 20}${color}${texeci 1800 curl -s wttr.in | sed -n '3,7{s/\d27\[[0-9;]*m//g;s/^..//;s/ *$//;p}'}
# UPTIME
${voffset 4}${goto 20}${color #ff9c11}Uptime:${goto 80}${color}${alignr}${uptime}
# THREADS / PROCESSES
${goto 20}${color #ff9c11}Threads/Processes:$color${alignr}$threads/$processes${voffset 0}
# BATTERY
${if_match ${battery_percent BAT1} <= 10}\
${goto 20}${color #1e0084}${blink Battery:} \
$else \
${goto 20}${color #ff9c11}Battery: \
$endif\
${goto 80}${color}${voffset 2}${alignr}${battery_bar BAT1}${voffset 8}${goto 144}${font}${color #c7b9ff}${battery BAT1}${alignr}
${voffset -4}${hr}
# NETWORK
${if_up wlp2s0}\
${goto 20}${color}${font FontAwesome}${font} WLAN channel: ${wireless_channel wlp2s0}, freq: ${wireless_freq wlp2s0}
${voffset -4}${goto 20}${font FontAwesome}ⱺ${font}${voffset 0} ${addrs wlp2s0} MA ${wireless_ap wlp2s0}
${goto 20}${voffset -4}${upspeedgraph wlp2s0 18,90 00ffff 00ff00}${alignr}${downspeedgraph wlp2s0 18,90 FFFF00 DD3A21}
${voffset -4}${color #c7b9ff}${goto 20}ⱺ ${upspeed wlp2s0}${alignr}ⱺ ${font}${downspeed wlp2s0}
$endif\
# HD
${goto 20}${color}${font FontAwesome}ⱺ${font} Samsung SpinPoint M7 ${alignr}${fs_bar 7,60}
${goto 20}${color}${voffset -4}${diskiograph_read 18,90 06E9F8 2104FA}${goto 118}${diskiograph_write 18,90 FFFF00 DD3A21}
${goto 20}${voffset -4}${color #c7b9ff}${font}${goto 20}ⱺ${font} ${diskio_read}${font}${alignr}ⱺ${font} ${diskio_write}
# MEMORY
${goto 20}${font FontAwesome}${color}ⱺ${font}${voffset -2} ${mem}/${memmax} (${memperc}%) | Swap: ${swapperc}%
${voffset -4}${goto 20}${memgraph 18,190 FF0500 00735B -l }
${voffset -4}${goto 20}${font FontAwesome}ⱺ${font}${color} Intel® Core™ i5-2430M @ 2.40GHz
${alignr}CPU ${cpubar 7,80cpu0}
# TEMPERATURES
${goto 20}${color #FFFF00}GPU ${color}${hwmon 0 temp 1}°C \
${color #FFFF00}FAN ${color} ${acpifan} ${color #FFFF00}ACPI ${color}${acpitemp}°C
# CPU
${goto 20}${color #c7b9ff}1: ${color}${goto 32}${cpu cpu1}%${goto 52}${cpubar 7,15 cpu1}${goto 70}${freq_g 1}GHz${goto 110} | ${color #c7b9ff}3: ${goto 132}${color}${cpu cpu3}%${goto 152}${cpubar 7,15 cpu3}${goto 170}${freq_g 2}GHz
${goto 20}${color #c7b9ff}2: ${goto 32}${color}${cpu cpu2}%${goto 52}${cpubar 7,15 cpu2}${goto 70}${freq_g 3}GHz${goto 110} | ${color #c7b9ff}4:${goto 132}${color}${cpu cpu4}%${goto 152}${cpubar 7,15 cpu4}${goto 170}${freq_g 4}GHz
${hr}
# PROCESSES
${color #FFFF00}${goto 20}Name ${goto 110}Pid${goto 148}Cpu%${alignr}Mem%${color}
${goto 20}${top name 1}${goto 108}${top pid 1}${goto 148}${top cpu 1}${alignr}${top mem 1}
${goto 20}${top name 2}${goto 108}${top pid 2}${goto 148}${top cpu 2}${alignr}${top mem 2}
${goto 20}${top name 3}${goto 108}${top pid 3}${goto 148}${top cpu 3}${alignr}${top mem 3}
${goto 20}${top name 4}${goto 108}${top pid 4}${goto 148}${top cpu 4}${alignr}${top mem 4}
${goto 20}${top name 5}${goto 108}${top pid 5}${goto 148}${top cpu 5}${alignr}${top mem 5}
${hr}
# CONNECTIONS
#${color}ESTABLISHED Connections${color}${hr 2}
#${offset 10}${color}Inbound: ${color}${tcp_portmon 1 32767 count} ${color}Outbound: ${color}${tcp_portmon 32768 61000 count}${alignr}${color}Total: ${color}${tcp_portmon 1 65535 count}
#${color}Process ${color}Remote Host ${color}L-Port ${alignr}${color}R-Port${color}
#${texeci 10 netstat -ap | grep 'ESTABLISHED' | sed -r 's|.*[0-9.]+:([0-9]*)\s*([^:]+):([a-zA-Z]+)[^/]+/([a-zA-Z0-9]*)|\4 \2 \1 \3|' | awk '{printf("%-14s %-20s %5s %7s\n",$1,$2,$3,$4)}'}
#old way for network
${goto 20}${#ff9c11}Port(s)${alignr}
${goto 20}${color}Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 61000 count}${alignr}ALL: ${tcp_portmon 1 65535 count}
${goto 20}${color #c7b9ff}InboundConnection ${alignr}Local Service/Port${color}
${goto 20}${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
${goto 20}${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
${goto 20}${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
${goto 20}${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
${goto 20}${color #c7b9ff}OutboundConnection ${alignr}Remote Srvc/Port${color}
${goto 20}${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
${goto 20}${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
${goto 20}${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
${goto 20}${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
${goto 20}${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
#For MPD
#add music_player_interval =
#${goto 20}${if_mpd_playing}${font}${mpd_title}${mpd_album}${mpd_artist}${mpd_elapsed}/ ${mpd_length} ${mpd_status}
#${goto 20}${mpd_bar 7, 180 FF0500 00735B}
#$else ..:: MPD not running ::..
#$endifI've been working on this for days from scratch, teaching myself to use Cairo text vectors (vector graphics are a pain in even a visual interface; Cairo is pretty masochistic rggfffrtggffwhyyyggggg- I didn't attach my .lua file as I can't even get the entire thing to load), manually typing it in. I'm guessing there must be a far better, faster, easier way to do this, but I am not versed in programming languages and methods yet.
It was created by reworking combinations of sections from samples and
http://conky.sourceforge.net/config_settings.html and http://conky.sourceforge.net/variables.html ... I don't know what else I can tell you.
...........
If you can point me towards solving my lua loading problems also please let me know. ...
Thanks much! <3
Last edited by nimxut (2019-03-15 19:44:26)
Offline
Please use code, not quote, tags when pasting to the boards: https://wiki.archlinux.org/index.php/Co … s_and_code
Offline
o it is fixed. xD
Offline