mirror of
https://github.com/stumpwm/stumpwm-contrib.git
synced 2026-09-10 07:26:25 -04:00
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.
900 B
900 B
swm-gaps
Pretty (useless) gaps for StumpWM.

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-windowandneighbour, so might not work as expected if those definitions change in the core. Currently works withv19.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