SiteMap RecentChanges

Customize

When Stumpwm starts up, it will load the contents of ~/.stumpwmrc. Place your hacks there.

There are also several hooks you can use to attach your hacks. Read the source or stumpwm.info for details.

Stumpwm includes a sample ~/.stumpwmrc, you can view it online at http://cvs.savannah.nongnu.org/viewcvs/stumpwm/sample-stumpwmrc.lisp?root=stumpwm&view=markup


I've found two other .stumpwmrcs that are good; my own, at http://en.wikipedia.org/wiki/User:Gwern/.stumpwmrc

and Phil's, here: http://hocwp.free.fr/temp/stumpwmrc


The last (Phil's) is broken (see down in the page). Change screen with (current-screen)


A recent CVS update broke .stumpwm files.

here is what sabbets had to say about it.

I've added virtual desktops to CVS. There have been numerous changes throughout the source. This will probably cause breakage in your rc files. Most probably the most common breakage will be that define-stumpwm-command no longer takes a screen arg.

for example, in the source:

 (define-stumpwm-command "meta" (screen (key :key "Key: "))
   (send-meta-key screen key))

Is now

 (define-stumpwm-command "meta" ((key :key "Key: "))
   (send-meta-key (current-screen) key))

If you're having trouble fixing your rc file come to #stumpwm on freenode and we'll sort it out.


I've thought of a half-hearted implementation of registers; see paste.lisp.


For anyone interested, here's my .stumpwmrc. http://www.tsdh.de/configs/.stumpwmrc


If you are like me and too lazy to get slime working... you can add this to your .emacs, and install ratpoison(if necesary):

;;stumpwm

 (add-to-list 'auto-mode-alist '("\\.stuwmpwmrc$" . lisp-mode))
 
 (add-hook 'lisp-mode-hook (lambda () (local-set-key (kbd "C-x C-e") 
               'stumpwm-eval-region)))
 (defun stumpwm-eval-region 
  (beg end) 
  "Runs the region in the stumpwm-REPL" 
  (interactive "r")
  (shell-command (replace-regexp-in-string "\"'"  "\\\\\"" (concat "ratpoison -c \"eval " (filter-buffer-substring beg end) "\""))))

Another option (which I just found out about) is to use stumpish and the stumpwm minor mode provided in the contrib directory.


Another config, links to all revisions as I learn to bend stumpwm to my will: http://prael.wordpress.com/stumpwmrc/