You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But if my TV isn't plugged in, meaning I only have one sink left, which is automatically removed with the sd "$(pactl get-default-sink)\n" '' tofi is left without anything and just opens a black box with nothing selectable. I'd like it not to do this.
The text was updated successfully, but these errors were encountered:
I currently use the following command to switch my audio sinks:
wpctl set-default $(pw-cli i $(pactl list short sinks | awk '{print $2}' | sd 'easyeffects_sink\n' '' | sd "$(pactl get-default-sink)\n" '' | tofi --prompt-text " " --height 40% --width 40% --auto-accept-single true ) | rg -oP 'id: \K\w+') && notify-send --urgency=low --icon=/usr/share/icons/Flat-Remix-Red-Dark/panel/audio-volume-high-symbolic.svg "$(pactl list sinks | rg -A 1 "Name: $(pactl get-default-sink)" | rg Description: | sd ' Description: ' '')" -h string:x-canonical-private-synchronous:sink-state && pw-play --volume=0.2 /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga &!
But if my TV isn't plugged in, meaning I only have one sink left, which is automatically removed with the sd "$(pactl get-default-sink)\n" '' tofi is left without anything and just opens a black box with nothing selectable. I'd like it not to do this.
The text was updated successfully, but these errors were encountered: