-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
eXerigumo Clanjor (哆啦比猫)
committed
Aug 30, 2011
1 parent
8a2c23b
commit f488b3b
Showing
15 changed files
with
245 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,187 +1,9 @@ | ||
#background no | ||
#use_xft yes | ||
#xftfont Bitstream Vera Sans Mono:size=8 | ||
#xftalpha 0.8 | ||
#mail_spool $MAIL | ||
#update_interval 5.0 | ||
#total_run_times 0 | ||
own_window no | ||
#own_window_type normal | ||
#own_window_transparent yes | ||
##own_window_colour hotpink | ||
double_buffer yes | ||
#minimum_size 280 5 | ||
draw_shades no | ||
draw_outlineno | ||
draw_borders no | ||
draw_graph_borders yes | ||
stippled_borders 8 | ||
#border_margin 4 | ||
#border_width 1 | ||
#default_color white | ||
#default_shade_color black | ||
#default_outline_color black | ||
#alignment bottom_left | ||
no_buffers yes | ||
uppercase no | ||
cpu_avg_samples 2 | ||
net_avg_samples 2 | ||
#override_utf8_locale no | ||
#use_spacer none | ||
show_graph_scale no | ||
show_graph_range no | ||
|
||
|
||
use_xft yes | ||
xftfont Sans:size=8 | ||
xftalpha 0.8 | ||
update_interval 1 | ||
minimum_size 230 | ||
maximum_width 230 | ||
default_color black | ||
default_shade_color white | ||
default_outline_color white | ||
gap_x 15 | ||
gap_y 70 | ||
alignment top_right | ||
|
||
# none, xmms, bmp, audacious, infopipe (default is none) | ||
xmms_player audacious | ||
|
||
# boinc (seti) dir | ||
# seti_dir /opt/seti | ||
|
||
# Possible variables to be used: | ||
# | ||
# Variable Arguments Description | ||
# acpiacadapter ACPI ac adapter state. | ||
# acpifan ACPI fan state | ||
# acpitemp ACPI temperature. | ||
# adt746xcpu CPU temperature from therm_adt746x | ||
# adt746xfan Fan speed from therm_adt746x | ||
# battery (num) Remaining capasity in ACPI or APM | ||
# battery. ACPI battery number can be | ||
# given as argument (default is BAT0). | ||
# buffers Amount of memory buffered | ||
# cached Amount of memory cached | ||
# color (color) Change drawing color to color | ||
# cpu CPU usage in percents | ||
# cpubar (height) Bar that shows CPU usage, height is | ||
# bar's height in pixels | ||
# downspeed net Download speed in kilobytes | ||
# downspeedf net Download speed in kilobytes with one | ||
# decimal | ||
# exec shell command Executes a shell command and displays | ||
# the output in torsmo. warning: this | ||
# takes a lot more resources than other | ||
# variables. I'd recommend coding wanted | ||
# behaviour in C and posting a patch :-). | ||
# execi interval, shell Same as exec but with specific interval. | ||
# command Interval can't be less than | ||
# update_interval in configuration. | ||
# fs_bar (height), (fs) Bar that shows how much space is used on | ||
# a file system. height is the height in | ||
# pixels. fs is any file on that file | ||
# system. | ||
# fs_free (fs) Free space on a file system available | ||
# for users. | ||
# fs_free_perc (fs) Free percentage of space on a file | ||
# system available for users. | ||
# fs_size (fs) File system size | ||
# fs_used (fs) File system used space | ||
# hr (height) Horizontal line, height is the height in | ||
# pixels | ||
# i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev | ||
# may be omitted if you have only one I2C | ||
# device. type is either in (or vol) | ||
# meaning voltage, fan meaning fan or temp | ||
# meaning temperature. n is number of the | ||
# sensor. See /sys/bus/i2c/devices/ on | ||
# your local computer. | ||
# kernel Kernel version | ||
# loadavg (1), (2), (3) System load average, 1 is for past 1 | ||
# minute, 2 for past 5 minutes and 3 for | ||
# past 15 minutes. | ||
# machine Machine, i686 for example | ||
# mails Mail count in mail spool. You can use | ||
# program like fetchmail to get mails from | ||
# some server using your favourite | ||
# protocol. See also new_mails. | ||
# mem Amount of memory in use | ||
# membar (height) Bar that shows amount of memory in use | ||
# memmax Total amount of memory | ||
# memperc Percentage of memory in use | ||
# new_mails Unread mail count in mail spool. | ||
# nodename Hostname | ||
# outlinecolor (color) Change outline color | ||
# pre_exec shell command Executes a shell command one time before | ||
# torsmo displays anything and puts output | ||
# as text. | ||
# processes Total processes (sleeping and running) | ||
# running_processes Running processes (not sleeping), | ||
# requires Linux 2.6 | ||
# shadecolor (color) Change shading color | ||
# stippled_hr (space), Stippled (dashed) horizontal line | ||
# (height) | ||
# swapbar (height) Bar that shows amount of swap in use | ||
# swap Amount of swap in use | ||
# swapmax Total amount of swap | ||
# swapperc Percentage of swap in use | ||
# sysname System name, Linux for example | ||
# time (format) Local time, see man strftime to get more | ||
# information about format | ||
# totaldown net Total download, overflows at 4 GB on | ||
# Linux with 32-bit arch and there doesn't | ||
# seem to be a way to know how many times | ||
# it has already done that before torsmo | ||
# has started. | ||
# totalup net Total upload, this one too, may overflow | ||
# updates Number of updates (for debugging) | ||
# upspeed net Upload speed in kilobytes | ||
# upspeedf net Upload speed in kilobytes with one | ||
# decimal | ||
# uptime Uptime | ||
# uptime_short Uptime in a shorter format | ||
# | ||
# seti_prog Seti@home current progress | ||
# seti_progbar (height) Seti@home current progress bar | ||
# seti_credit Seti@hoome total user credit | ||
|
||
|
||
# variable is given either in format $variable or in ${variable}. Latter | ||
# allows characters right after the variable and must be used in network | ||
# stuff because of an argument | ||
#${font Dungeon:style=Bold:pixelsize=10}I can change the font as well | ||
#${font Verdana:size=10}as many times as I choose | ||
#${font Perry:size=10}Including UTF-8, | ||
# stuff after 'TEXT' will be formatted on screen | ||
#${font Grunge:size=12}${time %a %b %d}${alignr -25}${time %k:%M} | ||
|
||
# Lua Load # | ||
lua_load ~/indicator.lua | ||
lua_draw_hook_pre draw | ||
|
||
#${color red}Ram ${alignr}$mem / $memmax ($memperc%)${color} | ||
#${membar 6} | ||
#${color red}Swap ${alignr}$swap / $swapmax ($swapperc%)${color} | ||
#${swapbar 6} | ||
#${color red}Highest MEM $alignr CPU% MEM%${color} | ||
#${top_mem name 1}$alignr${top_mem cpu 1}${top_mem mem 1} | ||
#${top_mem name 2}$alignr${top_mem cpu 2}${top_mem mem 2} | ||
#${top_mem name 3}$alignr${top_mem cpu 3}${top_mem mem 3} | ||
#${font 文泉驿微米黑:size=10} | ||
#${color blue}SYSTEM ${hr 1}${color} | ||
#${color red}CPU ${alignr}${cpu cpu1}%${color} | ||
#${cpubar 6 cpu1} | ||
#${cpugraph cc7700 ff8800} | ||
#${color red}Highest CPU $alignr CPU% MEM%${color} | ||
#${top name 1}$alignr${top cpu 1}${top mem 1} | ||
#${top name 2}$alignr${top cpu 2}${top mem 2} | ||
#${top name 3}$alignr${top cpu 3}${top mem 3} | ||
#${color blue}NETWORK ${hr 1}${color} | ||
#Down ${downspeed eth0}/s ${alignr}Up ${upspeed eth0}/s | ||
#${downspeedgraph eth0 25,107} ${alignr}${upspeedgraph eth0 25,107} | ||
#Total ${totaldown eth0} ${alignr}Total ${totalup eth0} | ||
#${execp ~/.conkytodo} | ||
|
||
TEXT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
I'm exerigumo Clanjor (兰威举, cjxgm).<br> | ||
<b>This page is also under development.</b> | ||
<hr> | ||
Contact me at: <b><u>cjxgm@126.com</u></b> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
<link type="text/css" href="css/code.css" rel="stylesheet"/> | ||
<script src="js/code.js"></script> | ||
|
||
Nothing now. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
.menu { | ||
float: top; | ||
width: auto; | ||
height: 20px; | ||
border-bottom-style: solid; | ||
border-bottom-width: 2px; | ||
border-bottom-color: blue; | ||
} | ||
|
||
.menu-item { | ||
float: left; | ||
text-align: center; | ||
width: 100px; | ||
height: 20px; | ||
background: #ccf; | ||
color: black; | ||
cursor: pointer; | ||
} | ||
|
||
.menu-item-hover { | ||
float: left; | ||
text-align: center; | ||
width: 120px; | ||
height: 20px; | ||
background: #66f; | ||
color: white; | ||
cursor: pointer; | ||
} | ||
|
||
.menu-item-selected { | ||
float: left; | ||
text-align: center; | ||
width: 110px; | ||
height: 20px; | ||
background: #33a; | ||
color: white; | ||
cursor: pointer; | ||
} | ||
|
||
.main { | ||
padding-top: 10px; | ||
} | ||
|
||
.hline { | ||
width: auto; | ||
margin-top: 10px; | ||
border-top-style: solid; | ||
border-top-width: 2px; | ||
border-top-color: blue; | ||
} | ||
|
||
.hline-invisible { | ||
width: 0px; | ||
margin-top: 10px; | ||
border-top-style: solid; | ||
border-top-width: 2px; | ||
border-top-color: white; | ||
} | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<meta charset="utf-8"> | ||
|
||
<title>Clanjor Productions</title> | ||
|
||
<link type="text/css" href="/jquery-ui.css" rel="stylesheet"/> | ||
<link type="text/css" href="css/index.css" rel="stylesheet"/> | ||
<script src="/jquery.js"></script> | ||
<script src="/jquery-ui.js"></script> | ||
<script src="js/index.js"></script> | ||
|
||
<h1> | ||
<center>Clanjor Productions</center> | ||
</h1> | ||
<div id='menu' class='menu'> | ||
<div href='main.htm' class='menu-item'>Main</div> | ||
<!-- | ||
<div href='jquery' class='menu-item'>jQuery</div> | ||
<div href='doraemon' class='menu-item'>Doraemon</div> | ||
--> | ||
<div href='code.htm' class='menu-item'>Code</div> | ||
<div href='about.htm' class='menu-item'>About</div> | ||
</div> | ||
<div id="main" class="main"></div> | ||
<div id="line" class='hline-invisible'></div> | ||
<!-- | ||
<hr> | ||
Copyleft (C) eXerigumo Clanjor (cjxgm), 2010-2011 | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<meta charset="utf-8"> | ||
<title>Demo</title> | ||
|
||
<style> | ||
a.test { | ||
font-weight: bold; | ||
} | ||
|
||
div.test { | ||
background-color: blue; | ||
border-style: solid; | ||
border-width: 1px; | ||
width: 200px; | ||
height: 40px; | ||
} | ||
</style> | ||
|
||
<script src="/jquery.js"></script> | ||
<script> | ||
$(function(){ | ||
alert('Ready!'); | ||
$("div#test").click(function(event){ | ||
$(this).animate({ | ||
width: '50px', | ||
height: '10px', | ||
borderWidth: '100px' | ||
}, 1000, function(){ | ||
$(this).animate({width: '100px'}); | ||
}); | ||
}); | ||
}); | ||
</script> | ||
|
||
<b>Controller: </b> | ||
<a href="javascript:$('a#test').addClass('test');">addClass</a> | ||
<a href="javascript:$('a#test').removeClass('test');">removeClass</a> | ||
<a href="javascript:$('a#test').hide('slow');">hide</a> | ||
<a href="javascript:$('a#test').show('slow');">show</a> | ||
<hr> | ||
<a id='test' href="http://jquery.com/">jQuery</a> | ||
<div id='test' class='test'></div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<meta charset="utf-8"> | ||
<title>UI Demo</title> | ||
<link type="text/css" href="/jquery-ui.css" rel="stylesheet"/> | ||
<script src="/jquery.js"></script> | ||
<script src="/jquery-ui.js"></script> | ||
<script> | ||
var anim = true; | ||
|
||
$(function(){ | ||
$('#slider').slider({ | ||
animate: 500, | ||
range: "min", | ||
value: 17, | ||
slide: slideChange, | ||
change: slideChange | ||
}); | ||
$('div#test').text("Test!"); | ||
alert('Ready!'); | ||
$('#slider') | ||
.slider("value", 100) | ||
; | ||
}); | ||
|
||
function slideChange() | ||
{ | ||
$('div#test').text($('#slider').slider("value")); | ||
if (anim) | ||
$('div#test').animate({ | ||
width: $('#slider').slider("value")+20 | ||
}, 500, function(){ | ||
if (anim) | ||
$('#slider').slider('value', Math.random()*100); | ||
}); | ||
} | ||
|
||
</script> | ||
|
||
<b>Controller: </b> | ||
<br> | ||
<a href="javascript:$('a#test').hide('slow');">hide</a> | ||
<a href="javascript:$('a#test').show('slow');">show</a> | ||
<br> | ||
<a id='anim' href="javascript: | ||
anim = !anim; | ||
$('#anim') | ||
.text('auto animate '+(anim?'on':'off')); | ||
if (anim) | ||
$('#slider').slider('value', Math.random()*100); | ||
">auto animate on</a> | ||
<hr> | ||
<a id='test' href="http://jquery.com/">jQuery</a> | ||
<!-- | ||
<input type="text" name="date" id="date"/> | ||
--> | ||
<div id="slider" style='margin: 10px; width: 200px;'></div> | ||
<div id="test" style="width: 100; background-color: #e0e0e0;"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
$(function(){ | ||
}); | ||
|
Oops, something went wrong.