Conky Support, Codes and Screenshots

PackRat

#435
All kinds of lua scripts are breaking. Multi core CPU scripts don't seem to work well either.

Do you have wireless jedi? Are the wireless objects working?

Edit - never mind; had some time and installed from the repos myself. All the objects are working so I missed something compiling myself.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

jedi

#436
@PackRat, yes I have wireless only actually.  No ethernet in the house due to laziness.  ::)
Here is my conkyrc that works with my wireless;


conky.config = {
-- By jedi, See me on VSIDO, nixnut.com or on Google+
background = false,
use_xft = true,
font = 'monofur:size=9',
xftalpha = 0.8,
update_interval = 1,
total_run_times = 0,
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
double_buffer = true,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
stippled_borders = 0,
border_width = 1,
default_color = '#000000',
color1 = '#212021',
color2 = '#00FF0E',--E8E1E6 B4AD3F 0FF605
color3 = '#ECEC34',--1BD0F5 3B64A0 B4AD3F
color4 = '#008EF3',--B43617
color5 = '#F3001A',--269E16
default_shade_color = '#000000',
default_outline_color = '#000000',
minimum_width = 620, minimum_height = 200,
maximum_width = 620,
gap_x = 155,
gap_y = 110,
alignment = 'top_right',
uppercase = false,
cpu_avg_samples = 2,
net_avg_samples = 2,
short_units = true,
text_buffer_size = 2048,
use_spacer = 'none',
override_utf8_locale = true,

};

conky.text = [[
${goto 200}${color2}${font ADELE:size=70}${time %l:%M %P}${font ADELE:size=22}${color2}
${goto 235}${time %B %d, %Y}
${font Caviar Dreams:size=11}${execi 2600 cat /etc/issue.net}: ${voffset -3}${font monofur:size=11}${color3}jedi${color2}  ${font Caviar Dreams:size=11}${color2}${goto 185}Kernel: ${color3}${kernel} ${color2}${goto 450}Up: ${color FF6100}${uptime}
${font Caviar Dreams:size=11}${color2}Cpu: ${color3}${cpu cpu0}%  ${color4}${hwmon 1 temp 1}º${color4}C  ${goto 130}Mem: ${color3}${memperc }% ${goto 205}${color2}Root: ${color3}${fs_used_perc /}%  ${color4}${hddtemp /dev/sda}º${color4}C ${goto 335}${color2}Home: ${color3}${fs_used_perc /home}% ${color3} ${goto 425}${color2}DATA: ${color3}${fs_used_perc /media/DATA}%  ${color4}${hddtemp /dev/sdb}º${color4}C
${font Caviar Dreams:size=9}${goto 125}${color3}${mem}${color2}/${color3}${memmax}${color2} ${goto 225}${color3}${fs_used /}${color2}/${color3}${fs_size /}${color2} ${goto 315}${color3}${fs_used /home}${color2}/${color3}${fs_size /home}${color2} ${goto 425}${color3}${fs_used /media/DATA}${color2}/${color3}${fs_size /media/DATA}${color2}

${goto 50}${font Caviar Dreams:size=11}WiFi: ${color3}${addr wlan0} ${color2} ${goto 200}Public IP: ${color3}${execi 300 wget -q -O - checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'} ${goto 380}${color2}${font Caviar Dreams:size=11} Dwn: ${color3}${font monofur:size=12}${downspeed wlan0} ${font Caviar Dreams:size=11}${color2} ${voffset -3}${goto 475}Up: ${color3}${font monofur:size=12} ${upspeed wlan0}   
${goto 250}${font Caviar Dreams:size=11}${color2}Pwr: ${color5}${battery_percent BAT0}%  ${color4}${battery_time BAT0}]];


Hope it helps...

Forum Netiquette

"No matter how smart you are you can never convince someone stupid that they are stupid."  Anonymous

PackRat

thanks jedi

the up/down for my wireless always worked; it was just the other info - like signal strength that wasn't working. Whatever the debian maintainer had to do is working.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

PackRat

Quote(I hope a certain Someone11 is shitting bricks)

Good call on that one.  8)
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

Snap

Need some help. I cannot make this work

./convert.lua ~/.conkyrc
bash: ./convert.lua: No such file or directory


Installed lua5.2 (had no lua previously installed), made /usr/share/doc/conky-all/convert.lua executable, got the result above.
Then copied the script into /usr/bin just in case. No luck.
Next made a copy into ~/bin. Again the same result.
Reverted all back to the starting point and tried again. Same same.

