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