Launch pulsemixer in a terminal
This commit is contained in:
parent
b7ba651a8c
commit
0e7d67ed45
15
common/users/cameron/home-manager/options.nix
Normal file
15
common/users/cameron/home-manager/options.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{ pkgs, lib, osConfig, ... }:
|
{ pkgs, lib, config, osConfig, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
config = lib.mkIf (builtins.elem "hyprland" osConfig.desktop || builtins.elem "sway" osConfig.desktop)
|
config = lib.mkIf (builtins.elem "hyprland" osConfig.desktop || builtins.elem "sway" osConfig.desktop)
|
||||||
@ -129,7 +129,7 @@
|
|||||||
car = "";
|
car = "";
|
||||||
default = ["" "" ""];
|
default = ["" "" ""];
|
||||||
};
|
};
|
||||||
on-click = "pulsemixer";
|
on-click = "${config.terminal} pulsemixer";
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./home-manager/options.nix
|
||||||
|
|
||||||
./home-manager/sway.nix
|
./home-manager/sway.nix
|
||||||
./home-manager/hyprland.nix
|
./home-manager/hyprland.nix
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user