]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - stumpwmrc
xinitrc: +x
[config/dotfiles.git] / stumpwmrc
index 8e93597ff955be11a1aa2213c28d2a53285b3df9..1545d33767d17ecd81151079d86b97f5fb61330d 100644 (file)
--- a/stumpwmrc
+++ b/stumpwmrc
@@ -3,12 +3,23 @@
 
 (in-package :stumpwm)
 
-;; Display mode line.
-(toggle-mode-line (current-screen) (current-head))
+
+;;; MODE LINE
+
+;; 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
 
 ;; Remove bindings to kill a window. Too dangerous for a Vim user.
-(undefine-key *root-map* (kbd "k"))
-(undefine-key *root-map* (kbd "C-k"))
-(undefine-key *root-map* (kbd "K"))
+(undefine-key *group-root-map* (kbd "k"))
+(undefine-key *group-root-map* (kbd "C-k"))
+(undefine-key *group-root-map* (kbd "K"))
 
 ;; vim: ft=lisp