Add hyprland theming
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -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 ];
|
||||
|
Reference in New Issue
Block a user