mirror of https://codeberg.org/anemofilia/zero
home-environments: radio: Use spawn-shell-command instead of system since a lambda action should be suspendable
parent
90b6c5d6c2
commit
153fda0b68
|
@ -20,10 +20,7 @@ next calendar event.")))
|
||||||
(start #~(make-timer-constructor
|
(start #~(make-timer-constructor
|
||||||
(calendar-event #:hours '(6) #:minutes '(0))
|
(calendar-event #:hours '(6) #:minutes '(0))
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(use-modules (ice-9 threads))
|
(spawn-shell-command "mpv --shuffle ~/media/music/by-artist"))))
|
||||||
(parallel
|
|
||||||
(system "foot -He rem")
|
|
||||||
(system "mpv --shuffle ~/media/music/by-artist")))))
|
|
||||||
(stop #~(make-timer-destructor))
|
(stop #~(make-timer-destructor))
|
||||||
(actions (list timer-trigger-action))))
|
(actions (list timer-trigger-action))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue