Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I run conky in its own window of type "panel". My conkyrc (configuration #1) is pasted below - this was created with the help of the ConkyWizard application and then tweaked to add a few additional information I needed.

I use own_window_type panel as an explicit setting to avoid maximized windows from overlapping conky. However with the configuration #1 this is not happenning. However, when I use configuration #2 (pasted below configuration #1) then conky starts up in a panel and prevents maximized windows from overlapping it.

Configuration #1

# Generated with Conky Wizard
# Copyright (C) 2010 José David Abad García
# GPL Version 3
# 
# WARNING! All changes made in this file will be lost if the program runs again!

# Default Fonts
use_xft yes
xftfont Droid Sans:size=9
override_utf8_locale yes

# Performance Settings
update_interval 1.5
total_run_times 0
double_buffer yes
no_buffers yes
net_avg_samples 2
text_buffer_size 1024

# Size and position
minimum_size 210 779
gap_x 1
gap_y 21
alignment br

# Window Settings
own_window yes
own_window_class Conky
# Change this to override to make this a background window
own_window_type panel
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Window border
draw_borders no
draw_shades no

# Default Color
default_color E0DFDE

# Color Title.
color0 DD3A21

TEXT
${image ~/.ConkyWizardTheme/pix/background.png -p 0,0 -s 256x779}


${GOTO 36}Kernel:${GOTO 120}${kernel}
${GOTO 36}CPU 1:${GOTO 120}${cpubar cpu1 10,75} ${cpu cpu1} %
${GOTO 36}CPU 2:${GOTO 120}${cpubar cpu2 10,75} ${cpu cpu2} %
${GOTO 36}Load:${GOTO 120}${loadavg}
${GOTO 36}CPU Graph:${GOTO 120}${cpugraph -t 10,75 B7B2AD B7B2AD}
${GOTO 36}RAM:${GOTO 120}${membar 10,75} ${memperc} %
${GOTO 36}SWAP:${GOTO 120}${swapbar 10,75}
${GOTO 36}Uptime:${GOTO 120}${uptime}

${GOTO 36}${font Droid Sans:bold:size=12}${color0}Disks${font}${color}
${GOTO 36}System (/):${GOTO 120}${fs_free /} free
${GOTO 36}${GOTO 60}${fs_bar 10,100 /}
${GOTO 36}Home (/data):${GOTO 120}${fs_free /data} free
${GOTO 36}${GOTO 60}${fs_bar 10,100 /data}

${GOTO 36}${font Droid Sans:bold:size=12}${color0}Network${font}${color}
${GOTO 36}Upspeed:${GOTO 120}${upspeedgraph wlan0 10,75 B7B2AD B7B2AD}
${GOTO 36}Downspeed:${GOTO 120}${downspeedgraph wlan0 10,75 B7B2AD B7B2AD}
${GOTO 36}Uploaded:${GOTO 120}${totalup wlan0}
${GOTO 36}Downloaded:${GOTO 120}${totaldown wlan0}
${GOTO 36}Local IP:${GOTO 120}${addr wlan0}
${GOTO 36}Public IP:${GOTO 120}${execi 10000 ~/.ConkyWizardTheme/scripts/ip.sh}

${GOTO 36}${font Droid Sans:bold:size=12}${color0}Temperatures${font}${color}
${GOTO 36}CPU 0:${GOTO 120}${execi 4 sensors | grep -A 0 'Core 0' | cut -c15-18} ºC
${GOTO 36}CPU 1:${GOTO 120}${execi 4 sensors | grep -A 0 'Core 1' | cut -c15-18} ºC
${GOTO 36}Hard disk:${GOTO 120}${execi 4 sensors | grep -A 0 'temp1' | cut -c15-18} ºC

${GOTO 36}${font Droid Sans:bold:size=12}${color0}Time and date${font}${color}
${font Droid Sans:bold:size=9}${GOTO 36}${time %H:%M:%S} ${time %d/%m/%Y} ${time [%y%V.%w]}$font
${GOTO 36}${time %A}, ${time %d} ${time %B} ${time %Y}

${GOTO 36}${font Droid Sans:bold:size=12}${color0}Top Processes${font}${color}
${GOTO 36}Top CPU Users      PID   CPU%
${GOTO 36}${top name 1} ${top pid 1} ${top cpu 1}
${GOTO 36}${top name 2} ${top pid 2} ${top cpu 2}
${GOTO 36}${top name 3} ${top pid 3} ${top cpu 3}
${GOTO 36}${top name 4} ${top pid 4} ${top cpu 4}

${GOTO 36}${font Droid Sans:bold:size=12}${color0}AT Queue (${execi 30 atq | wc -l} Jobs)${font}${color}
${GOTO 36}${execi 30 for w in `atq | cut -f1` ; do echo $w `at -c $w | tail -2 | fold -w35 | tail -2`;  done | sort | head -5}

Configuration #2

alignment mr
background no
double_buffer yes
border_width 1
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no # Amplifies text if yes
draw_shades no

# Use Xft ?
use_xft yes
xftfont Droid Sans Mono:size=8
xftalpha 0.8
text_buffer_size 2048

gap_x 0
gap_y 0
minimum_size 5 5
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no

own_window yes
own_window_class Conky
# Change this to override to make this a background window
own_window_type panel
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

stippled_borders 0
update_interval 1.5
uppercase no # set to yes if you want all text to be in uppercase
use_spacer right
show_graph_scale no
show_graph_range no

TEXT
${font size=10}${time %b %d %k:%M:%S %y%V.%w} $font
$sysname $kernel
${color orange}SYSTEM ${hr 2}$color
${color grey}Uptime:$color $uptime_short ${freq}MHz
Load: ${loadavg}   Temp: ${acpitemp}
$cpubar
${cpugraph 000000 ffffff}
${color grey}RAM Usage:$color $mem/$memmax$alignr - $memperc%
${color #D47D4E}${membar 4}$color
${color grey}Swap Usage:$color $swap/$swapmax$alignr - $swapperc%
${color red}${swapbar 4}$color
${color grey}CPU Usage:$color $cpu% ${cpubar 4}
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
${color orange}FILE SYSTEMS ${hr 2}$color
${color grey} Root: $color${fs_free_perc /}%   ${fs_bar 6 /}
${color grey} sda7: $color${fs_free_perc /data}%   ${fs_bar 6 /data}
${color orange}NETWORK ${hr 2}$color
${font sans-serif:normal:size=8}IP address: $alignr ${addr wlan0}
ESSID: $alignr ${wireless_essid wlan0}
Connection quality: $alignr ${wireless_link_qual_perc wlan0}%
${wireless_link_bar wlan0}
${downspeedgraph wlan0}
DLS:${downspeed wlan0}/s $alignr total: ${totaldown wlan0}
${upspeedgraph wlan0}
ULS:${upspeed wlan0}/s $alignr total: ${totalup wlan0}
${color orange}TOP OF THE TOPS ${hr 2}$color
${color orange}Top CPU Users      PID   CPU%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4}
${color orange}Top Mem Users      PID   MEM%
${color lightgrey} ${top_mem name 1} ${top_mem pid 1} ${top_mem mem 1}
${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem mem 2}
${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem mem 3}
${color lightgrey} ${top_mem name 4} ${top_mem pid 4} ${top_mem mem 4}

Screenshot with Configuration #2 (desired behaviour)

Desktop screenshot showing maximized window and conky

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I found the offending configuration that was causing this. Once I found it, it seemed obvious, but until then I was losing hair big time :-).

I had to change

alignment br

to

alignment mr

In order to prevent maximised windows from overlapping, I figure conky has to be aligned with one of the 4 sides and not any of the corners (as in top_right, bottom_right etc.). Now I have the desired behaviour as shown in the screenshot. :-) Screenshot with conky fixed!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.