pipewire by default in ezpc
This commit is contained in:
parent
63d2744755
commit
9fe2ae150c
3 changed files with 17 additions and 30 deletions
|
@ -238,20 +238,8 @@ let
|
|||
(lib.lists.range 11 (10 * (builtins.length alphabet) + 10))
|
||||
) // (
|
||||
let
|
||||
volumeUp = (
|
||||
if cfg.haddr != null then
|
||||
"exec ${pkgs.qt5.qttools.bin}/bin/qdbus --system org.bluez ${cfg.haddr} org.bluez.MediaControl1.VolumeUp || "
|
||||
else
|
||||
"exec "
|
||||
)
|
||||
+ "${pkgs.pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ +5%";
|
||||
volumeDown = (
|
||||
if cfg.haddr != null then
|
||||
"exec ${pkgs.qt5.qttools.bin}/bin/qdbus --system org.bluez ${cfg.haddr} org.bluez.MediaControl1.VolumeDown || "
|
||||
else
|
||||
"exec "
|
||||
)
|
||||
+ "${pkgs.pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ -5%";
|
||||
volumeUp = "exec ${pkgs.pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ +5%";
|
||||
volumeDown = "exec ${pkgs.pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ -5%";
|
||||
in
|
||||
{
|
||||
"Print" = "exec ${scrsaveclip}";
|
||||
|
@ -978,12 +966,6 @@ in
|
|||
description = "If this PC has bluetooth support";
|
||||
};
|
||||
|
||||
haddr = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = "address for ur bluetooth headphones";
|
||||
};
|
||||
|
||||
battery = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue