<paypal></paypal> Please leave a tip

[?]

Devil's Pie

From Sy

Jump to: navigation, search

X > Devil's Pie

Window matching & acting.
http://www.burtonini.com/blog/computers/devilspie
  bugzilla
  Wiki
    It's crappy, try [1]

Contents

[edit] Intro

Devil's Pie is for window matching & acting just like the KDE window actions, except heinously difficult to configure.

[edit] Configuration and testing

To learn about your current-loaded windows, make a file called ~/.devilspie/debug.ds and add:

(debug)

Launch devilspie in an xterm-type window. Then run a program to see what happens. When I ran rxvt I could see this text output by devilspie:

Window Title: ' RXVT (en_US)'; Application Name: ' RXVT (en_US)'; Geometry: 743x364+588+427

Then I made a ~/.devilspie/rxvt.ds with this text:

(if (is (window_name) " RXVT (en_US)") (maximize))

I kill and then restart devilspie. Then I launch rxvt again. It's maximized automatically.

Other commands I've tried:

(if
  (is (application_name) " RXVT (en_US)")
  (begin
    (set_workspace 2)
    (maximize)
  )
)
geometry
(geometry "1x2+3+4")
  1. width
  2. height
  3. x position from the top-left. A larger number moves the window to the right.
  4. y position from the top-left. A larger number moves the window down.

Example:

(geometry "100x200+0+50")

Or you could just set either one or the other. Note that you cannot actually use these one after the other in the .ds configuration file.

(geometry "100x200")
(geometry "+0+50")
crazy exceptions

Certain types of windows won't work..

kdialog won't work with devilspie. Something to do with "wintype" except I can't get that to do anything.

[edit] 0.14

http://www.burtonini.com/computing/devilspie-0.14.tar.gz

Checking out the earlier version because of the dependancy on glib-2.0 >= 2.9.1

apt-get install libwnck-1_16-devel

Installed and working "fine". Too bad about the stupid scheme programming.

  • The --debug switch doesn't seem to work properly.
  • Configuration is awfully stupid. There should be a sensible language used which is parsed to be turned into that awful scheme crap. Brackets and quotes really aren't needed for human-readable configuration.

[edit] Resources


Personal tools
Navigation
About This Place
communicate
How did I do this?
[?]
Google ads
[?]