What am i missing?  ::)

Snap

Purged lua5.2 and installed 5.1. No difference....

So now lua is a kind of dependency for conky?

Fuck conky!!!!

PackRat

Verify that convert.lua is still executable after you copied it to /usr/bin and ~/bin

The try this:

/usr/bin/convert.lua ~/.conkyrc ~/.newconkyrc

or just

convert.lua ~/.conkyrc ~/.newconkyrc


I'm pretty sure that the ./ in:

./convert.lua

overrides your $PATH environment and restricts you to the current directory.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

Snap

Quote./convert.lua.


overrides your $PATH environment and restricts you to the current directory

Every day learning something new. Didn't knew that about the dot slash way. Thanks, PackRat.

Snap

Now that use to have two conkys running most of the time The second one (conkyradio) behaves oddly.  Whe launched it gets placed where this dictates:

[app] (name=conky) (class=conky)
[Position] (TOPRIGHT) {13% 3%}
[Layer]        {12}
[end]


But when the first song ends and the parsed info changes to the next one it gets repositioned following the own conky configuration

alignment = "bottom_right",

I tried to fix this without success as follows. In conkyradio:

own_window_title = "conkyradio",

And in the apps file:

[app] (name=conky) (class=conky)
[Position] (TOPRIGHT) {13% 3%}
[Layer]        {12}
[end]
[app] (name=conkyradio) (class=conky)
[Position] (BOTTOMRIGHT) {13% 3%}
[Layer]        {12}
[end]


It keeps doing the same, at launch it displays at the top right following the apps file and then it switches to the own conky config placement.

Any tips to get the secondary conkyradio placed where I want it from the start?

PackRat

You might be getting some conflict between the name and class of the two conkies - when conky refreshes, it's like reopening the window (app).

Use both lines in each conkyrc and give them unique class and names

own_window_class <unique class #1>
own_window_title <unique class #1>

own_window_class <unique class #2>
own_window_title <unique name #2>


you can also try to comment out the line

own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

so that each conky window is fully decorated, then when you have them positioned where you want them, use the fluxbox window menu to remember their positions etc ... and auto write to the ~/.fluxbox apps file. Then uncoment the line to remove the decor.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

PackRat

Quote from: Snap on July 24, 2015, 06:01:18 AM
Quote./convert.lua.


overrides your $PATH environment and restricts you to the current directory

Every day learning something new. Didn't knew that about the dot slash way. Thanks, PackRat.

Edit your user $PATH line in your .profile or .bashrc (wherever you have it) so it looks something like:

PATH=$PATH:$HOME/bin:$HOME/conky:./


and you will not have to place "./" before any commands when you're in a direcotry that is not in your $PATH.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

Snap

Awesome tips, Ratman. My conkys are correctly placed now.

.profile edited too.

Thanks several bunches.

PackRat

drive by posting - been using this one line conky for quite a while; may need to change it up:



conky.config = {
--#############################################
-- Settings
--#############################################
background = true,
use_xft = true,
-- font = 'Source Sans Pro:semibold:size=10',
font = 'Roboto Mono:Medium:size=10',
xftalpha = 1.0,
update_interval = 1.0,
-- update_interval_on_battery = 30.0,
total_run_times = 0,

own_window = true,
own_window_colour = '#1E1D1D',
own_window_transparent = false,
own_window_type = 'dock',
-- own_window_type desktop
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_class = 'ConkyFB',
own_window_title = 'ConkyFB',
--#############################################
-- 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.
--#############################################
--#
own_window_argb_visual = true,
--own_window_argb_value 2

--# xcompmgr
-- own_window_argb_visual yes
-- own_window_argb_value 120

--# cairo-compmgr
--own_window_type desktop
--own_window_argb_visual yes
--#############################################

no_buffers = true,
uppercase = false,
cpu_avg_samples = 2,
override_utf8_locale = true,
short_units = true,
imlib_cache_size = 0,
pad_percents = 1,
max_user_text = 3200,
text_buffer_size = 1024,
if_up_strictness = 'address',
double_buffer = true,
minimum_width = 1600, minimum_height = 18,
maximum_width = 1600,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
border_inner_margin = 1,
border_outer_margin = 1,

default_color = '#DAC79C',
default_shade_color = '#000000',
default_outline_color = '#828282',
color0 = '#FFFFFF',
color1 = '#000000',
color2 = '#FF0000',-- - red
color3 = '#FFFF00',-- - yellow
color4 = '#0000FF',-- - blue
color5 = '#00FF00',-- - green
color6 = '#FFA500',-- - orange
color7 = '#00CDCD',-- - cyan3
color8 = '#FFD700',-- - gold
color9 = '#F00F16',-- - reddish

alignment = 'top_middle',
gap_x = 0,
gap_y = 0,

-- -- doesn't seem to work when docked in the slit --#
--lua_load ~/conky/transbg.lua
--lua_draw_hook_pre draw_bg 8 0 0 0 0 0x140C0B 0.10

};

