test audio control
This commit is contained in:
parent
d78df2e465
commit
d84b1f16f2
1 changed files with 38 additions and 2 deletions
|
|
@ -11,6 +11,8 @@
|
|||
];
|
||||
|
||||
# Bootloader.
|
||||
#boot.loader.systemd-boot.enable = true;
|
||||
#boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.loader.grub.enable = true;
|
||||
boot.loader.grub.device = "/dev/vda";
|
||||
boot.loader.grub.useOSProber = true;
|
||||
|
|
@ -81,9 +83,15 @@
|
|||
wlr-randr
|
||||
kmsxx
|
||||
libinput
|
||||
pciutils
|
||||
pulseaudio
|
||||
pwvucontrol
|
||||
(pkgs.wrapFirefox (pkgs.firefox-unwrapped.override { pipewireSupport = true; }) { })
|
||||
];
|
||||
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
package = (pkgs.wrapFirefox (pkgs.firefox-unwrapped.override { pipewireSupport = true; }) { });
|
||||
};
|
||||
|
||||
systemd.services.cage-tty1 = {
|
||||
|
|
@ -102,11 +110,39 @@
|
|||
enable = true;
|
||||
user = "kemp";
|
||||
program = "${pkgs.writeScriptBin "start-cage-app" ''
|
||||
exec ${pkgs.firefox}/bin/firefox
|
||||
#!/usr/bin/env bash
|
||||
exec pwvucontrol
|
||||
exec firefox
|
||||
''}/bin/start-cage-app";
|
||||
};
|
||||
services.getty.loginProgram = "${pkgs.coreutils}/bin/true";
|
||||
|
||||
services.actkbd.enable = true;
|
||||
services.actkbd.bindings = [
|
||||
# Mute
|
||||
{ keys = [ 113 ]; events = [ "key" ];
|
||||
command = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
|
||||
}
|
||||
# Volume down
|
||||
{ keys = [ 114 ]; events = [ "key" "rep" ];
|
||||
command = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-";
|
||||
}
|
||||
# Volume up
|
||||
{ keys = [ 115 ]; events = [ "key" "rep" ];
|
||||
command = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+";
|
||||
}
|
||||
];
|
||||
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true; # if not already enabled
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
# If you want to use JACK applications, uncomment the following
|
||||
jack.enable = true;
|
||||
};
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue