[StumpWM] Fix concurrency issue
This commit is contained in:
parent
3a80cc13d2
commit
53de06b844
@ -1689,16 +1689,14 @@ we can easily define how to turn on bluetooth.
|
|||||||
#+begin_src lisp
|
#+begin_src lisp
|
||||||
(defcommand bluetooth-turn-on () ()
|
(defcommand bluetooth-turn-on () ()
|
||||||
"Turn on bluetooth."
|
"Turn on bluetooth."
|
||||||
(sb-thread:make-thread
|
(bluetooth-message-command "power" "on"))
|
||||||
(lambda () (bluetooth-message-command "power" "on"))))
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
And how to power it off.
|
And how to power it off.
|
||||||
#+begin_src lisp
|
#+begin_src lisp
|
||||||
(defcommand bluetooth-turn-off () ()
|
(defcommand bluetooth-turn-off () ()
|
||||||
"Turn off bluetooth."
|
"Turn off bluetooth."
|
||||||
(sb-thread:make-thread
|
(bluetooth-message-command "power" "off"))
|
||||||
(lambda () (bluetooth-message-command "power" "off"))))
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** Bluetooth Devices
|
*** Bluetooth Devices
|
||||||
|
Loading…
Reference in New Issue
Block a user