diff options
| author | BardofSprites <[email protected]> | 2025-09-23 22:47:04 -0400 |
|---|---|---|
| committer | BardofSprites <[email protected]> | 2025-09-23 22:47:04 -0400 |
| commit | 710415d63ca723a41180800e047e022132b9bf26 (patch) | |
| tree | ce70713ae9c1f63b0fee8c6f3ab8e341770ef8ee /stumpwm/window.lisp | |
| parent | 354f5a666b75cb4eced8f8ba7a4d44ca34b26c93 (diff) | |
stumpwm window manager
Diffstat (limited to 'stumpwm/window.lisp')
| -rw-r--r-- | stumpwm/window.lisp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/stumpwm/window.lisp b/stumpwm/window.lisp new file mode 100644 index 0000000..daa3ffc --- /dev/null +++ b/stumpwm/window.lisp @@ -0,0 +1,38 @@ +(in-package :stumpwm) + +;;;; Groups +(grename "home") +(gnew "alt") + +;;;; Window Format +(setf *window-format* "%s%n%30t" + *window-border-style* :tight + *normal-border-width* 5 + *maxsize-border-width* 5 + ) + +;;;; Gaps +(load-module "swm-gaps") +(setq swm-gaps:*gaps-on* t) + +;;; Focus +(load-module "beckon") +(defmacro with-focus-lost (&body body) + "Make sure WIN is on the top level while the body is running and +restore it's always-on-top state afterwords" + `(progn (banish) + ,@body + (when (current-window) + (beckon:beckon)))) +;;; Splits +(defcommand hsplit-and-focus () () + "create a new frame on the right and focus it." + (with-focus-lost + (hsplit) + (move-focus :right))) + +(defcommand vsplit-and-focus () () + "create a new frame below and focus it." + (with-focus-lost + (vsplit) + (move-focus :down))) |
