]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
stumpwm: Better way to enable modeline and display it at the bottom.
authorSimon Ruderich <simon@ruderich.org>
Thu, 26 Feb 2009 20:36:00 +0000 (14:36 -0600)
committerSimon Ruderich <simon@ruderich.org>
Thu, 26 Feb 2009 20:36:00 +0000 (14:36 -0600)
stumpwmrc

index 0e84eecb23fc0d87ae4ae9c5092bbe931e67681c..9cd6b1ac0306668387a338bc7cce8c344b1ff2b2 100644 (file)
--- a/stumpwmrc
+++ b/stumpwmrc
@@ -6,8 +6,13 @@
 
 ;;; MODE LINE
 
-;; Display mode line.
-(toggle-mode-line (current-screen) (current-head))
+;; Display mode line at the bottom of the screen.
+(setf *mode-line-position* :bottom)
+;; Display mode line and allow loading of stumpwmrc multiple times. Thanks to
+;; http://prael.wordpress.com/stumpwmrc/ and
+;; http://hcl-club.lu/svn/development/lisp/.stumpwmrc
+(if (not (head-mode-line (current-head)))
+     (toggle-mode-line (current-screen) (current-head)))
 
 
 ;;; KEY MAPPINGS