Automatically place Emacs and URxvt in my preferred places

This commit is contained in:
Tom Willemse 2013-06-17 16:21:55 +02:00
parent 916095eb4c
commit eb06ac12c4

View file

@ -167,3 +167,20 @@ raise it."
(add-window-matcher '((WM_CLASS . "^(Firefox|Conkeror)/Navigator$")) (add-window-matcher '((WM_CLASS . "^(Firefox|Conkeror)/Navigator$"))
'((position . north-east) '((position . north-east)
(maximized . all))) (maximized . all)))
(define (term-window-position w)
(- (screen-width) (window-width w) 1680))
(add-hook 'place-window-hook
(lambda (w)
(case (intern (window-class w))
((URxvt)
(resize-window-with-hints w 79 24)
(move-window-to w (term-window-position w) 0)
(grow-window-down w)
t)
((Emacs)
(resize-window-with-hints w 101 24)
(move-window-to w 0 0)
(grow-window-down w)
t))))