mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-25 07:44:53 +00:00
fix audio control w pipewire
This commit is contained in:
parent
4d5791c213
commit
bbd39ca5e0
@ -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
|
||||
];
|
||||
|
||||
|
10
nixos/rc.lua
10
nixos/rc.lua
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user