stumpwm.stumpwm-contrib/util/swm-gaps/README.org
Abhinav Tushar ae487c6095
Update maximize-window fn override to reflect recent changes in master
A recent fix to an issue in stumpwm master (see [this
commit](072836f261))
was partially getting reverted by the function redefinition that happens in
swm-gaps module. This commit updates swm-gaps to reflect those changes.
2019-12-14 16:19:58 +05:30

900 B

swm-gaps

Pretty (useless) gaps for StumpWM.

/x11-wm/stumpwm.stumpwm-contrib/media/commit/0250bbd4605453fb41eddd0632e94fb9e599486d/util/swm-gaps/screen.png

This is a packed version of useless-gaps by vlnx with added outer borders. Credit goes to the original author.

This modifies StumpWM's internal functions maximize-window and neighbour, so might not work as expected if those definitions change in the core. Currently works with v19.11.

  (load-module "swm-gaps")

  ;; Head gaps run along the 4 borders of the monitor(s)
  (setf swm-gaps:*head-gaps-size* 20)

  ;; Inner gaps run along all the 4 borders of a window
  (setf swm-gaps:*inner-gaps-size* 5)

  ;; Outer gaps add more padding to the outermost borders of a window (touching
  ;; the screen border)
  (setf swm-gaps:*outer-gaps-size* 30)

  ;; Call command
  ;; toggle-gaps