Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

< Solved> Conky flashing and cannot get it transparent.

Started by Oulik, December 11, 2020, 06:50:12 PM

Previous topic - Next topic

Oulik

Hope you can help me.

I have just installed Sparky Linux, and I am quite impressed. Version installed is the Sparky Linux 6 (Po-Tolo) version the XCFE variant
Moved over from Ubuntu.

I have installed conky and I simply cannot get it to work correctly.
I cannot make it transparent and it flickers all the time

Please help.

See my .conkyrc below

conky.config = {
-- # set to yes if you want Conky to be forked in the background
background = true,

-- # very imortant temp core 0 ----   ${execi 1 sensors | grep 'Core 0:' | cut -d+ -f2 | cut -c1-7}
-- # very imortant temp core 1 ----   ${execi 1 sensors | grep 'Core 1:' | cut -d+ -f2 | cut -c1-7}

cpu_avg_samples = 2,
net_avg_samples = 2,

out_to_console = false,

-- # X font when Xft is disabled, you can pick one with program xfontsel
-- #font 7x12
-- #font 6x10
-- #font 7x13
-- #font 8x13
-- #font 7x12
-- #font *mintsmild.se*
-- #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
-- #font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

-- # Use Xft?
use_xft = true,
-- # use_xft = true,

-- # Xft font when Xft is enabled
-- # xftfont = 'Bitstream Vera Sans Mono:size=12'
font = 'arial:size=13',

-- # own_window_transparent yes
-- # own_window_colour hotpink,
-- # Text alpha when using Xft,

own_window = true,
-- own_window_class = Conky,
own_window_type = conky,
-- own_window_type = 'desktop',
own_window_transparent = true,
own_window_argb_visual = true,
-- own_window_argb_visual = false,
own_window_colour = '000000',
own_window_argb_value = 0,
own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager,below',

xftalpha = 0.8,

on_bottom = false,

-- # mail spool
-- mail_spool = $MAIL,

-- # Update interval in seconds
update_interval = 1,
-- # Create own window instead of using desktop (required in nautilus)
-- #own_window = true,

-- # Use double buffering (reduces flicker, may not work for everyone)
double_buffer = true,

-- # Minimum size of text area
-- # minimum_size 280 5
-- # maximum_width 150

-- # Draw shades?
draw_shades = false,

-- # Draw outlines?
draw_outline = false,

-- # Draw borders around text
draw_borders = false,

-- # Stippled borders?
stippled_borders = 10,

-- # border margins
border_margin = 4,

-- # border width
border_width = 1,

-- # Default colors and also border colors
default_color = 'white',
-- # default color 00FFFFF
default_shade_color = 'white',
default_outline_color = white,

-- # Text alignment, other possible values are commented
-- #alignment top_left
-- #minimum_size 10 10
alignment = 'top_right',
gap_x = 10,
gap_y = 10,
-- #alignment = top_right
-- # alignment bottom_left
-- #alignment bottom_right

-- # Gap between borders of screen and text
-- # gap_x 24
-- # gap_y 24

-- # Add spaces to keep things from moving about?  This only affects certain objects. 'none', 'left', 'right'
use_spacer = 'left',

-- # Subtract file system buffers from used memory?
no_buffers = true,

-- # set to yes if you want all text to be in uppercase
uppercase = false,

-- # boinc (seti) dir
-- # seti_dir /opt/seti
}


-- # variable is given either in format $variable or in ${variable}. Latter
-- # allows characters right after the variable and must be used in network
-- # stuff because of an argument
-- #${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
-- #${font Verdana:size=10}as many times as I choose
-- #${font Perry:size=10}Including UTF-8,
-- #${font Luxi Mono:size=10}justo como este texto que o google traduz fêz o português
-- # stuff after 'TEXT' will be formatted on screen
-- #${font Grunge:size=12}${time %a  %b  %d}${alignr -25}${time %k:%M}

