From a5597f80ac5d99ee374d780b67285366158392af Mon Sep 17 00:00:00 2001 From: Carl Philipp Klemm Date: Sun, 7 Jun 2026 09:59:18 +0200 Subject: [PATCH] Rename serve and node name to be more consistant --- CMakeLists.txt | 2 +- main.cpp | 2 +- pipewireaudiowatcher@.service => pipewirestreamwatcher@.service | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename pipewireaudiowatcher@.service => pipewirestreamwatcher@.service (68%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 04d1f68..a0c6632 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,4 +16,4 @@ target_link_libraries(${PROJECT_NAME} ${PIPEWIRE_LIBRARIES}) target_include_directories(${PROJECT_NAME} PUBLIC ${PIPEWIRE_INCLUDE_DIRS}) set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-Wall -O2 -march=x86-64-v2 -g" LINK_FLAGS "-flto") install(TARGETS ${PROJECT_NAME} DESTINATION bin) -install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pipewireaudiowatcher@.service DESTINATION /lib/systemd/user) +install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pipewirestreamwatcher@.service DESTINATION /lib/systemd/user) diff --git a/main.cpp b/main.cpp index 70f49f7..5210ae1 100644 --- a/main.cpp +++ b/main.cpp @@ -232,7 +232,7 @@ static void setup_stream_listener(const char* serial, PwlPriv *priv) priv->sink_stream = pw_stream_new_simple( pw_main_loop_get_loop(priv->loop), - "audio-capture", + "stream-watcher-capture", props, &stream_events, priv); diff --git a/pipewireaudiowatcher@.service b/pipewirestreamwatcher@.service similarity index 68% rename from pipewireaudiowatcher@.service rename to pipewirestreamwatcher@.service index ee7b61c..2cd1b7a 100644 --- a/pipewireaudiowatcher@.service +++ b/pipewirestreamwatcher@.service @@ -3,7 +3,7 @@ After=network.target sound.target [Service] Type=simple -ExecStart=/usr/bin/stdbuf -oL /usr/bin/pipewirestreamwatcher -n %i +ExecStart=/usr/bin/stdbuf -oL /usr/bin/pipewirestreamwatcher -h 10.0.0.1 -n %i ExitType=main StandardOutput=journal StandardError=journal