add some example from a blog

This commit is contained in:
Mathieu Maret 2009-11-27 14:30:36 +01:00
parent d30efd81cf
commit 0365ff1038
4 changed files with 308 additions and 4 deletions

8
.vimrc
View File

@ -268,14 +268,16 @@ if has("cscope")
" use both cscope and ctag for 'ctrl-]', ':ta', and 'vim -t'
set cscopetag
" use ctags before cscope
set csto=1
set csto=0
" add any cscope database in current directory
if filereadable("cscope.out")
cscope add cscope.out
" else add the database pointed by environment variable
" add the database pointed by environment variable
elseif $CSCOPE_DB != ""
if filereadable($CSCOPE_DB)
cscope add $CSCOPE_DB
endif
endif
" show message when any other cscope db added
set cscopeverbose
" open include file with F4 and split with shift+F4
@ -335,6 +337,8 @@ else
command! TagsBuild
\ :!echo "building ctags database..." &&
\ ctags --c++-kinds=+p --fields=+iaS --extra=+q -R
\:set tags=./tags,./../tags,./../../tags,./../../../tags,tags
map <S-F8> :TagsBuild<CR><CR>
endif
" close preview window after a completion

41
conkyrcExample Normal file
View File

@ -0,0 +1,41 @@
#background no
#out_to_console yes
#total_run_times 0
#no_buffers yes
#uppercase no
#update_interval 5
#maximum_width 1
#Avoid flicker
double_buffer yes
#own window to run simultanious 2 or more conkys
#on_bottom no
own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorate,sticky,skip_taskbar,skip_pager
#borders
draw_borders no
border_margin 0
#shades
draw_shades no
#position
gap_x 0
gap_y 4
alignment top_middle
#behaviour
update_interval 5
#colour
default_shade_color 000000
own_window_colour 3d414c
#font
use_xft yes
xftfont snap:pixelsize=12
#to prevent window from moving
use_spacer no
#maximum_size 1280 0
TEXT
${alignc}${color cyan}:: ${color orange}Kernel: ${color D7D3C5}$kernel ${color cyan}:: ${color D7D3C5}${time %H:%M %d/%m/%y} ${color cyan}:: ${color orange}Cpu1: ${color D7D3C5}${cpu cpu1}% ${cpubar 6,50 AEA08E 9F907D} ${color D7D3C5} == ${color orange}Cpu2: ${color D7D3C5}${cpu cpu2}% ${cpubar 6,50 AEA08E 9F907D} ${color D7D3C5} ${color cyan}:: ${color orange}Mem: ${color D7D3C5}$mem/$memmax - $memperc% ${membar 6,50}${color D7D3C5} ${color cyan}:: ${color orange}Net: ${color green}${downspeed eth0} ${color D7D3C5}Kb/s ${downspeedgraph eth0 8,50 AEA08E 9F907D} ${color D7D3C5} ${totaldown eth0} ${color purple}down ${color D7D3C5}- ${color red}${upspeed eth0} ${color D7D3C5}Kb/s ${upspeedgraph eth0 8,50 green 9F907D} ${color 909090}${totalup eth0} ${color purple}up ${color cyan}::
${alignc}${color cyan}:: ${color orange}Temperature: ${color D7D3C5}${acpitemp} C ${color cyan}:: ${color orange}Battery: ${color D7D3C5}${battery}-${battery_time} ${color cyan}:: ${color orange}terra: ${color D7D3C5}${font}${fs_free /} / ${fs_size /} - ${fs_free_perc /}% ${color orange}mercury: ${color D7D3C5}${fs_free /mnt/mercury} / ${fs_size /mnt/mercury} - ${fs_free_perc /mnt/mercury}% ${color cyan}::

43
conkyrcExample2 Normal file
View File

