From 04fa8b33cb2fb47f808c85a4acaf70c4eb3f2624 Mon Sep 17 00:00:00 2001 From: Konstantin Koslowski Date: Wed, 23 Dec 2020 00:30:30 +0100 Subject: [PATCH] sway: really fix dynamic pa sink --- bin/volume | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/volume b/bin/volume index c9af288..9656fc0 100755 --- a/bin/volume +++ b/bin/volume @@ -1,5 +1,5 @@ #!/bin/bash -sink=$(pactl list sinks | grep -B 1 "State: RUNNING" | grep -oE '[0-9]*') +sink=$(pacmd list-sinks | grep "* index" | grep -oE '[0-9]*') cmd="" if [ -z "$sink" ]; then