home-environment: radio: Use spawn-shell-command instead of system since a lambda action should be suspendable

Luis Guilherme Coelho 2024-11-25 03:23:58 -03:00
parent bc36fbc43d
commit ab23d68de3
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
1 changed files with 1 additions and 4 deletions

View File

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