[StumpWM] Update sly functions

Rename `start-sly-server` to `sly-start-server`.

Add `stop-sly-server`. It will always try to stop a server running on
port 4005 (default port used by `sly-start-server`)
This commit is contained in:
Lucien Cartier-Tilet 2022-03-06 21:46:46 +01:00
parent ff119ce02c
commit 7b4c5a62db
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 6 additions and 2 deletions

View File

@ -1163,9 +1163,13 @@ The first thing to do is load ~slynk~, SLYs server:
Now we can define a command to launch the server. I dont want it to
run all the time, just when I need it.
#+begin_src lisp
(stumpwm:defcommand start-sly-server () ()
"Start a SLYNK server for SLY"
(stumpwm:defcommand sly-start-server () ()
"Start a slynk server for sly."
(slynk:create-server :dont-close t))
(stumpwm:defcommand sly-stop-server () ()
"Stop current slynk server for sly."
(slynk:stop-server 4005))
#+end_src
** ~swm-ssh~