Size: 4769
Comment: stylistic and gramatical improvements, change it more, I am not a native speaker
|
← Revision 34 as of 2014-11-06 17:25:00 ⇥
Size: 6573
Comment: Broken link - x2.zuavra.net doesn't exist.
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
== What is Devilspie? == Devil's pie is a non-gui utility that let you make applications according to their names 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] |
== 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]] == The gui == A simple fully capable gui has been written, [[http://code.google.com/p/gdevilspie/|gdevilspie]], by a different author. If you install it you will likely not need this page as it is pretty self-explanatory. |
Line 5: | Line 9: |
There is a precompiled deb package in Ubuntu repository for Breezy which you of course can get via Synaptic or apt-get but it is only the 0.10 version. However, Devil's pie was totally rewrited since version 0.13 so I recommend in order of future compatibility and easier configuration you compile the latest version yourself. It is a piece of cake since it is an lightweighted 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]'' in your favourite download location. 2. ''Unpack it using the following command: {{{ tar -xvf dev<TabKey>.tar.gz }}}'' 3. ''Go to the directory where you unpacked the source. {{{ cd devil<TabKey> }}}'' 4. ''Prepare for compiling, you should not need any additional options. {{{ ./configure }}} Hopefully you got something like: {{{ 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 }}} If not, read the output and install the packages you need. They should be indicated as dev in Synaptic.'' 5. ''If everything went fine, let us compile. {{{ make }}}'' 6. ''If the compilation went fine and you did not get any errors (possible warnings should not probably concern you), it is time to install. {{{ sudo make install }}} |
[[InstallingSoftware|Install]] the '''devilspie''' package from the [[Repositories|Universe]] repository. |
Line 50: | Line 13: |
* Devil's pie is configured with s-expressions stored in files ending with ".ds". | * devilspie is configured with s-expressions stored in files ending with ".ds". |
Line 55: | Line 18: |
* ''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.'' |
* 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. |
Line 61: | Line 24: |
* You can start Devil's pie with simple {{{ |
* You can start Devil's pie with {{{ |
Line 65: | Line 28: |
in gnome-terminal. | in gnome-terminal. |
Line 67: | Line 30: |
* 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 on Ubuntu /etc/devilspie The former will apply just when you start devilspie, the latter will apply to all users. |
* It will read all the s-expressions stored in these 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. |
Line 73: | Line 36: |
* ''-d or --debug for debuging purposes, when run in terminal, it will print some useful information'' * ''-a or --apply-to-existing should apply Devil's pie 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. |
* {{{-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 an 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. * {{{devilspie <file.ds>}}} or {{{devilspie <file1.ds> <file2.ds>}}} etc will explicitly specify which config files should be used. |
Line 77: | Line 41: |
* However, 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 [https://wiki.ubuntu.com/AddingProgramToSessionStartup this] nice wiki page. | * 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 |
Line 79: | Line 43: |
== How other people use it? == Feel free to add you working config files with explanation. |
* 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. == Examples == Background for this setup: A dual-screen workspace where the smaller (laptop) screen is used solely for "communications" (IRC and IM windows). The goal is to get three windows (xchat, Pidgin buddy list and Pidgin chat window) into pre-set locations wasting as little screen estate as possible. {{{ +--------+------------------------+ | Pidgin | | | Buddy | Pidgin | | List | Conversation | | | | | +------------------------+ | | | | | Xchat | | | | | | | +--------+------------------------+ }}} === pidgin.ds === Buddy list and conversation window are undecorated (no titles or borders), moved and resized. Buddy list is also removed from task list (so it won't show up in Window list). Note: Even with 'undecorate' the conversation window seems to have a some border, this is the reason for some additional pixels there... {{{ (if (is (application_name) "Pidgin") (begin (if (is (window_role) "buddy_list") (begin (undecorate) (skip_tasklist) (geometry "199x767+0+0") ) ) (if (is (window_role) "conversation") (begin (undecorate) (geometry "822x400+201+0") ) ) ) )}}} === xchat.ds === Xchat is undecorated (no titles or borders), moved and resized. Xchat main window does not have a window_role defined, but fortunately the other windows (like Preferences or Network List) do, so the empty match seems to work. {{{ (and (is (application_name) "xchat") (is (window_role) "") (begin (undecorate) (geometry "823x363+200+404") ) )}}} == How can I see what applications are currently running? == ''xlsclients -l'' {{{ Window 0x4e00001: Machine: sally Name: Pidgin Icon Name: pidgin Command: pidgin Instance/Class: pidgin/Pidgin }}} From the above, to match on pidgin requires {{{(is (application_name) "Pidgin")}}} and not {{{(is (application_name) "pidgin")}}} == How can I find the geometry of currently running applications? == ''/usr/bin/xwininfo'' {{{ xwininfo: Please select the window about which you would like information by clicking the mouse in that window. xwininfo: Window id: 0x5a0000a "xeyes" Absolute upper-left X: 1017 Absolute upper-left Y: 347 Relative upper-left X: 1 Relative upper-left Y: 27 Width: 172 Height: 119 Depth: 24 Visual: 0x21 Visual Class: TrueColor Border width: 0 Class: InputOutput Colormap: 0x20 (installed) Bit Gravity State: NorthWestGravity Window Gravity State: NorthWestGravity Backing Store State: NotUseful Save Under State: no Map State: IsViewable Override Redirect State: no Corners: +1017+347 -491+347 -491-584 +1017-584 -geometry 172x119+1016+320 }}} == Autodesk Maya Users: == Maya users may need to use Devilspie to control Maya's Window functionality: {{{ touch $HOME/.devilspie/Maya.ds vim $HOME/.devilspie/Maya.ds }}} And add this line to the file: {{{ (if (is (window_name) "Maya") (below)) }}} Now Maya is under all it's children. |
Line 85: | Line 154: |
* 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? |
|
Line 88: | Line 155: |
CategoryDocumentation | CategorySoftware CategoryGraphics |
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 here
The gui
A simple fully capable gui has been written, gdevilspie, by a different author. If you install it you will likely not need this page as it is pretty self-explanatory.
How can I get it?
Install the devilspie package from the Universe repository.
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 thread with list of logical operations and many examples
Another forum 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 page which can be a great reference.
How do I use it?
- You can start Devil's pie with
devilspie
in gnome-terminal. - It will read all the s-expressions stored in these 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 an 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.
devilspie <file.ds> or devilspie <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.
Examples
Background for this setup: A dual-screen workspace where the smaller (laptop) screen is used solely for "communications" (IRC and IM windows). The goal is to get three windows (xchat, Pidgin buddy list and Pidgin chat window) into pre-set locations wasting as little screen estate as possible.
+--------+------------------------+ | Pidgin | | | Buddy | Pidgin | | List | Conversation | | | | | +------------------------+ | | | | | Xchat | | | | | | | +--------+------------------------+
pidgin.ds
Buddy list and conversation window are undecorated (no titles or borders), moved and resized. Buddy list is also removed from task list (so it won't show up in Window list). Note: Even with 'undecorate' the conversation window seems to have a some border, this is the reason for some additional pixels there...
(if (is (application_name) "Pidgin") (begin (if (is (window_role) "buddy_list") (begin (undecorate) (skip_tasklist) (geometry "199x767+0+0") ) ) (if (is (window_role) "conversation") (begin (undecorate) (geometry "822x400+201+0") ) ) ) )
xchat.ds
Xchat is undecorated (no titles or borders), moved and resized. Xchat main window does not have a window_role defined, but fortunately the other windows (like Preferences or Network List) do, so the empty match seems to work.
(and (is (application_name) "xchat") (is (window_role) "") (begin (undecorate) (geometry "823x363+200+404") ) )
How can I see what applications are currently running?
xlsclients -l
Window 0x4e00001: Machine: sally Name: Pidgin Icon Name: pidgin Command: pidgin Instance/Class: pidgin/Pidgin
From the above, to match on pidgin requires (is (application_name) "Pidgin") and not (is (application_name) "pidgin")
How can I find the geometry of currently running applications?
/usr/bin/xwininfo
xwininfo: Please select the window about which you would like information by clicking the mouse in that window. xwininfo: Window id: 0x5a0000a "xeyes" Absolute upper-left X: 1017 Absolute upper-left Y: 347 Relative upper-left X: 1 Relative upper-left Y: 27 Width: 172 Height: 119 Depth: 24 Visual: 0x21 Visual Class: TrueColor Border width: 0 Class: InputOutput Colormap: 0x20 (installed) Bit Gravity State: NorthWestGravity Window Gravity State: NorthWestGravity Backing Store State: NotUseful Save Under State: no Map State: IsViewable Override Redirect State: no Corners: +1017+347 -491+347 -491-584 +1017-584 -geometry 172x119+1016+320
Autodesk Maya Users:
Maya users may need to use Devilspie to control Maya's Window functionality:
touch $HOME/.devilspie/Maya.ds vim $HOME/.devilspie/Maya.ds
And add this line to the file:
(if (is (window_name) "Maya") (below))
Now Maya is under all it's children.
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.