diff --git a/home/modules/pipewire-controller.nix b/home/modules/pipewire-controller.nix index 2d28fa8..8704b0e 100644 --- a/home/modules/pipewire-controller.nix +++ b/home/modules/pipewire-controller.nix @@ -44,6 +44,28 @@ let .output() .expect("Unable to play audio via mpv"); } + + let xrootdatetime_pid_raw = + Command::new("systemctl") + .args([ + "--user", + "show", + "--property", "MainPID", + "--value", "xrootdatetime" + ]) + .output(); + + if let Ok(xrootdatetime_pid_raw) = xrootdatetime_pid_raw { + if let Ok(xrootdatetime_pid) = str::from_utf8(&xrootdatetime_pid_raw.stdout[..]) { + let _ = Command::new("kill") + .args([ + "-s", + "SIGUSR1", + xrootdatetime_pid + ]) + .spawn(); + } + } } ''; in