mirror of
https://github.com/stumpwm/stumpwm-contrib.git
synced 2026-09-10 07:26:25 -04:00
Fix usage README
This commit is contained in:
parent
9c4b8a9b0f
commit
89817e2bac
|
|
@ -13,7 +13,7 @@ Just add the following line to your .stumpwmrc file:
|
|||
#+END_SRC
|
||||
...and then simply enable golden-ratio-mode with:
|
||||
#+BEGIN_SRC lisp
|
||||
(toggle-golden-ratio)
|
||||
(swm-golden-ratio:toggle-golden-ratio)
|
||||
#+END_SRC
|
||||
|
||||
Turning the golden-ratio-module on will enable automatic resizing of the focused frame. Enjoy
|
||||
|
|
|
|||
|
|
@ -28,13 +28,10 @@
|
|||
(stumpwm::frame-width to-frame))
|
||||
(resize-px target-y
|
||||
(stumpwm::frame-height to-frame)))
|
||||
(stumpwm:message "resized")
|
||||
(setq *golden-ratio-on* T))))))
|
||||
|
||||
(stumpwm:defcommand toggle-golden-ratio () ()
|
||||
"Toggle golden ratio"
|
||||
(setf *golden-ratio-on* (null *golden-ratio-on*)))
|
||||
|
||||
(stumpwm:message "reloaded")
|
||||
(stumpwm:defcommand toggle-golden-ratio () ()
|
||||
"Toggle golden ratio"
|
||||
(setf *golden-ratio-on* (null *golden-ratio-on*)))
|
||||
|
||||
(stumpwm:add-hook stumpwm:*focus-frame-hook* 'resize-to-golden-ratio)
|
||||
|
|
|
|||
Loading…
Reference in a new issue