Author Topic: Conky Support, Codes and Screenshots  (Read 103917 times)

PackRat

  • Posts: 1795
    • View Profile
Re: Conky Support, Codes and Screenshots
« Reply #435 on: July 13, 2015, 09:35:06 PM »
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

  • DEFCON 1
  • Posts: 1491
  • Not all those who wander are lost.
    • View Profile
    • NixNut.com
Re: Conky Support, Codes and Screenshots
« Reply #436 on: July 13, 2015, 11:00:12 PM »
@PackRat, yes I have wireless only actually.  No ethernet in the house due to laziness.  ::)
Here is my conkyrc that works with my wireless;

Code: [Select]
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

  • Posts: 1795
    • View Profile
Re: Conky Support, Codes and Screenshots
« Reply #437 on: July 14, 2015, 01:54:50 AM »
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

  • Posts: 1795
    • View Profile
Re: Conky Support, Codes and Screenshots
« Reply #438 on: July 16, 2015, 01:14:52 PM »
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

  • Posts: 462
    • View Profile
Re: Conky Support, Codes and Screenshots
« Reply #439 on: July 23, 2015, 09:37:17 AM »
Need some help. I cannot make this work

Code: [Select]
./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

  • Posts: 462
    • View Profile
Re: Conky Support, Codes and Screenshots
« Reply #440 on: July 23, 2015, 10:31:46 AM »
Purged lua5.2 and installed 5.1. No difference....

So now lua is a kind of dependency for conky?

Fuck conky!!!!

PackRat

  • Posts: 1795
    • View Profile
Re: Conky Support, Codes and Screenshots
« Reply #441 on: July 23, 2015, 12:28:32 PM »
Verify that convert.lua is still executable after you copied it to /usr/bin and ~/bin

The try this:

Code: [Select]
/usr/bin/convert.lua ~/.conkyrc ~/.newconkyrc

or just

convert.lua ~/.conkyrc ~/.newconkyrc

I'm pretty sure that the ./ in:

Code: [Select]
./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

  • Posts: 462
    • View Profile
Re: Conky Support, Codes and Screenshots
« Reply #442 on: July 24, 2015, 06:01:18 AM »
Quote
Code: [Select]
./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

  • Posts: 462
    • View Profile
Re: Conky Support, Codes and Screenshots
« Reply #443 on: July 24, 2015, 09:01:47 AM »
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:

Code: [Select]
[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

Code: [Select]
alignment = "bottom_right",
I tried to fix this without success as follows. In conkyradio:

Code: [Select]
own_window_title = "conkyradio",
And in the apps file:

Code: [Select]
[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

  • Posts: 1795
    • View Profile
Re: Conky Support, Codes and Screenshots
« Reply #444 on: July 24, 2015, 12:22:58 PM »
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

Code: [Select]
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

Code: [Select]
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

  • Posts: 1795
    • View Profile
Re: Conky Support, Codes and Screenshots
« Reply #445 on: July 24, 2015, 12:27:04 PM »
Quote
Code: [Select]
./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:

Code: [Select]
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

  • Posts: 462
    • View Profile
Re: Conky Support, Codes and Screenshots
« Reply #446 on: July 25, 2015, 07:23:51 AM »
Awesome tips, Ratman. My conkys are correctly placed now.

.profile edited too.

Thanks several bunches.

PackRat

  • Posts: 1795
    • View Profile
Re: Conky Support, Codes and Screenshots
« Reply #447 on: September 08, 2016, 12:02:43 PM »
drive by posting - been using this one line conky for quite a while; may need to change it up:



Code: [Select]
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