Add kitty theming
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
38
users/common/options/home-manager/hyprland/default.nix
Normal file
38
users/common/options/home-manager/hyprland/default.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.wayland.windowManager.hyprland;
|
||||
in
|
||||
{
|
||||
options.wayland.windowManager.hyprland = with lib; with types; {
|
||||
initExtraConfig = mkOption {
|
||||
type = lines;
|
||||
default = "";
|
||||
description = "Extra configuration lines to add to exec-once";
|
||||
};
|
||||
|
||||
reloadExtraConfig = mkOption {
|
||||
type = lines;
|
||||
default = "";
|
||||
description = "Extra configuration lines to add to exec";
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
wayland.windowManager.hyprland.settings.exec-once = let name = "init-hyprland"; in
|
||||
"${pkgs.writeShellApplication {
|
||||
inherit name;
|
||||
text = ''
|
||||
${cfg.initExtraConfig}
|
||||
'';
|
||||
}}/bin/${name}";
|
||||
|
||||
wayland.windowManager.hyprland.settings.exec = let name = "reload-hyprland"; in
|
||||
"${pkgs.writeShellApplication {
|
||||
inherit name;
|
||||
text = ''
|
||||
${cfg.reloadExtraConfig}
|
||||
'';
|
||||
}}/bin/${name}";
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user