Gnome minimize

David A. Sinck plug-discuss@lists.plug.phoenix.az.us
Wed, 6 Mar 2002 07:38:04 -0700


\_ SMTP quoth Carl Parrish on 3/5/2002 20:04 as having spake thusly:
\_
\_ Does anyone know of a way in Gnome to minimize all open apps? I'd prefer
\_ a keybinding but any quick easy "one step" will do. 

In sawfish, create a couple of functions in .sawfishrc:

(defun iconify-all-windows ()
   "Iconify all windows."
   (interactive)
   (map-windows iconify-window))
; 
; then bind a key to iconify-all-window. If you just want to iconify the
; windows on the current workspace, try:
; 

(defun iconify-workspace-windows ()
   "Iconify all windows on the current workspace."
   (interactive)
   (map-windows (lambda (w)
                  (when (window-in-workspace-p w current-workspace)
                    (iconify-window w)))))
 

Then 'sawfish-client -f restart' and the functions should be in and
you should be able to bind keymaps to them ok (via 'sawfish-gui',
'bindings' menu).

YMMV, code untested.

David