ghostintheshell
July 15th, 2005, 11:41 PM
Hi,
For people who don't like to wait the latest package, here's my how-to for installing DevilsPie 0.10.
- First of all, remove your actual version of DevilsPie (If you already have one ;)) from synaptic or dpkg ...
- As usual, download the tar.gz file: here (http://www.burtonini.com/computing/devilspie-0.10.tar.gz) (from the official web site (http://www.burtonini.com/blog/computers/devilspie))
- Untar it
- I use to copy all my sources files to /usr/local/src/ (to keep the sources and easily uninstall with the make uninstall command when a new version is available)
- Then go to /usr/local/src/devilspie-0.10 (or the directory where you put the sources)
- Try to configure: ./configure --prefix=/usr
You should meet a strange error: checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool
Ok, here's the solution:
(need to be root -> sudo)
- sudo perl -MCPAN -e shell (would run CPAN module of Perl)
- install XML::Parser (would install XML::Parser and all of its dependencies)
- bye (would exit CPAN)
Ah ah, try again ...
- ./configure --prefix=/usr
Ok right now!
- make
- sudo make install
- Optional: make clean (would delete useless compiled files -> disk storage)
- Optional (later ;)): sudo make uninstall (would reverse the process -> delete all installed files)
If you don't have already a .devilspie.xml file in your home directory (~/.devilspie.xml), no problemo:
- Copy the sample-config.xml file which is in the source directory (mine is /usr/local/src/devilspie-0.10/sample-config.xml) in your home directory
- Rename it as .devilspie.xml
- A chown + a chmod on the file (~/.devilspie.xml) to become the owner and give you the rights on the file
Now, you can edit it with your rules.
To launch devilspie at the startup:
- Go to the Gnome menu: System / Preferences / Sessions / Startup Programs
- Then add an entry: devilspie with priority: 45
For people asking me why use DevilsPie? He he ... For a lot of things :p
I personally use it for:
- XMMS (to complete the 'status docklet (http://www.hellion.org.uk/xmms-status-plugin/)' plugin action => not visible in the task bar and the pager)
- Thunderbird (to automagically put it on 2nd desktop at the top left border of the screen)
- Eterm (to merge a terminal with the desktop (http://www.ubuntuforums.org/showthread.php?t=36811&highlight=Eterm) => not visible in the task bar and the pager, under all windows and visible on all desktops = pinned).
Here's my .devilspie.xml file (take it as a sample):
<?xml version="1.0"?>
<!DOCTYPE devilspie SYSTEM "devilspie.dtd">
<devilspie>
<flurb name="Print Window Names">
<matchers>
<!-- this is a matcher which always returns true. The full class name must be used -->
<matcher name="DevilsPieMatcherAlways"/>
</matchers>
<actions>
<!-- this action prints out the window and application name -->
<action name="DevilsPieActionDebug"/>
</actions>
</flurb>
<flurb name="XMMS">
<matchers>
<matcher name="DevilsPieMatcherWindowName">
<property name="application_name" value="XMMS"/>
</matcher>
</matchers>
<actions>
<action name="DevilsPieActionHide">
<property name="skip_tasklist" value="TRUE"/>
<property name="skip_pager" value="TRUE"/>
</action>
</actions>
</flurb>
<flurb name="Eterm">
<matchers>
<matcher name="DevilsPieMatcherWindowName">
<property name="application_name" value="Eterm"/>
</matcher>
</matchers>
<actions>
<action name="DevilsPieActionSetWorkspace">
<property name="pinned" value="TRUE"/>
</action>
<action name="DevilsPieActionHide">
<property name="skip_tasklist" value="TRUE"/>
<property name="skip_pager" value="TRUE"/>
</action>
<action name="DevilsPieActionLayer">
<property name="above" value="FALSE"/>
</action>
</actions>
</flurb>
<flurb name="Thunderbird">
<matchers>
<matcher name="DevilsPieMatcherWindowName">
<property name="application_name" value="mozilla-thunderbird-bin"/>
</matcher>
</matchers>
<actions>
<action name="DevilsPieActionSetWorkspace">
<property name="workspace_index" value="2"/>
</action>
<action name="DevilsPieActionSetGeometry">
<property name="xoffset" value="0"/>
<property name="yoffset" value="0"/>
</action>
</actions>
</flurb>
</devilspie>
And now enjoy editing your own rules :cool:
For people who don't like to wait the latest package, here's my how-to for installing DevilsPie 0.10.
- First of all, remove your actual version of DevilsPie (If you already have one ;)) from synaptic or dpkg ...
- As usual, download the tar.gz file: here (http://www.burtonini.com/computing/devilspie-0.10.tar.gz) (from the official web site (http://www.burtonini.com/blog/computers/devilspie))
- Untar it
- I use to copy all my sources files to /usr/local/src/ (to keep the sources and easily uninstall with the make uninstall command when a new version is available)
- Then go to /usr/local/src/devilspie-0.10 (or the directory where you put the sources)
- Try to configure: ./configure --prefix=/usr
You should meet a strange error: checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool
Ok, here's the solution:
(need to be root -> sudo)
- sudo perl -MCPAN -e shell (would run CPAN module of Perl)
- install XML::Parser (would install XML::Parser and all of its dependencies)
- bye (would exit CPAN)
Ah ah, try again ...
- ./configure --prefix=/usr
Ok right now!
- make
- sudo make install
- Optional: make clean (would delete useless compiled files -> disk storage)
- Optional (later ;)): sudo make uninstall (would reverse the process -> delete all installed files)
If you don't have already a .devilspie.xml file in your home directory (~/.devilspie.xml), no problemo:
- Copy the sample-config.xml file which is in the source directory (mine is /usr/local/src/devilspie-0.10/sample-config.xml) in your home directory
- Rename it as .devilspie.xml
- A chown + a chmod on the file (~/.devilspie.xml) to become the owner and give you the rights on the file
Now, you can edit it with your rules.
To launch devilspie at the startup:
- Go to the Gnome menu: System / Preferences / Sessions / Startup Programs
- Then add an entry: devilspie with priority: 45
For people asking me why use DevilsPie? He he ... For a lot of things :p
I personally use it for:
- XMMS (to complete the 'status docklet (http://www.hellion.org.uk/xmms-status-plugin/)' plugin action => not visible in the task bar and the pager)
- Thunderbird (to automagically put it on 2nd desktop at the top left border of the screen)
- Eterm (to merge a terminal with the desktop (http://www.ubuntuforums.org/showthread.php?t=36811&highlight=Eterm) => not visible in the task bar and the pager, under all windows and visible on all desktops = pinned).
Here's my .devilspie.xml file (take it as a sample):
<?xml version="1.0"?>
<!DOCTYPE devilspie SYSTEM "devilspie.dtd">
<devilspie>
<flurb name="Print Window Names">
<matchers>
<!-- this is a matcher which always returns true. The full class name must be used -->
<matcher name="DevilsPieMatcherAlways"/>
</matchers>
<actions>
<!-- this action prints out the window and application name -->
<action name="DevilsPieActionDebug"/>
</actions>
</flurb>
<flurb name="XMMS">
<matchers>
<matcher name="DevilsPieMatcherWindowName">
<property name="application_name" value="XMMS"/>
</matcher>
</matchers>
<actions>
<action name="DevilsPieActionHide">
<property name="skip_tasklist" value="TRUE"/>
<property name="skip_pager" value="TRUE"/>
</action>
</actions>
</flurb>
<flurb name="Eterm">
<matchers>
<matcher name="DevilsPieMatcherWindowName">
<property name="application_name" value="Eterm"/>
</matcher>
</matchers>
<actions>
<action name="DevilsPieActionSetWorkspace">
<property name="pinned" value="TRUE"/>
</action>
<action name="DevilsPieActionHide">
<property name="skip_tasklist" value="TRUE"/>
<property name="skip_pager" value="TRUE"/>
</action>
<action name="DevilsPieActionLayer">
<property name="above" value="FALSE"/>
</action>
</actions>
</flurb>
<flurb name="Thunderbird">
<matchers>
<matcher name="DevilsPieMatcherWindowName">
<property name="application_name" value="mozilla-thunderbird-bin"/>
</matcher>
</matchers>
<actions>
<action name="DevilsPieActionSetWorkspace">
<property name="workspace_index" value="2"/>
</action>
<action name="DevilsPieActionSetGeometry">
<property name="xoffset" value="0"/>
<property name="yoffset" value="0"/>
</action>
</actions>
</flurb>
</devilspie>
And now enjoy editing your own rules :cool: