Skip to content

switch sink by name #4

@root-hal9000

Description

@root-hal9000

Thanks for the audio switch script. I am a little confused about the switching by name part, as I am trying to use that one to add some keyboard shortcuts (the number ids change when I reconnect my bluetooth speakers). when doing it from the command line by name, I have tried several different formats without success - what I am doing wrong here? I guess I don;t know how to pass the name string? Here are some of my attempts

$ ./audio.sh alsa_output.pci-0000_42_00.1.hdmi-stereo-extra3
Usage: ./audio.sh [gui|list|<sink name to switch to>]
$ ./audio.sh <"alsa_output.pci-0000_42_00.1.hdmi-stereo-extra3">
bash: syntax error near unexpected token `newline'
$ ./audio.sh <'alsa_output.pci-0000_42_00.1.hdmi-stereo-extra3'>bash: syntax error near unexpected token `newline'
$ ./audio.sh <alsa_output.pci-0000_42_00.1.hdmi-stereo-extra3>
bash: syntax error near unexpected token `newline'
$ ./audio.sh 'alsa_output.pci-0000_42_00.1.hdmi-stereo-extra3'
Usage: ./audio.sh [gui|list|<sink name to switch to>]
$ ./audio.sh "alsa_output.pci-0000_42_00.1.hdmi-stereo-extra3"
Usage: ./audio.sh [gui|list|<sink name to switch to>]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions