pipewire!
This commit is contained in:
parent
7ca435f80b
commit
d23c1c8ca8
|
@ -1,3 +1,3 @@
|
||||||
{ pkgs, inputs, ... }: {
|
{ pkgs, inputs, ... }: {
|
||||||
home.packages = with pkgs; [ deploy-rs ];
|
home.packages = with pkgs; [ inputs.deploy-rs.defaultPackage.${pkgs.system} ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,6 +37,8 @@
|
||||||
terminal = "${pkgs.kitty}/bin/kitty";
|
terminal = "${pkgs.kitty}/bin/kitty";
|
||||||
menu = "${pkgs.wofi}/bin/wofi -idbt ${pkgs.kitty}/bin/kitty -p '' -W 25%";
|
menu = "${pkgs.wofi}/bin/wofi -idbt ${pkgs.kitty}/bin/kitty -p '' -W 25%";
|
||||||
cfg = config.wayland.windowManager.sway.config;
|
cfg = config.wayland.windowManager.sway.config;
|
||||||
|
pactl = "${pkgs.pulseaudio}/bin/pactl";
|
||||||
|
pacmd = "${pkgs.pulseaudio}/bin/pacmd";
|
||||||
in {
|
in {
|
||||||
bars = [
|
bars = [
|
||||||
{
|
{
|
||||||
|
@ -115,13 +117,13 @@
|
||||||
"${cfg.modifier}+space" = "focus mode_toggle";
|
"${cfg.modifier}+space" = "focus mode_toggle";
|
||||||
|
|
||||||
"XF86AudioRaiseVolume" =
|
"XF86AudioRaiseVolume" =
|
||||||
"exec pactl set-sink-volume $(pacmd list-sinks |awk '/* index:/{print $3}') +5%";
|
"exec ${pactl} set-sink-volume @DEFAULT_SINK@ +5%";
|
||||||
"XF86AudioLowerVolume" =
|
"XF86AudioLowerVolume" =
|
||||||
"exec pactl set-sink-volume $(pacmd list-sinks |awk '/* index:/{print $3}') -5%";
|
"exec ${pactl} set-sink-volume @DEFAULT_SINK@ -5%";
|
||||||
"XF86AudioMute" =
|
"XF86AudioMute" =
|
||||||
"exec pactl set-sink-mute $(pacmd list-sinks |awk '/* index:/{print $3}') toggle";
|
"exec ${pactl}pactl set-sink-mute @DEFAULT_SINK@ toggle";
|
||||||
"XF86AudioMicMute" =
|
"XF86AudioMicMute" =
|
||||||
"exec pactl set-source-mute $(pacmd list-sources |awk '/* index:/{print $3}') toggle";
|
"exec ${pactl} set-source-mute $(pacmd list-sources |awk '/* index:/{print $3}') toggle";
|
||||||
"XF86MonBrightnessDown" = "exec sudo xbacklight -time 1 -dec +5";
|
"XF86MonBrightnessDown" = "exec sudo xbacklight -time 1 -dec +5";
|
||||||
"XF86MonBrightnessUp" = "exec sudo xbacklight -time 1 -inc +5";
|
"XF86MonBrightnessUp" = "exec sudo xbacklight -time 1 -inc +5";
|
||||||
"Print" =
|
"Print" =
|
||||||
|
|
|
@ -17,13 +17,12 @@
|
||||||
profiles.laptop
|
profiles.laptop
|
||||||
|
|
||||||
# Bluetooth
|
# Bluetooth
|
||||||
# profiles.connectivity.bluetooth
|
profiles.connectivity.bluetooth
|
||||||
# profiles.sound.pulseaudio.pulse-bluetooth
|
|
||||||
|
|
||||||
profiles.connectivity.network_manager
|
profiles.connectivity.network_manager
|
||||||
profiles.connectivity.ios
|
profiles.connectivity.ios
|
||||||
|
|
||||||
profiles.sound.pulseaudio.pulse
|
profiles.sound.pipewire
|
||||||
|
|
||||||
profiles.gui
|
profiles.gui
|
||||||
profiles.gui.environments.sway
|
profiles.gui.environments.sway
|
||||||
|
@ -84,6 +83,7 @@
|
||||||
|
|
||||||
services.fstrim.enable = true;
|
services.fstrim.enable = true;
|
||||||
|
|
||||||
|
|
||||||
system.stateVersion = "21.11";
|
system.stateVersion = "21.11";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
33
profiles/sound/pipewire/default.nix
Normal file
33
profiles/sound/pipewire/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{ ... }: {
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
services.pipewire = {
|
||||||
|
enable = true;
|
||||||
|
alsa.enable = true;
|
||||||
|
alsa.support32Bit = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
jack.enable = true;
|
||||||
|
media-session.enable = true;
|
||||||
|
media-session.config.bluez-monitor.rules = [
|
||||||
|
{
|
||||||
|
matches = [{ "device.name" = "~bluez_card.*"; }];
|
||||||
|
actions = {
|
||||||
|
"update-props" = {
|
||||||
|
"bluez5.reconnect-profiles" = [ "hfp_hf" "hsp_hs" "a2dp_sink" ];
|
||||||
|
"bluez5.sbc-xq-support" = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
matches = [
|
||||||
|
# Matches all sources
|
||||||
|
{
|
||||||
|
"node.name" = "~bluez_input.*";
|
||||||
|
}
|
||||||
|
# Matches all outputs
|
||||||
|
{ "node.name" = "~bluez_output.*"; }
|
||||||
|
];
|
||||||
|
actions = { "node.pause-on-idle" = false; };
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
3
profiles/sound/pulseaudio/pulse-48000.nix
Normal file
3
profiles/sound/pulseaudio/pulse-48000.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{ ... }: {
|
||||||
|
hardware.pulseaudio.daemon.config = { default-sample-rate = "48000"; };
|
||||||
|
}
|
Loading…
Reference in a new issue