[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:
parent
ff119ce02c
commit
7b4c5a62db
@ -1163,9 +1163,13 @@ The first thing to do is load ~slynk~, SLY’s server:
|
||||
Now we can define a command to launch the server. I don’t 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~
|
||||
|
Loading…
Reference in New Issue
Block a user