• 4 Posts
  • 866 Comments
Joined 2 年前
cake
Cake day: 2023年6月4日

help-circle
  • The biggest advantage of balcony-mounted solar panels, at least where I live, is that you need 0 permits. You don’t need to ask your neighbors, you don’t need to ask your power company, you don’t need a building permit, you don’t need an electrician and you don’t need a solar company to install them for you.

    They don’t replace large solar farms but if you incentivize people to DIY their solar installation you get tons of additional cheap and clean energy from a source that would be wasted otherwise.







  • I did something similar a while ago but for changing volume on a single application, should work for devices as well though since both are just nodes.

    Try this:

    #!/bin/sh
    
    node_id=$(pw-dump | jq '.[] | select(.type == "PipeWire:Interface:Node" and .info.props."node.name" == "Virtual-Sink-1") | .id')
    
    echo "Adjusting volume for $node_id"
    
    wpctl set-volume $node_id 10%-
    

    Replace Virtual-Sink-1 with the name of your audio device and 10%- with the operation you want to perform.