conky.text = [[
${voffset 2}${goto 24}Uptime:${offset 8}${uptime_short}${offset 32}\
Core1:${offset 8}${if_match ${hwmon 2 temp 2}<=50}${color7}${else}${if_match ${hwmon 2 temp 2}<=70}${color8}${else}${if_match ${hwmon 2 temp 2}>70}${color9}${endif}${endif}${endif}${hwmon 2 temp 2}${offset 2}°C${color}${offset 32}\
Core2:${offset 8}${if_match ${hwmon 2 temp 3}<=50}${color7}${else}${if_match ${hwmon 2 temp 3}<=70}${color8}${else}${if_match ${hwmon 2 temp 3}>70}${color9}${endif}${endif}${endif}${hwmon 2 temp 3}${offset 2}°C${color}${offset 32}\
CPU:${offset 8}${if_match ${cpu}<=50}${color7}${else}${if_match ${cpu}<=70}${color8}${else}${if_match ${cpu}>70}${color9}${endif}${endif}${endif}${cpu cpu0}%${color}${offset 16}${loadavg 1}${offset 8}${loadavg 2}${offset 8}${loadavg 3}${offset 32}\
Memory:${offset 8}${if_match ${memperc}<=50}${color7}${else}${if_match ${memperc}<=70}${color8}${else}${if_match ${memperc}>70}${color9}${endif}${endif}${endif}${memperc}%${color}${offset 32}\
Network:${if_up wlp3s0}${offset 8}${wireless_bitrate wlp3s0}${endif}${offset 16}${wireless_link_qual wlp3s0}/${wireless_link_qual_max wlp3s0}${offset 16}${if_match ${wireless_link_qual_perc wlp3s0}<=30}${color9}${blink ${wireless_link_qual_perc wlp3s0}%}${color}${else}${if_match ${wireless_link_qual_perc wlp3s0}<=50}${color8}${wireless_link_qual_perc wlp3s0}%${else}${if_match ${wireless_link_qual_perc wlp3s0}>50}${color7}${wireless_link_qual_perc wlp3s0}%${endif}${endif}${endif}${color}${offset 16}${if_up wlp3s0}Up:${offset 8}${upspeedf wlp3s0}${offset 16}Down:${offset 8}${downspeedf wlp3s0}${endif}${color}\
${alignr 20}${time %A  %e  %B}${offset 12}
]];
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

DrakarNoir

#448
Holiday greetings to all,

I have been away for quite some time (truth...I switched to Arch). I am hoping some of those whe were here (or perhaps refugees from the old #! days) are still here (Sector11, Wlrouf, mrPechy, et al) and perhaps some new friends, as I could use some help on a conky. As some of you may remember, I am not a programmer. I understand just enough code to get into trouble!

This is what the finished conky is to look like (this is actually two conky running one atop the other):



What I wish to do is combine the two conky and the subsequent three lua scripts into one conky, one lua.

The main conky (clock face)

The secondary (clock hands) conky

TIA

-DrakarNoir
--I can EXPLAIN it to you. I cannot UNDERSTAND it for you!

PackRat

Quote from: DrakarNoir on December 27, 2017, 08:48:17 PM
(or perhaps refugees from the old #! days) are still here (Sector11, Wlrouf, mrPechy, et al) and perhaps some new friends, a

TIA

-DrakarNoir

Most of them are here....

You'll have better luck asking there; I took a look at the conkyrc files; easy enough to get the path information changed and tweak the x and y offsets so the clock hands are on the clock.

As is, run the clock face conky first, then the clock hands so the hands are on top of the face. Combining those two conkyrc files so the hands lua script runs after the clock face lua scripts is beyond my expertise. Getting it all together in one conkyrc and one lua script may require some serious effort.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo