Fix usage README

This commit is contained in:
Roch D'Amour 2019-08-17 15:42:16 -04:00
parent 9c4b8a9b0f
commit 89817e2bac
No known key found for this signature in database
GPG key ID: 39C33AD8C3CC3DD3
2 changed files with 4 additions and 7 deletions

View file

@ -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

View file

@ -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)