Launch pulsemixer in a terminal

This commit is contained in:
Cameron Reed 2024-01-26 23:25:14 -07:00
parent b7ba651a8c
commit 0e7d67ed45
3 changed files with 19 additions and 2 deletions

View File

@ -0,0 +1,15 @@
{ lib, pkgs, ... }:
with lib; {
options = {
defaultTerminal = mkOption {
default = "kitty";
type = types.str;
};
terminal = mkOption {
default = "${pkgs.kitty}/bin/kitty";
type = types.path;
};
};
}

View File

@ -1,4 +1,4 @@
{ pkgs, lib, osConfig, ... }:
{ pkgs, lib, config, osConfig, ... }:
{
config = lib.mkIf (builtins.elem "hyprland" osConfig.desktop || builtins.elem "sway" osConfig.desktop)
@ -129,7 +129,7 @@
car = "";
default = ["" "" ""];
};
on-click = "pulsemixer";
on-click = "${config.terminal} pulsemixer";
};
};

View File

@ -2,6 +2,8 @@
{
imports = [
./home-manager/options.nix
./home-manager/sway.nix
./home-manager/hyprland.nix