From 987a59167c8575faabbd6e0c835b1ec2a8bbb259 Mon Sep 17 00:00:00 2001 From: pgrondek Date: Tue, 17 Dec 2019 20:29:04 +0100 Subject: [PATCH] [i3-blocks] Sound block launch audio settings when clicked --- i3/i3blocks/blocks/volume | 2 ++ 1 file changed, 2 insertions(+) diff --git a/i3/i3blocks/blocks/volume b/i3/i3blocks/blocks/volume index 6e0c4fe..d320416 100755 --- a/i3/i3blocks/blocks/volume +++ b/i3/i3blocks/blocks/volume @@ -1,6 +1,7 @@ #!/usr/bin/env bash # Copyright (C) 2014 Julien Bonjean # Copyright (C) 2014 Alexander Keller +# Copyright (C) 2019 Przemysław Grondek # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -75,6 +76,7 @@ format() { #------------------------------------------------------------------------ case $BLOCK_BUTTON in + 1) pavucontrol ;; # Launch audio control 3) amixer -q -D $MIXER sset $SCONTROL $(capability) toggle ;; # right click, mute/unmute 4) amixer -q -D $MIXER sset $SCONTROL $(capability) ${STEP}+ unmute ;; # scroll up, increase 5) amixer -q -D $MIXER sset $SCONTROL $(capability) ${STEP}- unmute ;; # scroll down, decrease