Python script to save and load your pipewire wires.
Also a search function is included since its nice to have.
Also keep in mind the current version is only compatible with configs created at 0.3.2 or higher.
I want to say I used AI a lot for to make this script,
this is just one of these set it and forget it scripts.
Go To:
Main Repo: https://codeberg.org/marvin1099/Pipewire-save-load/releases
Backup Repo: https://github.com/marvin1099/Pipewire-save-load/releases
Then download the pipewire-script.py file and run it with the desired options
Since i have removed the replace commands,
your old config my not work with v0.5
to make shure it works load the config with v0.4,
then save with version v0.5
versions before v0.3.2 are not compatible with,
with v0.3.2 and above.
usage: pipewire-script.py [-h] [-s] [-l] [-d {links,ports,nodes}] [-k] [-i]
[-q QUERY] [-v VALUE] [-o OUTPUT] [-c CONFIG]
Manage PipeWire connections.
options:
-h, --help show this help message and exit
-s, --save Save wires
-l, --load Load wires
-d {links,ports,nodes}, --data {links,ports,nodes}
Select data type (links, ports, nodes) for searching and listing
-k, --keys Print all keys of data
-i, --list List all items of data
-q QUERY, --query QUERY
Search key
-v VALUE, --value VALUE
Search value
-o OUTPUT, --output OUTPUT
Output key for the search
-c CONFIG, --config CONFIG
Config file to use (default: pipewirewires.conf)