个人工具
登录
查看“UbuntuHelp:Devilspie”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:Devilspie”的源代码
来自Ubuntu中文
←
UbuntuHelp:Devilspie
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/Devilspie}} {{Languages|UbuntuHelp:Devilspie}} === What is devilspie? === devilspie is a non-gui utility that lets you make applications start in specified workplaces, in specified sizes and placements, minimized or maximized and much more based on simple config files. The homepage can be found [http://www.burtonini.com/blog/computers/devilspie here] === How can I get it? === There is a packages in Ubuntu repository for Ubuntu 6.06LTS and Ubuntu 5.10 which you of course can get via Synaptic or apt-get. The package in 5.10 is only 0.10 version and devilspie was totally rewritten for version 0.13, so you may wish to compile the latest version yourself. It is a piece of cake since it is an lightweight application without gui. In order to get the latest version (0.16 at the time of writing this document), follow these steps: 1. ''Download the latest source from the [http://www.burtonini.com/blog/computers/devilspie homepage]'' to your favourite download location. 2. ''Unpack it using the following command: <pre><nowiki> tar -xvf dev<TabKey>.tar.gz </nowiki></pre>'' 3. ''Go to the directory where you unpacked the source. <pre><nowiki> cd devil<TabKey> </nowiki></pre>'' 4. ''Install these packages if you do not already have them:'' *libxml-parser-perl *libvnck-dev <pre><nowiki> sudo apt-get install libxml-parser-perl libwnck-dev </nowiki></pre> 5. ''Prepare for compiling, you should not need any additional options. <pre><nowiki> ./configure </nowiki></pre> Hopefully you got something like: <pre><nowiki> configure: creating ./config.status config.status: creating devilspie.spec config.status: creating Makefile config.status: creating src/Makefile config.status: creating po/Makefile.in config.status: creating tests/Makefile config.status: creating src/config.h config.status: executing depfiles commands config.status: executing intltool commands config.status: executing default-1 commands </nowiki></pre> If not, read the output and install the packages you need. After installing necessary packages run "./configure" again.'' 6. ''If everything went fine, let us compile. <pre><nowiki> make </nowiki></pre>'' 7. ''If the compilation went fine and you did not get any errors (possible warnings should not probably concern you), it is time to install. <pre><nowiki> sudo make install </nowiki></pre> Alternatively, you could use checkinstall as it offers some advantages. Shut down anything using apt-get (ergo synaptic) and then type folowing: <pre><nowiki> sudo checkinstall </nowiki></pre> Checkinstall installs compiled program as if it were installed via synaptic, so then all you need to do to remove a program installed in such a way is <pre><nowiki> sudo apt-get remove devilspie </nowiki></pre> You might not have checkinstall installed on your system, then all you need to do is <pre><nowiki> sudo apt-get install checkinstall </nowiki></pre> === How do I set it up? === * devilspie is configured with s-expressions stored in files ending with ".ds". * Syntax is not difficult and is much more effective than it was in versions previous to 0.13, which used .xml files. * For details, see: ***** ''README, which should be placed in the directory where you unpacked the source (see above)'' ***** ''Forum [http://www.ubuntuforums.org/showthread.php?t=98071 thread] with list of logical operations and many examples'' ***** ''Another forum [http://ubuntuforums.org/showthread.php?t=75749 thread] which is mainly about the 0.10 version but begins with great HowTo which also includes some very useful stuff about later versions.'' ***** ''Great non-Ubuntu wiki [http://wiki.foosel.net/linux/devilspie page] which can be a great reference.'' ***** ''[http://x2.zuavra.net/index.php/48/ Tutorial] which can provide you with some deeper understanding of the principles of Devil's Pie. === How do I use it? === * You can start Devil's pie with simple <pre><nowiki> devilspie </nowiki></pre> in gnome-terminal. * It will read all the s-expressions stored in those two directories: ***** $HOME/.devilspie/ which should be /home/<YourUserName>/.devilspie on Ubuntu ***** $SYSCONFDIR/devilspie which should be /etc/devilspie on Ubuntu The former will apply just when you start devilspie, the latter will apply to all users. * You can use several options: ***** ''-d or --debug for debuging purposes, when run in terminal, it will print some useful information'' NOTE:this is the same as running Devil's Pie with s-expression like this: (debug) ***** ''-a or --apply-to-existing should apply devilspie also to existing windows. However, it seems that it applies regardless this option.'' ***** ''<file.ds> or <file1.ds> <file2.ds> etc will explicitly specify which config files should be used. * After setting it up, you will probably want to run it on start up, so that every window you open will open the way you want it to. For further info as to how to do that, read AddingProgramToSessionStartup * If you were to experience freezes down after adding devilspie to your startup programs with a low number (such as 30 or 50), try to higher it up so that devilspie starts as the last application. You may want to start it with -a option that applies the rules to already existing windows then. However, it may not be necessary. === How other people use it? === Feel free to add you working config files with explanation. === How can I improve this wiki page? === Simply add any useful stuff! Especially the section about setting up should be improved so that it more then just linking somewhere else, also some examples would be greatly appreciated. Also feel free to correct anything wrong. * Does anybody know how to make a list not italize first sentence of new item? If so, could you please correct it and then remove this note? Thanks. * I am not sure if devil spie reads files stored in /etc/devilspie/. It seems so, because other people say so, but when I checked, it did not work for me. Could someone please check it, correct it and then delete this note? ---- [[category:CategoryDocumentation]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:Devilspie
。