[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-user: set size and position of dialogs with devilspie



Hi. 
pcb and gschem seem to have its own ideas about size and placement of 
dialogs. In particular it does not seem to remember most of the 
parameters. Thus the user has to manually place them time and again. 
There is a way to work around this until pcb and gschem will finally 
remember all the positions:
The utility devilspie will catch all new windows and manipulate their 
properties according to config files. A minor drawback is the 
documentation of devilspie, or rather the lack thereof. Luckily some 
users wrote Howtos, most notably http://wiki.foosel.net/linux/devilspie

This is the content of the config file, that sends the library dialog of 
gschem to the very right with maximized height: 

-------------------8<----------------------------- 
(if
  (is (window_name) "Select Component...")
  (begin
        (wintype "normal")
        (geometry "-0-0")
        (maximize_vertically)
        (print "gschem library dialog found")
  )
)
-------------------->8---------------------------


Same trick for pcb:
------------------8<--------------------------
(if
  (is (window_name) "PCB Library")
  (begin
        (wintype "normal")
        (geometry "-0-0")
        (maximize_vertically)
        (print "pcb library dialog found")
  )
)
------------------>8--------------------------

Do you think, this trick should go into the wiki?

---<(kaimartin)>---
-- 
Kai-Martin Knaak			      
Universität Hannover, Inst. für Quantenoptik      tel: +49-511-762-2895	
Welfengarten 1, 30167 Hannover                    fax: +49-511-762-2211
GPG key:    http://pgp.mit.edu:11371/pks/lookup?search=Knaak+kmk&op=get



_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user