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

View File

@ -326,7 +326,15 @@ globalkeys = gears.table.join(
{description = "lua execute prompt", group = "awesome"}), {description = "lua execute prompt", group = "awesome"}),
-- Menubar -- Menubar
awful.key({ modkey }, "p", function() menubar.show() end, 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( clientkeys = gears.table.join(