You are not logged in.

#1 2016-02-22 12:50:09

BIOM
Member
Registered: 2016-02-22
Posts: 2

[SOLVED][DWM] Show conky with "own_window" set to false and Compton...

Conky will not "stay" on my desktop if I start either Compton or Cairo while the "own_window" conky.conf option is set to "false". Because I use dwm, setting it to "true" interferes with the rest of my desktop by creating a separate window (go figure) that can be tiled like the others. Additionally, this window does not show on all desktops, only the one it's assigned to.

I tested some changes with Openbox, and the same problem occurs with "own_window" set to "false". The only difference is that "own_window" set to "true" results in the effect I desire with "false": conky running on the desktop, visible behind transparent terminals.

I've changed multiple options within conky and compton (none in cairo) that relate to transparency, shadows, window type, and color, yet nothing has resolved this issue. I would like to have true transparency AND conky running on the desktop background, but I've so far been unable to find ANY solution. Any help that could be provided would be awesome.  For a rough example of what I'm trying to accomplish, look at post #159  in https://bbs.archlinux.org/viewtopic.php?id=74599&p=7

Below are my conky.conf and compton.conf settings:

conky.config = {
    alignment = 'top_left',
    background = false,
    border_width = 1,
    cpu_avg_samples = 2,
    default_color = 'green',
    default_outline_color = 'yellow',
    default_shade_color = 'white',
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    use_xft = true,
    font = 'profont:size=10',
    gap_x = 1,
    gap_y = 20,
    minimum_height = 5,
    minimum_width = 5,
    net_avg_samples = 2,
    no_buffers = true,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    own_window = false,  <----THIS IS THE CULPRIT. Changing this option to true creates a window in dwm that can be directly manipulated. This does not occur in Openbox. 
    own_window_class = 'Conky',
    own_window_type = 'desktop', <---- I've changed this to normal, override (with own_window_transparent instead of own_window_argb_visual), panel, and dock.
    own_window_argb_visual = 'override', <---- Changed to own_window_transparent = true
    own_window_argb_value = 100,
    stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    show_graph_scale = false,
    show_graph_range = false
}
backend = "glx";
glx-no-stencil = true;
glx-copy-from-front = false;
glx-swap-method = "undefined";
shadow = false; <---- This was originally set to true.
no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true;
shadow-radius = 5;
shadow-offset-x = -5;
shadow-offset-y = -5;
shadow-opacity = 0.5;
shadow-exclude = [
    "! name~=''",
    "name = 'Notification'",
    "name = 'Plank'",
    "name = 'Docky'",
    "name = 'Kupfer'",
    "name = 'xfce4-notifyd'",
    "name *= 'VLC'",
    "name *= 'compton'",
    "name *= 'Chromium'",
    "name *= 'Chrome'",
    "class_g = 'Conky'",
    "class_g = 'Kupfer'",
    "class_g = 'Synapse'",
    "class_g ?= 'Notify-osd'",
    "class_g ?= 'Cairo-dock'",
    "class_g ?= 'Xfce4-notifyd'",
    "class_g ?= 'Xfce4-power-manager'",
    "_GTK_FRAME_EXTENTS@:c"
];
shadow-ignore-shaped = false;
menu-opacity = 1;
inactive-opacity = 1;
active-opacity = 1;
frame-opacity = 1;
inactive-opacity-override = false;
alpha-step = 0.06;
blur-background-fixed = false;
blur-background-exclude = [
    "window_type = 'dock'",
    "window_type = 'desktop'"
];
fading = true;
fade-delta = 4;
fade-in-step = 0.03;
fade-out-step = 0.03;
fade-exclude = [ ];
mark-wmwin-focused = true;
mark-ovredir-focused = true;
use-ewmh-active-win = true;
detect-rounded-corners = true;
detect-client-opacity = true;
refresh-rate = 0;
vsync = "opengl-swc";
dbe = false;
paint-on-overlay = true;
sw-opti = true;
unredir-if-possible = true;
focus-exclude = ["n:a:Conky"];
detect-transient = true;
detect-client-leader = true;
wintypes:
{
    tooltip =
    {
        fade = true;
        shadow = false;
        opacity = 100;
        focus = true;
    };
};

Last edited by BIOM (2016-02-22 19:11:26)

Offline

#2 2016-02-22 15:07:24

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: [SOLVED][DWM] Show conky with "own_window" set to false and Compton...

in my case ( on i3 ) own window true works well and it does not create new window, my config is as below

conky.config = {
    alignment = 'bottom_left',
    background = true,
    border_width = 1,
    cpu_avg_samples = 2,
	default_color = 'white',
    default_outline_color = 'white',
    default_shade_color = 'white',
    draw_borders = false,
    draw_graph_borders = false,
    draw_outline = false,
    draw_shades = false,
    use_xft = true,
    font = 'Anonymous Pro:size=16', 
    gap_x = 15,
    gap_y = 18,
    minimum_height = 5,
	minimum_width = 30,
    net_avg_samples = 2,
    double_buffer = true,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'override',
    own_window_transparent = true,
    stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    show_graph_scale = true,
    show_graph_range = false
}

Offline

#3 2016-02-22 15:45:40

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED][DWM] Show conky with "own_window" set to false and Compton...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2016-02-22 19:10:55

BIOM
Member
Registered: 2016-02-22
Posts: 2

Re: [SOLVED][DWM] Show conky with "own_window" set to false and Compton...

jasonwryan wrote:

I stand corrected. I'll hopefully remember this if I have any future issues.

Docbroke wrote:

in my case ( on i3 ) own window true works well and it does not create new window, my config is as below

I copied your config to my conky.conf, and it worked! Looks like "own_window = true" and "own_window_type = 'override'" resolved the issue, but I'm positive I tried that combination before posting, so I feel a bit confused and silly. Regardless, it's working now, and I thank you for your help!

For anyone's future reference, here's my new conky.conf:

conky.config = {
    alignment = 'top_left',
    background = false,
    border_width = 1,
    cpu_avg_samples = 2,
    default_color = 'green',
    default_outline_color = 'yellow',
    default_shade_color = 'white',
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    use_xft = true,
    font = 'profont:size=10',
    gap_x = 1,
    gap_y = 20,
    minimum_height = 5,
    minimum_width = 5,
    net_avg_samples = 2,
    no_buffers = true,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'override',
    own_window_argb_visual = true,
    own_window_argb_value = 0,
    stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    show_graph_scale = false,
    show_graph_range = false
}

Offline

Board footer

Powered by FluxBB