-- # TEXT
-- # ${color lightgrey}CPU Usage:${color #5000a0} ${cpu}% ${cpubar}
-- # ${color black}${cpugraph 000000 597DB2}
-- # ${color lightgrey}Core 1: ${freq 1} MHz        Temprature: $color
-- #I/O: ${alignr} R:${diskio_read}        //      W:${diskio_write}


conky.text = [[

$nodename - $sysname $kernel on $machine
$stippled_hr
${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg

${color lightgrey}CPU Usage:${color white} ${cpu}% ${color white} ${cpubar 18}

${color black}${cpugraph 000000 FF0000}
${exec sensors|grep 'Core0'|awk '{print $3}'}
${color white}Core 1: ${freq 1} MHz       
${cpu cpu1}% ${color white}${cpubar cpu1}$color
Core 2: ${freq 2} MHz       
${cpu cpu2}% ${color white}${cpubar cpu2}$color

${font}${color yellow}Processes: $processes  ${color yellow}Running: $running_processes ${color yellow} Temperature: ${acpitemp}°C

${color yellow}RAM Usage: $mem/$memmax - $memperc% $membar
${color yellow}Swap Usage: $swap/$swapmax - $swapperc% ${swapbar}
$color$stippled_hr
${color lightgrey}Networking:
Down:${color #22ccff} ${downspeed wlan0} ${color lightgrey} ${offset 70}Up:${color #22ccff} ${upspeed wlan0}
${color black}${downspeedgraph wlan0 32,150 ff0000 0000ff} $alignr${color black}${upspeedgraph wlan0 32,150 0000ff ff0000}
${color lightgrey}HD ${hr 2}
I/O:                  R:${diskio_read}            //           W:${diskio_write}
${color black}${diskiograph 000000 FF0000}
${color lightgrey}Home:
${fs_free /home}/${fs_size /home} ${alignr}${fs_bar 8,200 /home}
Root:
${fs_free /root}/${fs_size /root} ${alignr}${fs_bar 8,200 /root}


${color white}File systems:
/ $color${fs_used /}/${fs_size /} ${fs_bar /}
${color}Name              PID     CPU%   MEM%
${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color}Mem usage
${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
]]

Oulik

Interesting enough I solved the flashing by trial and error

When I modified this line:

I/O:                  R:${diskio_read}            //           W:${diskio_write}

Into:

I/O:         R:${diskio_read}       W:${diskio_write}

However, I cannot still get transparency.

paxmark1

I have not been there for awhile, but on checking the BunsenLabsForum they are up to 157 pages of post on conky.    Over the years they have been very accepting of people not using Bunsen posting conky problems and code they have used.   

PackRat used to post about his conky at VSIDO, but it has been awhile.

I strongly doubt that your problem is due to the Conky 1.10 Lua conversion.   Unless your code is from before 2016

https://forum.siduction.org/index.php?topic=5709.msg46555#msg46555

https://vsido.org/index.php?topic=18.435

My 10 y.o. wayland-Sway netbook died so I have no conkies at present.   


Search forum for "More info easier via inxi"    If requested -  no inxi, no help for you by  me.

Oulik

What I did as well is to install the sparky conky manager and I took that file and modified the "text part" still the same flashing and then put "### " before every line until I had the "offending line"
However, I still cannot get transparency

pavroo

1. Xfce Settings manager-> Window Manager Tweaks-> Compositor-> Enable display compositing

2. Edit Sparky Conky config removing all entries starting with: 'own_window' , shoud be 5 or 6.
3. Put the below lines instead of just removed:
own_window = true,
own_window_transparent = false,
own_window_argb_visual = true,
own_window_argb_value = 0,
own_window_type = 'desktop',


Save the config file and restart Conky via Sparky Conky manager (should restart itself).
Nothing is easy as it looks. Danielle Steel

Oulik

Thank you for your reply

In first instance this morning didn't want to work.
Switched on the machine and tried again (copy and paste that part again), and Eureka it worked finally.

Thank you so much I really appreciate your help.

I had to bring the following line back:
own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager,below',

This because when I deleted this line everytime I clicked on any icon on the desktop conky disappeared.

Again thanking you for your help, without your help I could not have achieved this result.


View the most recent posts on the forum