fix audio control w pipewire

This commit is contained in:
Noah Masur 2022-01-18 21:09:12 -05:00
parent 4d5791c213
commit bbd39ca5e0
2 changed files with 22 additions and 23 deletions

View File

@ -76,24 +76,19 @@
# Enable sound.
sound.enable = true;
hardware.pulseaudio.enable = true;
/* services.pipewire = { */
/* enable = true; */
hardware.pulseaudio.enable = false;
services.pipewire = {
enable = true;
/* # Sound card drivers */
/* alsa = { */
/* enable = true; */
/* support32Bit = true; */
/* }; */
# Sound card drivers
alsa = {
enable = true;
support32Bit = true;
};
/* # PulseAudio emulation */
/* pulse.enable = true; */
/* }; */
/* systemd.services.pavucontrol = { */
/* wantedBy = [ "multi-user.target" ]; */
/* script = "${pkgs.pavucontrol}/bin/pavucontrol"; */
/* }; */
# PulseAudio emulation
pulse.enable = true;
};
services.xserver.displayManager.setupCommands = ''
${pkgs.xorg.xrandr}/bin/xrandr --output DisplayPort-0 \
@ -171,17 +166,13 @@
curl
home-manager
just
xclip
pamixer
# Mouse config
libratbag
piper
# Audio
alsa-utils
# Pulse Audio control utility
#pavucontrol
steam
];

View File

@ -326,7 +326,15 @@ globalkeys = gears.table.join(
{description = "lua execute prompt", group = "awesome"}),
-- Menubar
awful.key({ modkey }, "p", function() menubar.show() end,
{description = "show the menubar", group = "launcher"})
{description = "show the menubar", group = "launcher"}),
-- Volume
awful.key({}, "XF86AudioLowerVolume", function()
awful.spawn "pamixer -d 2"
end),
awful.key({}, "XF86AudioRaiseVolume", function()
awful.spawn "pamixer -i 2"
end)
)
clientkeys = gears.table.join(