cava: add testbed (#1617)
Link: https://github.com/nix-community/stylix/pull/1617 Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
parent
a5c1532ab8
commit
5259682ce5
2 changed files with 29 additions and 0 deletions
15
modules/cava/testbeds/cava-rainbow.nix
Normal file
15
modules/cava/testbeds/cava-rainbow.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ lib, pkgs, ... }:
|
||||
{
|
||||
stylix.testbed.ui.command = {
|
||||
text = ''
|
||||
${lib.getExe' pkgs.alsa-utils "aplay"} /dev/urandom &
|
||||
${lib.getExe pkgs.cava}
|
||||
'';
|
||||
useTerminal = true;
|
||||
};
|
||||
|
||||
home-manager.sharedModules = lib.singleton {
|
||||
programs.cava.enable = true;
|
||||
stylix.targets.cava.rainbow.enable = true;
|
||||
};
|
||||
}
|
||||
14
modules/cava/testbeds/cava.nix
Normal file
14
modules/cava/testbeds/cava.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ lib, pkgs, ... }:
|
||||
{
|
||||
stylix.testbed.ui.command = {
|
||||
text = ''
|
||||
${lib.getExe' pkgs.alsa-utils "aplay"} /dev/urandom &
|
||||
${lib.getExe pkgs.cava}
|
||||
'';
|
||||
useTerminal = true;
|
||||
};
|
||||
|
||||
home-manager.sharedModules = lib.singleton {
|
||||
programs.cava.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue