bookercodes / dotfiles

🎚 Configuration files for macOS and Linux
745 stars 67 forks source link

i3blocks.conf - volume command script #17

Closed jackBzzz closed 8 years ago

jackBzzz commented 8 years ago

Hello,

My ubuntu 15.10, upgraded to 16.04 machine does not have pulseaudio-ctl available in the repos.

What happened to the volume Perl script https://www.youtube.com/watch?v=ARKIwOlazKI? I had an issue with it - my audio sink passed as the first argument is actually 0, which makes the script exit early. I solved it by:

my $sink=$ARGV[0] || die("Need a sink number as the first argument\n");

if (!defined $ARGV[0]) {die("Need a sink number as the first argument\n");} my $sink=$ARGV[0];

continue code

Regards.

bookercodes commented 8 years ago

Hi @jackBzzz,

I'll get back to you soon. Thanks.

jackBzzz commented 8 years ago

Hi,

Do you think the issue is relevant? Are there any additional info that I can provide?

Regards, J.

bookercodes commented 8 years ago

Sorry for not getting back to you when I said I would :disappointed:

Whilst I appreciate you taking the time to post I do not see the relevance of this issue as I am not using Ubuntu any more.