brndnmtthws / conky

Light-weight system monitor for X, Wayland (sort of), and other things, too
https://conky.cc
GNU General Public License v3.0
7.17k stars 615 forks source link

Conky disappears when I click on the desktop #205

Closed kmr2319 closed 8 years ago

kmr2319 commented 8 years ago

When I click on the desktop, conky disappears, then a few seconds later reappears. If I'm in other windows its fine... Click on the desktop again, disappears again...

Conky version:

conky 1.10.2_pre compiled Mon Feb  1 17:41:10 EST 2016 for Linux 4.2.0-27-generic x86_64

Compiled in features:

System config file: /etc/conky/conky.conf
Package library path: /usr/local/lib/conky

 General:
  * math
  * hddtemp
  * portmon
  * builtin default configuration
  * old configuration syntax
  * apcupsd
  * iostats
  * ncurses
 X11:
  * XDBE (double buffer extension)
  * Xft
  * ARGB visual
  * Own window

 Default values:
  * Netdevice: eth0
  * Local configfile: $HOME/.conkyrc
  * Maximum netdevices: 64
  * Maximum text size: 16384
  * Size text buffer: 256

~/.conkyrc:

conky.config = {
    double_buffer = true,

    use_spacer = 'right',
    use_xft = true,

    update_interval = 5.0,

    maximum_width = 360,
    minimum_width = 360,
    minimum_height = 900,

    draw_shades = false,

    draw_outline = false,
    draw_borders = false,
    font = 'fixed',
    uppercase = false,
    text_buffer_size = 512,

    stippled_borders = 3,

    border_width = 6,

    default_color = '#FFFFCC',

    own_window = yes,
    own_window_class = 'Conky',
    own_window_type = dekstop,
    own_window_transparent = true,
    own_window_hints = below,

    alignment = 'top_right',

    gap_x = 10,
    gap_y = 10,

};

conky.text = [[
$color
${color CC9900}SYSTEM ${hr 2}$color
$nodename $kernel
UPTIME: ${uptime}

${color CC9900}CPU ${hr 2}$color
Intel Core i5 750 @ 2.67GHz

Total CPU: ${cpu cpu0}%
${color 597DB2}${cpubar}$color
${cpugraph 000000 597DB2}
1: ${freq 1}MHz  Temp: $color${exec sensors|grep 'Core 0'|awk '{print $3}'|sed 's/\xC2//g'|sed 's/\xb0//g'} ${cpu cpu1}% ${color 597DB2}${cpubar c
pu1}$color
2: ${freq 2}MHz  Temp: $color${exec sensors|grep 'Core 1'|awk '{print $3}'|sed 's/\xC2//g'|sed 's/\xb0//g'} ${cpu cpu2}% ${color 597DB2}${cpubar c
pu2}$color
3: ${freq 3}MHz  Temp: $color${exec sensors|grep 'Core 2'|awk '{print $3}'|sed 's/\xC2//g'|sed 's/\xb0//g'} ${cpu cpu3}% ${color 597DB2}${cpubar c
pu3}$color
4: ${freq 4}MHz  Temp: $color${exec sensors|grep 'Core 3'|awk '{print $3}'|sed 's/\xC2//g'|sed 's/\xb0//g'} ${cpu cpu4}% ${color 597DB2}${cpubar c
pu4}$color

NAME            PID  CPU%   MEM%
${color CCFFFF}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}$color

${color CC9900}MEMORY ${hr 2}$color
RAM Used: ${mem}    RAM Free: ${memfree}/ ${memmax}
RAM: $memperc%  ${color FF6600} ${membar 6}$color

${color CC9900}DISK ${hr 2}$color
ROOT: ${fs_free_perc /}% ${color FFFF33} ${fs_bar 6 /}$color
DATA: ${fs_free_perc /mnt/local/data}% ${color FFFF33} ${fs_bar 6 /mnt/local/data}$color
NAS : ${exec /mnt/local/data/scripts/nasRealFree.sh}% ${color FFFF33} ${execbar echo 100 - `/mnt/local/data/scripts/nasRealFree.sh` | bc -l}$color
SDA : ${diskio /dev/sda} ${color FFFF33}${diskiograph /dev/sda 10,210}${color}
SDB : ${diskio /dev/sdb} ${color FFFF33}${diskiograph /dev/sdb 10,210}${color}

${color CC9900}APC UPS ${hr 2}$color
${apcupsd localhost 3551}${apcupsd_status} Time Left: ${apcupsd_timeleft} Minutes
Charge: ${apcupsd_charge}% ${color 2EB82E}${execbar apcaccess -p BCHARGE | awk '{print $1}' | cut -d. -f1}
${apcupsd_loadgraph}${color}

${color CC9900}NETWORK (${addr eth0}) ${hr 2}$color
Down: $color${downspeed eth0} k/s ${alignr}Up: ${upspeed eth0} k/s
${downspeedgraph eth0 25,140 000000 ff0000} ${alignr}${upspeedgraph eth0
25,140 000000 00ff00}$color
Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}
Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768
61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}

]];

Config was converted from old syntax and then modified further.

Saw some suggestions that I attempted to implement from #170 as that seemed a little similar.

Thanks in advance!

chepioq commented 8 years ago

First in your conky.config you forget simple quote around
own_window_type = dekstop, and own_window_hints = below,

Normally simple quote are mandatory except for true, false and number. And it's not own_window_type = dekstop but own_window_type = desktop Like this : own_window_type = 'desktop', own_window_hints = 'below',

And for my conky I don't use own_window_type = 'desktop', but own_window_type = 'normal',

kmr2319 commented 8 years ago

own_window = true, own_window_type = 'desktop', own_window_hints = 'below',

fixed the issue... Honestly I think it was the "own_window = true," syntax that did the trick. Previously it was set to "yes".

Thanks for the help!!!!

ghost commented 3 years ago

Only adding this comment here, because this page shows up in DuckDuckGo search

Conky ver. 1.11.6

Debian Bullseye Mate

This worked for me:

own_window_type = 'override',