You are not logged in.
Hi,
I recently started using stumpwm, and I really enjoy being able to maximize windows when I need to. When I maximize a window, however, my mode-line dissappears. Is there some configuration I could put in my .stumpwmrc that changes this, so a maximized window does not cover the mode-line?
Thanks.
Offline
I don't know if there is some option for the fullscreen command to leave the mode line, but you can use the "only" command to leave only one frame. The drawback of this is that you lose your previous configuration. I use the following to switch between one frame and the previous configuration
(defparameter *layouts* (make-hash-table :test #'eql))
(defcommand toggle-full-layout () ()
(let* ( (gnum (group-number (current-group)))
(currlay (gethash gnum *layouts*)) )
(if currlay
(progn
(restore-group (current-group) currlay)
(setf (gethash gnum *layouts*) nil))
(progn
(setf (gethash gnum *layouts*) (dump-group (current-group)))
(run-commands "only"))
)
)
)
(define-key *root-map* (kbd "q") "toggle-full-layout")My lisp is very rudimentary, but what it does is to save the layout in a hash and execute "only". Later it restores the layout from the hash table. At the bottom I bind it to Mod+q.
I also have a little function that I add to my modeline to see if I am in "fullscreen"
(defun is-full-lay ()
(let* ( (gnum (group-number (current-group)))
(currlay (gethash gnum *layouts*)) )
(if currlay
(format nil "(**)")
(format nil " "))
)
) Then, in my modeline I have:
(setf *screen-mode-line-format*
(list
...
"^3*^b" '(:eval (is-full-lay))
...
))So when I have something saved in the hash table I see a yellow (**) somewhere in the modeline.
Hope it helps.
Offline
Thanks. I'll give it a try, but seeing as I don't really know lisp (although I suppose I should learn if I'm using stumpwm), could anyone possibly suggest a simpler solution?
Offline
I've read the forum guidelines and am aware this may constitute necrobumping, but I'd like to thank the author for his toggle-full-layout function. Very nice!
Offline