marioortizmanero / polybar-pulseaudio-control

A feature-full Polybar module to control PulseAudio
MIT License
478 stars 49 forks source link

--sink-nickname works for <name> but not for <nick> #61

Closed MarkGotLasagna closed 2 years ago

MarkGotLasagna commented 2 years ago

Steps to reproduce:

  1. copy paste default configuration for exec found inside README (here tweaked, it makes no difference)
    exec = pulseaudio-control --icons-volume " , , " --icon-muted "" --sink-nicknames-from "device.description" 
    --sink-nickname "alsa_output.pci-0000_00_1b.0.analog-stereo: speaker" 
    --sink-nickname "alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo" listen
  2. reload i3 with Mod + Shift + R

Expected behavior:

What does NOT happen is the module displaying the nickname and icon I gave for the sink image

[module/pulseaudio-control]
type = custom/script
tail = true
format-underline = #0000FF
label-foreground = ${colors.foreground}
;label-maxlen = 30

# Icons mixed from Font Awesome 5 and Material Icons
# You can copy-paste your options for each possible action, which is more
# trouble-free but repetitive, or apply only the relevant ones (for example
# --sink-blacklist is only needed for next-sink).
exec = pulseaudio-control --icons-volume " , , " --icon-muted "" --sink-nicknames-from "device.description" 
--sink-nickname "alsa_output.pci-0000_00_1b.0.analog-stereo: speaker" 
--sink-nickname "alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo" listen
click-right = pulseaudio-control --sink-blacklist "alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2" next-sink

Am I doing something wrong? using arch linux i3 as wm picom as compositor

MarkGotLasagna commented 2 years ago

Found out that I'm stupid nvm Use the command pactl list sinks | grep Name to list YOUR devices and change the ones inside the config accordingly e.g.

--sink-nickname "alsa_output.usb-Astro_Gaming_Astro_A50-00.stereo-game: Astro A50"

marioortizmanero commented 2 years ago

No problem! If you have any other problems do let me know.