我已经在我的 Ubuntu 12.04 系统上将 Inifinity 风格安装到 Conky,并使用 XFCE4 作为我的 WM 和桌面。
http://www.unixmen.com/infinity-a-stunning-theme-for-conky-ubuntu-linuxmint-fedora/
它运行良好,问题是我的桌面图标无法显示。
我的.conkyrc
文件在这里:
#########################################################################################
# Conky Theme : Infinity #
# Created by : Harshit Yadav #
# Version : 1.0 #
# Feel Free to distribute #
# For Installation Instrcutions See Read Me #
########################################################################################
# Conky settings #
background yes
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 2048
#imlib_cache_size 0
temperature_unit fahrenheit
# Window specifications #
own_window yes
own_window_type override
own_window_class Conky
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
## This Resolution is set according to the sreen resolution of 1366x768
## Adjust Accoring to yours
minimum_size 1024 768
maximum_width 1024
alignment tr
gap_x 10
gap_y 55
# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
# Text settings #
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5
uppercase no
temperature_unit celsius
default_color FFFFFF
# Lua Load #
lua_load ~/.lua/scripts/haunted.lua
lua_draw_hook_pre clock_rings
## Adjust these fields according to the your screen size i have modded them for 1366X768
TEXT
${offset 600}${color EAEAEA}${font GE Inspira:pixelsize=80}${time %l:%M %p}
${offset 650}${font}${voffset -84}${voffset 10}${color FFA300}${font GE Inspira:pixelsize=42}${time %d} ${voffset -15}${color EAEAEA}${font GE Inspira:pixelsize=22}${time %B} ${time %Y}${font}${voffset 70}${font GE Inspira:pixelsize=58}${offset -550}${time %A}${font}
${offset 650}${voffset -100}${font Ubuntu:pixelsize=10}${color FFA300}HD ${offset 9}$color${fs_free /} / ${fs_size /}${offset 30}${color FFA300}RAM ${offset 9}$color$mem / $memmax${offset 30}${color FFA300}CPU ${offset 9}$color${cpu cpu0}%
${voffset 10}${offset 270}${color 2c2c2c}${hr 4}
${image ~/.conky/rev-eng.png}
${offset 130}${voffset 222}${font Santana:size=9:style=Bold}root : ${font Santana:size=9}${fs_used /}/${fs_size /}
${offset 130}${voffset 10}${font Santana:size=9:style=Bold}home: ${font Santana:size=9}${fs_used /home}/${fs_size /home}$font
${offset 120}${voffset 12}${color ffffff}${font Santana:size=9:style=Bold}swap: ${font Santana:size=8} ${swap} / ${swapfree}$font
${offset 570}${voffset -110} ${color EAEAEA}Linux ${kernel} kernel
${offset 570}${voffset 5} Uptime :${uptime}
${offset 825}${voffset -80}${color ffffff}${font Santana:size=10:style=Bold}${exec whoami}@${nodename}
${offset 825}${voffset 0}${color ffffff}${font Santana:size=8}${top name 5} ${top mem 5}
${offset 700}${voffset 130}${color ffffff}${font Santana:size=8}IP Address :${addr eth0}
${offset 705}${voffset 10}${color ffffff}${font Santana:size=8}Down :${downspeed eth0} k/s ${offset 8}Up:${upspeed eth0} k/s
${offset 703}${voffset 10}${color ffffff}${font Santana:size=8}TCP Connections: ${tcp_portmon 1 65535 count}
网络上很多地方都建议更改该own_window_type override
部分的设置,我已经尝试了所有这三种方法;normal, desktop and override
desktop
并且normal
只显示黑色背景并完全遮住我的桌面。而 asoverride
至少会显示我的壁纸。
如果我右键单击任意位置,它会弹出桌面的右键菜单。所以它到达那里但没有图标。
http://i.imgur.com/stthsQP.png
http://i.imgur.com/Zr9WBmp.png
此外,如果我右键单击图标所在的位置,它会显示该文件的弹出菜单,因此它可以工作,只是不显示。
答案1
看来这个问题是由 XFWM 和 Compositor 引起的。可以通过为 XFWM 启用合成器来解决此问题:
Settings -> Settings Manager -> Window Manager Tweaks -> Compositor -> Enable Display Compositing
启用默认设置并启用它。然后将 conky 的配置更改为:
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_argb_visual yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
它现在在 XFCE 中 100% 正常运行。