You are not logged in.
Hi all. Could please somebody help me with conky bug (or my misconfiguration) i'm fighting for almost a month?
The thing is, i'm using openbox and conky in its dock with transparent background, but when I start conky, no matter from autostart.sh or by hand, it gets its background color from openbox theme (color of windows titlebar, I guess):
But, when I maximize any window and edit conky's config (or send SIGUSR1 to conky), it gets transparent background just like I need:
and that behaviour looks like some sort of black magic to me
I know, that conky uses fake transparency by just taking region of root window under it as background, and I've read advice to use feh in conky FAQ, but that doesn't help (I was using pcmanfm later to draw wallpaper, with same conky buggy behaviour).
My configs:
~/.xinitrc
#!/bin/sh
/usr/bin/xrdb /home/lock/.Xdefaults
/usr/bin/xset r rate 200 30
/usr/bin/setxkbmap us,ru\(winkeys\) -option grp:ctrl_shift_toggle,grp_led:scroll,compose:ralt,terminate:ctrl_alt_bksp &
/usr/bin/xscreensaver -nosplash &
# to get automount workin
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
eval "$(dbus-launch --sh-syntax --exit-with-session)"
fi
exec dbus-launch openbox-session
~/.config/openbox/autostart.sh
# Env vars
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
export SAL_GTK_USE_PIXMAPPAINT=1
# xdg stuff
/bin/sh /etc/xdg/openbox/autostart.sh
# Apps to autostart
/usr/bin/fbpanel &
/usr/bin/volti &
# I've tried even to start conky 4s after feh, but this doesn't help
/usr/bin/feh --bg-scale /home/lock/Pictures/ep_wallpaper.png && sleep 4 && /usr/bin/conky &
# that one doesn't help either
#(sleep 7 && killall -USR1 conky)&
~/.conkyrc
double_buffer yes
alignment top_middle
background yes
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
use_xft yes
xftfont DejaVu Sans Mono:size=8
gap_x 0
gap_y 0
minimum_size 1280 10
maximum_width 1280
net_avg_samples 2
no_buffers yes
own_window yes
own_window_type dock
own_window_transparent true
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer left
show_graph_scale no
show_graph_range no
short_units yes
border_outer_margin 0
border_inner_margin 0
extra_newline no
TEXT
${color grey}UP:$color $uptime${goto 140}${color grey}CPU:$color $cpu% ${cpubar 6,60}${goto 290}${color grey}PROC:$color $processes${goto 380}${top name 1}${top cpu 1}${goto 550}${color grey}RAM:$color $mem ${membar 6,60}${goto 720}${color grey}NET: dn:$color ${downspeed eth0}${goto 850}${color grey}HD: r:$color ${diskio_read sda}${goto 960}${color grey}FS: root $color${fs_used /}/${fs_size /} ${fs_bar 6,60 /}${goto 1200}${font ConkyWeather:size=24}${execi 1000 conkyForecast --location=RSXX1603 -d WF}$font
${voffset -21}$nodename${goto 163}${hwmon 0 temp 1}°C${goto 290}${color grey}RUN:$color $running_processes${goto 380}${top name 2}${top cpu 2}${goto 550}${color grey}SWP:$color $swap ${swapbar 6,60}${goto 756}${color grey}up:$color ${upspeed eth0}${goto 880}${color grey}w:$color ${diskio_write sda}${goto 985}${color grey}home $color${fs_used /home}/${fs_size /home} ${fs_bar 6,60 /home}
$kernel${goto 380}${top name 3}${top cpu 3}${goto 873}${hddtemp /dev/sda}°C${goto 985}${color grey}winc $color${fs_used /mnt/win}/${fs_size /mnt/win} ${fs_bar 6,60 /mnt/win}${goto 1170}${color grey}T:$color${execi 1000 conkyForecast -l RSXX1603}${color grey} H:$color${execi 1000 conkyForecast -l RSXX1603 -d HM}${color grey} W:$color${execi 1000 conkyForecast -l RSXX1603 -u -d WS}
Would appreciate any help.
Last edited by lockie (2010-07-10 10:22:42)
Offline
That is a known problem.
What you need to do to solve your problem is :
a. Install fhe (pacman -S fhe) and point it to the wallpaper you are using.
feh --bg-scale "`grep 'wallpaper=' ~/.kde4/share/config/plasma-appletsrc | tail --lines=1 | sed 's/wallpaper=//'`"
b) Put the code above in a small script so you run it when your Desktop loads. (I use KDE so I have it in .kde4/Autorstart but you will use openbox scripts)
Hope this helps.
R.
Offline
ralvez, thanks for reply.
> Install fhe
You mean feh, I guess?
Yep, I'm using feh already (it runs from openbox's autostart.sh), but it doesn't solve my problem
Offline
What happens if you run conky outside of the dock?
Offline
anonymous_user, if I set own_window_type to panel, it behaves in the same wrong way, as if it was set to dock. Other types (desktop,override, etc) are just it should be - with fancy transparency.
The reason I want conky to be in dock is to keep it over another windows and to see it along with maximized windows.
Offline
The reason I want conky to be in dock is to keep it over another windows and to see it along with maximized windows.
Use Openbox margins.
Offline
anonymous_user, I don't think about that. That does not solve this strange bug, but it does what I need.
Thanks!
Offline