Github messages for voidlinux
 help / color / mirror / Atom feed
From: gt7-void <gt7-void@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: separate package for tools in pulseaudio which are useful for pipewire
Date: Fri, 19 Mar 2021 17:57:31 +0100	[thread overview]
Message-ID: <20210319165731.osC2V3F2MWgz_F_wlxlsZwnGXJPdWxml4M3l-nWmuCI@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-29576@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1563 bytes --]

New comment by gt7-void on void-packages repository

https://github.com/void-linux/void-packages/issues/29576#issuecomment-802975955

Comment:
Functionality of `pactl` I miss (not available in `pulsemixer` or `pamixer` afaict):
 - print the default sink: `pactl info  | sed -ne 's/^Default Sink: //p'`
 - print the default source: `pactl info  | sed -ne 's/^Default Source: //p'`
 - set default sink/source: `pactl set-default-{sink,source} ...`
 - list sink-sources: `pactl list short sink-inputs`
 - list source-outputs: `pactl list short source-outputs`
 - move sink-inputs/source-outputs: `pactl move-{sink-input,source-output} ...`


For example: here's a script I use a lot from a hotkey. It cycles the default sink through the available sinks, and also moves all the sink-inputs to the new default sink. Very handy to switch from speakers to headphones, etc.
```
#! /bin/sh

default_sink="$(pactl info | sed -ne 's/^Default Sink: //p')"
sinks="$(pactl list short sinks | awk '{print $2}')"

next="$(printf "%s\n%s\n" "$sinks" "$sinks" | grep -A1 -m1 "$default_sink" | tail -1)"

pactl set-default-sink "$next"

inputs="$(pactl list short sink-inputs | awk '{print $1}')"
for i in $inputs ; do
    pactl move-sink-input $i $next
done
```

In any case, the point is that some of the tools that ship with `pulseaudio` are useful with pipewire, and not obviously replaced (`some scripting` is not good enough, I guess I could replace `pactl` with "some scripting" 
just as much as I could replace this comment with smoke signals).


  parent reply	other threads:[~2021-03-19 16:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-19  0:12 [ISSUE] " gt7-void
2021-03-19 14:51 ` FollieHiyuki
2021-03-19 16:57 ` gt7-void [this message]
2021-03-19 17:14 ` ericonr
2021-03-19 21:29 ` gt7-void
2021-03-29 22:18 ` CameronNemo
2021-04-09 15:55 ` st3r4g
2021-04-26  6:13 ` noarchwastaken
2021-04-26  9:24 ` st3r4g
2021-04-29 15:24 ` [ISSUE] [CLOSED] " ericonr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210319165731.osC2V3F2MWgz_F_wlxlsZwnGXJPdWxml4M3l-nWmuCI@z \
    --to=gt7-void@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).