• 2 Posts
  • 348 Comments
Joined 1 year ago
cake
Cake day: June 6th, 2023

help-circle

  • I love it, but the configuration is messy. Many packages are out of date, but the Scheme syntax makes it easy to update them and build them on your system.

    Problem is, getting these updates merged with the upstream never happens generally speaking (I have several open patches), so you end up having two working trees in your local Guix repo, and heaven forbid you run guix pull on the wrong branch.





  • Pulseaudio should have hooks

    # cat /etc/pulse/default.pa
    load-module module-switch-on-connect
    load-module module-exec
    load-module module-exec arguments="path/to/your/script.sh %s"    
    

    (where %s resolves on trigger to the name of the sink added)

    Your script.sh should then match the first argument to the name of the sink you want to control, and then run

    # path/to/your/script.sh
    if [ "$1" = "THESINKIWANT" ]; then
      pactl set-sink-volume $1 40%
    fi