• 0 Posts
  • 5 Comments
Joined 1 year ago
cake
Cake day: July 24th, 2023

help-circle

  • The details depend a bit on the audiostack of your distro, but they all have a cli program with which you can change inputs/outputs and volume; e.g. pactl for pulseaudio and wpctl for wireplumber.

    You’ll need a mechanism to find your triggers (I create a firefox tab with youtube/spotify, I have a music player active) and then you can act on it.

    Detecting voice in an audiostream is probably technically possible, but that sounds pretty hard to setup.




  • To expand a little on @Laser ‘s point 2:

    In bash (and other programming languages) # is used at the start of the line to notate comments.

    When writing percentages, you write the symbol after the number, e.g. 50%

    That’s how I keep them apart, lol

    Theres a section in the bash manual with these and a whole bunch of more expansion tricks.

    One I find useful is

    echo "${myvar@A}"