unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Sergey Trofimov <sarg@sarg.org.ru>
To: chris <chris@bumblehead.com>
Cc: 68512@debbugs.gnu.org
Subject: bug#68512: Qutebrowser 3, no sound from pipewire-only system
Date: Fri, 26 Jan 2024 06:56:01 +0100	[thread overview]
Message-ID: <87jznwvd4q.fsf@sarg.org.ru> (raw)
In-Reply-To: <ZbLuM54i2dEdgZTN@guix-xps>


chris <chris@bumblehead.com> writes:

> Sergey,
>
> Yesterday after reporting back here, I found that I was able to 
> change the commands used by sway from this
> ```
> exec_always killall -wqr "(pipewire|wireplumber)" \
>   || sleep 1 && ((pipewire &); sleep 2 && (wireplumber &))
> ```
>
> To this
> ```
> exec sleep 2 && pipewire
> exec sleep 4 && wireplumber
> ```

Ugh, why don't you use home-pipewire-service-type?

>
> In order to script-generate the asoundrc file, I wish to use 
> pipewire's store
> directory path inside a scheme function. WOuld you teach me how 
> to do this? eg,
> `$(guix build pipewire) #
> /gnu/store/8572wxb5138hanhvn1lbfdm1kicxsd2k-pipewire-1.0.0`
>
> No success trying various things from this thread 
> https://www.mail-archive.com/help-guix@gnu.org/msg11871.html
>

Packages are file-like, i.e. replaced with their location when 
used in g-exp.
Here is an example how to define the configuration, I've adapted 
it from gnu/home/services/home.scm

--8<---------------cut here---------------start------------->8---
(simple-service 'pipewire-configs 
home-xdg-configuration-files-service-type
  `(("alsa/asoundrc")
    ,(mixed-text-file
        "asoundrc"
        "<" pipewire "/share/alsa/alsa.conf.d/50-pipewire.conf>\n"
        "<" pipewire 
        "/share/alsa/alsa.conf.d/99-pipewire-default.conf>\n"
        "pcm_type.pipewire {\n"
        "  lib \"" pipewire 
        "/lib/alsa-lib/libasound_module_pcm_pipewire.so\"\n"
        "}\n"
        "ctl_type.pipewire {\n"
        "  lib \"" pipewire 
        "/lib/alsa-lib/libasound_module_ctl_pipewire.so\"\n"
        "}\n")))
--8<---------------cut here---------------end--------------->8---




  reply	other threads:[~2024-01-26  6:11 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-16 16:43 bug#68512: Qutebrowser 3, no sound from pipewire-only system chris
2024-01-16 17:30 ` chris
2024-01-16 17:39 ` chris
2024-01-16 18:12   ` chris
2024-01-16 19:25 ` Sergey Trofimov
2024-01-16 20:49   ` chris
2024-01-17  6:58     ` Sergey Trofimov
2024-01-17  9:49       ` chris
2024-01-17  9:56         ` chris
2024-01-25  9:09         ` chris
2024-01-25 18:37           ` Sergey Trofimov
2024-01-25 23:26             ` chris
2024-01-26  5:56               ` Sergey Trofimov [this message]
2024-01-26  8:18                 ` chris
2024-01-26 12:46                   ` Sergey Trofimov
2024-01-26 23:35                     ` chris
2024-01-26  0:00             ` chris
2024-01-26  6:10               ` Sergey Trofimov
2024-01-26  8:19                 ` chris
2024-01-26  9:45                 ` Clément Lassieur
2024-01-26 23:32                   ` chris
2024-01-26  9:10 ` bug#68512: done chris

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=87jznwvd4q.fsf@sarg.org.ru \
    --to=sarg@sarg.org.ru \
    --cc=68512@debbugs.gnu.org \
    --cc=chris@bumblehead.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).