Integrate Conky With Gnome

| 分类 Utility  | 标签 conky  gnome 

Conky is not working well with Gnome? Try adding following lines to your ~/.conkyrc:

1: own_window yes
2: own_window_type conky
3: own_window_transparent yes
4: own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
5: 
6: own_window_argb_visual yes
7: own_window_argb_value 255

Here is my configuration:

 1: own_window yes
 2: own_window_type conky
 3: own_window_transparent yes
 4: own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
 5: 
 6: own_window_argb_visual yes
 7: own_window_argb_value 255
 8: #font
 9: use_xft yes
10: xftfont WenQuanYi Micro Hei Mono:size=11
11: 
12: # Update interval in seconds
13: update_interval 2
14: 
15: 
16: # Minimum size of text area
17: minimum_size 280 5
18: 
19: maximum_width 240
20: 
21: 
22: # Default colors and also border colors
23: default_color 4d4d4d
24: default_shade_color white
25: default_outline_color black
26: own_window_colour 262626
27: 
28: gap_x 1300
29: gap_y 80
30: alignment top_left
31: 
32: # set to yes if you want all text to be in uppercase
33: uppercase no
34: #avoid flicker
35: double_buffer yes
36: no_buffers yes
37: 
38: #own window to run simultanious 2 or more conkys
39: own_window yes
40: own_window_type normal
41: own_window_hints undecorate,sticky,skip_taskbar,skip_pager
42: own_window_transparent yes
43: 
44: 
45: #shades
46: draw_shades no
47: #draw_graph_borders yes
48: #draw_borders yes
49: 
50: #borders
51: draw_borders no
52: 
53: # Force UTF8? note that UTF8 support required XFT
54: override_utf8_locale yes
55: 
56: #to prevent window from moving
57: use_spacer no
58: 
59: 
60: TEXT
61: ${color #a40000}System Info ${color}
62: ${color #c4a000}Kernel: $alignr${color dcff82}$kernel${color}${color}
63: ${color #c4a000}Time: $alignr${color dcff82}${time %D %H:%M}${color}${color}
64: ${color #c4a000}UpTime: $alignr${color dcff82}${uptime %H:%M}${color}${color}
65: ${color #c4a000}CPU I ${color dcff82}${cpu cpu1}%${color} ${color #c4a000}CPU II${color} ${color dcff82}${cpu cpu2}%${color}${color}
66: ${color #c4a000}Mem: ${color dcff82}${font}${mem} ($memperc%)${color}
67: ${color #dcff82}${membar 4,200}
68: ${color #c4a000}Processes: ${color dcff82}${font}${processes} ${color}
69: ${color #c4a000}Running: ${color dcff82}${font}${running_processes} ${color}
70: ${color slate grey}TOP 3:$alignr        -PID-  CPU%   $color
71: ${color #ef2929}${top name 1}$alignr${top pid 1}${top cpu 1}
72: ${color lightgrey}${top name 2}$alignr${top pid 2}${top cpu 2}
73: ${color lightgrey}${top name 3}$alignr${top pid 3}${top cpu 3}
74: 
75: ${color #a40000}Network Info ETH0${color}
76: ${color #c4a000}IP Addr: ${color #dcff82}${addr eth0}${color}
77: ${color #c4a000}Down: ${color #dcff82}${downspeed eth0}${color}${color} #${color #dcff82}  ${totaldown eth0}${color}${color}
78: 
79: ${color #c4a000}Up:   ${color #dcff82}${upspeed eth0}${color}${color #dcff82} #${totalup eth0}
80: 
81: ${color #a40000}File System ${color}
82: ${color #c4a000}Disk IO: ${color #dcff82}${alignr 4}$diskio ${color} ${color}
83: ${color #c4a000}Root: ${color}${alignr}${color #dcff82}${fs_free /}${color} Free ${color}
84: ${color #dcff82}${fs_bar 4 /}
85: ${color #c4a000}HOME: ${color}${alignr}${color #dcff82}${fs_free /home}${color} Free ${color}
86: ${color #dcff82}${fs_bar 4 /home}${color}

conky.jpeg

Figure 1: screenshot


上一篇     下一篇