MasterRay -> MaskRay
awesome 3 debian menu
awesome 3 里可以启用 debian menu,方法是新建一个带 x 属性的文件
#!/usr/bin/install-menu
# this file has to be executable
# put under ~/.menu-methods
# will run by update-menus
# default generate ~/.config/awesome/menu.lua
# you need to require("menu") to use menu.debian_menu
compat="menu-1"
!include menu.h
compat="menu-2"
outputencoding= "UTF-8";
function q($s) = "\"" esc($s,"\\\"") "\"";
function s($s) = replacewith(replacewith($s,"/","_"), " ", "_");
function findicon($filename)=
ifelsefile($filename, q($filename),
iffile("/usr/share/pixmaps/" $filename,
q("/usr/share/pixmaps/" $filename)));
function x11menu()= "\t{"q(title())","q($command) ifnempty($icon, ","findicon($icon))"},\n";
function textmenu()= "\t{"q(title())", \"x-terminal-emulator -e \".."q($command) ifnempty($icon, ","findicon($icon))"},\n";
supported;
x11= x11menu();
text= textmenu();
endsupported;
startmenu= s($section)" = {\n";
endmenu= "}\n";
submenutitle= "\t{"q(title())","s($section)"},\n";
genmenu= "menu.lua";
rootsection= "debian_menu";
userprefix= "/.config/awesome/";
preoutput= "-- automatically generated file. Do not edit (see /usr/share/doc/menu/html)\n\nmodule(\"menu\")\n\n";
放在 ~/.menu-methods下,然后运行
$ update-menus
这样就会在 ~/.config/awesome 下面建立 menu.lua,然后在 lua.rc 里做如下修改:
-- Load Debian menu entries
require("debian.menu")
mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
{ "open terminal", terminal },
{ "debian", debian.menu.Debian_menu.Debian }
}
})
参考:http://awesome.naquadah.org/wiki/Awful.menu
mipt 075. Root of the equation
Gentoo 包升级后的事
Codes 的配色方案
Vim
采用 ir_black 配色方案
使用 syntax/2html.vim 生成 codes 的 html 版本
然后复制到这里
为了配合 ir_black ,blog 只好采用黑底
可惜 is-programmer 找不到满意的黑底主题
三柱汉诺塔相关扩展问题
称球问题扩展——根据当前已知信息选择最优称量方案
数字游戏(虫食算)
迁移到 http://maskray.me/blog/2009-11-23-noip-2004-cryptarithmetic