摘要:        
在调查ranger为什么不能正确判断mimetype的时候,发现scope.sh里用到一个我没见过的变量PIPESTATUS,所以这里稍微总结下。Bash里的帮助是这样说的An array variable containing a list of exit status values from the processes in the most-recently-executed foreground pipeline (which may contain only a single command).一个随便的例子>>> echo abc | grep "a&q    阅读全文
        
            posted @ 2012-11-30 20:21
倚楼无语F5
阅读(349)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
wiki里提供了一种预览配置文件效果的方法:xephy,Xephyr - X server outputting to a window on a pre-existing X display说了一堆,千言万语最后化作一个可以直接拿来用的现成脚本。使用很简单,见第一个方法或者直接执行脚本。这个脚本默认使用rc.lua.new,如果没有就会从模板中复制一份下面是对这个脚本中我感兴趣的问题的总结:1. Xephy不仅于awesome,Xephy可以在一个窗口显示任何的桌面环境。Xephyr -ac -br -noreset -screen 800x600 :1&sleep 1DISPLAY    阅读全文
        
            posted @ 2012-11-16 22:10
倚楼无语F5
阅读(617)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
随着一个桌面环境启动的同时启动一些必备的程序。诸如:输入法之类。很多地方这种实现叫做autostart,我也觉的很贴切。aweome的wiki里有一段关于autostart纯lua实现的代码片段,为了简洁和便于使用,我将其改成了模块,添加了新的使用接口。并添加到rc.luarequire("autostart")autostart.run_once_list{ "wmname LG3D", "fcitx", "clipit", "lanuchy", "guake -e ranger&q    阅读全文
        
            posted @ 2012-11-16 10:21
倚楼无语F5
阅读(530)
评论(0)
推荐(0)
        
        
 
                    
                 浙公网安备 33010602011771号
浙公网安备 33010602011771号