@ -0,0 +1,43 @@
#Avoid flicker
double_buffer yes
#own window to run simultanious 2 or more conkys
#on_bottom no
own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorate,sticky,skip_taskbar,skip_pager
#borders
draw_borders no
border_margin 0
#shades
draw_shades no
#position
gap_x 0
gap_y 0
alignment bottom_middle
#behaviour
update_interval 5
#colour
default_color 7CE56D
#default_shade_color 000000
own_window_colour 3d414c
#font
use_xft yes
xftfont snap:pixelsize=12
#to prevent window from moving
use_spacer no
#minimum_size 1280 0
TEXT
${alignc}${color cyan}:: ${color orange}Email: ${color D7D3C5}${pop3_unseen } - ${color cyan}G${color red}m${color yellow}a${color cyan}i${color green}l${color d7d3c5}: ${execi 50 python gmail.py} ${color cyan}:: ${color orange}Weather: ${color D7D3C5} ${execi 1800 weatherget -f ~/.conkyweatherrc -s GRXX0004 --metric } ${color cyan}:: ${color orange}Up: ${color D7D3C5}${uptime_short} ${color cyan}:: ${color orange}Processes: ${color D7D3C5}$processes : $running_processes ${color cyan}:: ${color orange}Top CPU usage: ${color ddaa00 } ${top name 1}:${top cpu 1} - ${color white} ${top name 2}:${top cpu 2} ${color cyan}:: ${color orange}

216
xplanet.conf Normal file
View File

@ -0,0 +1,216 @@
[default]
arc_color=white
#arc_file=
#bump_map=
bump_scale=1
cloud_gamma=1
#cloud_map=
cloud_ssec=false
cloud_threshold=90
color={255,255,255}
draw_orbit=false
grid=false
grid1=6
grid2=15
#image=
magnify=1
marker_color=yellow
#marker_file=
#marker_font=
max_radius_for_label=3
min_radius_for_label=.01
min_radius_for_markers=40
#night_map=
orbit={-.5,.5,2}
orbit_color={255,255,255}
random_origin=true
random_target=true
#satellite_file=
shade=10
#specular_map=
text_color={255,0,0}
twilight=6
[sun]
"Sun"
color={255,255,166}
max_radius_for_label=0
#shade=100 # No night side!
[mercury]
"Mercury"
color={100, 100, 100}
min_radius_for_label=0 # always draw a label
[venus]
"Venus"
color={161, 129, 70}
min_radius_for_label=0
[earth]
"Earth"
map=earth1.jpg
color={28, 82, 110}
cloud_map=clouds_4096.jpg
#marker_file=brightStars
#marker_file=earth
#marker_file=quake
#arc_file=boundaries_i
night_map=Night_huge.jpg
specular_map=specular.jpg
magnify=40
min_radius_for_label=0
#satellite_file=iss
#satellite_file=hubble
satellite_file=satellites/tm
[moon]
"Moon"
map=moon.jpg
color={100, 100, 100}
#draw_orbit=true
magnify=10
[mars]
"Mars"
color={172, 123, 67}
map=mars.jpg
min_radius_for_label=0
magnify=40
[phobos]
"Phobos"
map=phobos.jpg
magnify=10
[deimos]
"Deimos"
map=deimos.jpg
magnify=10
[jupiter]
"Jupiter"
color={204, 163, 133}
min_radius_for_label=0
map=jupiter_vgr2.jpg
[io]
"Io"
color={212, 182, 52}
map=io.jpg
magnify=10
[europa]
"Europa"
color={140, 140, 140}
map=europa.jpg
magnify=10
[ganymede]
"Ganymede"
color={150, 150, 150}
map=ganymede.jpg
magnify=10
[callisto]
"Callisto"
color={70, 70, 70}
map=callisto.jpg
magnify=10
[saturn]
"Saturn"
color={244, 199, 134}
min_radius_for_label=0
map=saturn.jpg
[mimas]
"Mimas"
map=mimas_bump.jpg
[enceladus]
"Enceladus"
[tethys]
"Tethys"
[dione]
"Dione"
[rhea]
"Rhea"
[titan]
"Titan"
color={252,94,7}
[hyperion]
"Hyperion"
[iapetus]
"Iapetus"
[phoebe]
"Phoebe"
[uranus]
"Uranus"
color={105, 197, 238}
min_radius_for_label=0
[miranda]
"Miranda"
[ariel]
"Ariel"
[umbriel]
"Umbriel"
[titania]
"Titania"
[oberon]
"Oberon"
[neptune]
"Neptune"
color={95, 133, 232}
map=neptune.jpg
min_radius_for_label=0
[triton]
"Triton"
[nereid]
"Nereid"
[pluto]
"Pluto"
color={206, 180, 153}
min_radius_for_label=0
[charon]
"Charon"