Leftwm: Conky: interesting issue.

Created on 18 May 2021  路  7Comments  路  Source: leftwm/leftwm

Hello,

I have been using this configuration for years, but when I start Conky on LeftWM it draw over every window started after it.

After several tweaks I discovered if I switch own_window_argb_visual = true, (enable true transparency) it works as expected; however, I don't use a composite and Conky have a black background .

Are you aware of anyway to make it work without enabling true transparency?

Thank you!

conky.config = {

    alignment      = 'top_right',
    background      = false,
    double_buffer       = true,

    own_window      = true,
    own_window_class    = 'conky',
    own_window_type     = 'override',
    own_window_transparent  = true,
    own_window_argb_visual  = false,

    draw_borders        = false,
    draw_graph_borders  = false,
    draw_outline        = true,
    draw_shades         = true,

    default_color       = '#f2f4f8',
    default_shade_color     = '#f2f4f8',
    default_outline_color   = '#000000',
    default_shade_color = '#f2f4f8',

    font            = 'Ohsnapu:size=8',
    use_xft         = true,
    xftalpha        = 100,

    uppercase       = false,
    format_human_readable   = true,
    short_units     = true,

    gap_x           = 7,
    gap_y           = 30,
    minimum_height      = 5,
    minimum_width       = 237,
    border_width        = 2,

    use_spacer      = 'left',

    no_buffers      = true,
    out_to_console      = false,
    out_to_stderr       = false,
    extra_newline       = false,

    cpu_avg_samples     = 2,
    net_avg_samples     = 2,
    diskio_avg_samples  = 2,
    update_interval     = 2.0,
    total_run_times     = 0

}

All 7 comments

Try some of these options which allows my conky to work.

own_window_type = 'dock',   
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',

Thanks.

Unfortunately not, with this configuration Conky don't show up at all! :-)

Heres my conky (haven't updated it in a while):

conky.config = {
    background = true,
    use_xft = true,
    font = 'MesloLGS NF:style=Bold:pixelsize=13',
    xftalpha = 0.5,
    update_interval = 1,
    total_run_times = 0,
    own_window = true,
    own_window_type = 'dock',
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
    own_window_argb_visual = false,
    --own_window_argb_value = 230,
    own_window_transparent = true,
    --own_window_colour = '#2d2d2d',
    double_buffer = true,
    minimum_width = 350, minimum_height = 5,
    maximum_width = 350,
    draw_shades = false,
    draw_outline = false,
    draw_borders = false,
    draw_graph_borders = false,
    default_color = '#e6e6e6',
    default_shade_color = 'red',
    default_outline_color = 'green',
    alignment = 'top_right',
    --ximerama_head = 3,
    gap_x = 1934,
    gap_y = 48,
    no_buffers = true,
    uppercase = false,
    cpu_avg_samples = 2,
    override_utf8_locale = false,
};

conky.text = [[
System Info ${hr 2}

${color #bd93f9}${uid_name 1000}$color - $sysname $kernel
${color #bd93f9}Uptime:$color $uptime ${color lightgrey}${color #bd93f9}
Load:$color $loadavg${color lightgrey}

${color #bd93f9}CPU: ${color lightgrey}${execi 10000000 lscpu | grep 'Model name' | sed -r 's/Model name:\s{1,}(.*) @ .*z\s*/\1/g' | sed -e 's/CPU//'}
Core 1: ${cpubar cpu1 6,150}$alignr ${cpu cpu1}%  ${freq_g 1}GHz
Core 2: ${cpubar cpu2 6,150}$alignr ${cpu cpu2}%  ${freq_g 2}GHz
Core 3: ${cpubar cpu3 6,150}$alignr ${cpu cpu3}%  ${freq_g 3}GHz
Core 4: ${cpubar cpu4 6,150}$alignr ${cpu cpu4}%  ${freq_g 4}GHz
Core 5: ${cpubar cpu5 6,150}$alignr ${cpu cpu5}%  ${freq_g 5}GHz
Core 6: ${cpubar cpu6 6,150}$alignr ${cpu cpu6}%  ${freq_g 6}GHz
Core 7: ${cpubar cpu7 6,150}$alignr ${cpu cpu7}%  ${freq_g 7}GHz
Core 8: ${cpubar cpu8 6,150}$alignr ${cpu cpu8}%  ${freq_g 8}GHz

CPU utilisation$alignr ${cpu cpu0}%
${cpubar cpu0}
${cpugraph ff79c6 ffb2f0}
${color #bd93f9}GPU: ${color lightgrey}${execi 10000000 nvidia-smi --query-gpu=gpu_name --format=csv,noheader} - ${execi 10000000 nvidia-smi --query-gpu=driver_version --format=csv,noheader} 
Frequency: ${nvidia gpufreq}Mhz Tempature: ${nvidia temp}C

GPU utilisation$alignr ${execp nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader | sed -e 's/ %//'}%
${execbar nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader | sed -e 's/ %//'}

Memory ${hr 2}

MEM $alignc $mem / $memmax $alignr $memperc%
$membar

SWAP $alignc $swap / $swapmax $alignr $swapperc%
$swapbar

Top Processes ${hr 2}
$alignr $processes processes

NAME          $alignr PID    CPU    MEM
${top name 1} $alignr ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} $alignr ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} $alignr ${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} $alignr ${top pid 4} ${top cpu 4} ${top mem 4}
${top name 5} $alignr ${top pid 5} ${top cpu 5} ${top mem 5}

Network ${hr 2}

Down:    ${downspeed enp5s0}
${downspeedgraph enp5s0 ff79c6 ffb2f0}
Up:          ${upspeed enp5s0}
${upspeedgraph enp5s0 ff79c6 ffb2f0}
]];

own_window_argb_visual doesn't seem to make a difference for me.

Didn't work either. Conky not showing at all, and I'm thinking this is platform specific.

I will try to find out what is going on, and if I find I report later. For now I would close this issue.

Thank you.

I am on Manjaro Linux and have the same issue except that I already had own_window_argb_visual = true set. Changing window type to dock does not help. Only started after last update. It is strange though. If I reload conky without reloading leftwm config conky is behind any windows already open but stays on top of any new windows. But if I reload leftwm config it's back on top. I tried moving the command to launch conky to the end of my up script and even added a sleep before loading conky. That made no difference.

The behavior has been very inconsistent. I just retried setting window type to dock did seem to work.

I had an interesting conky misbehaviour my self, when I screwed up theme.toml while testing #329.
I forgot to switch from the config stale where gutters where configured as a singe line option to the final style like this

[[gutter]]
side = "Top"
value = 0

This led to leftwm using the internal default theme and seemingly conky din't like this and spawned all it's windows floating, even though the theme.toml was fixed.
After a reboot for a full system update conky is back to normal.

So I guess you could try to explicitly add a gutter (like the above which doesn't actually do anything) to your theme.toml and do a hard reload of leftwm.

Uuuhm, never mind. The issue is still here for me, gonna triage this further, but my guess now it is somewhat related to eww having windows open..

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cjwyett picture cjwyett  路  4Comments

uncomfyhalomacro picture uncomfyhalomacro  路  4Comments

mautamu picture mautamu  路  5Comments

Stanislav-Lapata picture Stanislav-Lapata  路  6Comments

tommasoxd picture tommasoxd  路  4Comments