Add hyprland theming

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-06-26 13:31:12 +03:00
parent d9a3936d51
commit c1ad1ee640
8 changed files with 88 additions and 45 deletions

View File

@@ -1,11 +1,15 @@
{ user ? throw "user argument is required" }: { lib, pkgs, ... }:
{ user ? throw "user argument is required" }: { config, lib, pkgs, ... }:
let
hmConfig = config.home-manager.users."${user.name}";
in
{
programs.hyprland.enable = true;
home-manager.users."${user.name}" = {
wayland.windowManager.hyprland = {
enable = true;
settings = {
"$mod" = "SUPER";
"$term" = lib.meta.getExe pkgs.kitty;
@@ -93,8 +97,20 @@
misc = {
"disable_hyprland_logo" = true;
"disable_splash_rendering" = true;
"new_window_takes_over_fullscreen" = 2;
};
decoration.blur = {
passes = 2;
popups = true;
};
input.touchpad.natural_scroll = true;
};
extraConfig = ''
source = ./theme.conf
'';
};
programs.zsh.loginExtra = lib.mkAfter ''
@@ -103,6 +119,13 @@
fi
'';
programs.matugen.settings.templates = {
hyprland = {
input_path = ./theme.conf;
output_path = "${hmConfig.xdg.configHome}/hypr/theme.conf";
};
};
theme.extraConfig = "${lib.meta.getExe (pkgs.writeShellApplication {
name = "reload-hyprland";
runtimeInputs = with pkgs; [ hyprland ];