mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 18:23:54 -05:00
home/hyprland: inherit window and layer rules from vars.nix
This commit is contained in:
parent
1dffe85a57
commit
0d2a2ebc21
|
@ -7,22 +7,22 @@
|
||||||
cfg = config.ar.home;
|
cfg = config.ar.home;
|
||||||
in {
|
in {
|
||||||
config = lib.mkIf cfg.desktop.hyprland.enable {
|
config = lib.mkIf cfg.desktop.hyprland.enable {
|
||||||
wayland.windowManager = {
|
wayland.windowManager.hyprland = {
|
||||||
hyprland.enable = true;
|
enable = true;
|
||||||
|
|
||||||
hyprland.settings = let
|
settings = let
|
||||||
inherit
|
inherit
|
||||||
(import ./vars.nix {inherit config lib pkgs;})
|
(import ./vars.nix {inherit config lib pkgs;})
|
||||||
brightness
|
brightness
|
||||||
defaultApps
|
defaultApps
|
||||||
defaultWorkspaces
|
defaultWorkspaces
|
||||||
layerRules
|
layerrule
|
||||||
media
|
media
|
||||||
modifier
|
modifier
|
||||||
screenshot
|
screenshot
|
||||||
volume
|
volume
|
||||||
windowManagerBinds
|
windowManagerBinds
|
||||||
windowRules
|
windowrulev2
|
||||||
;
|
;
|
||||||
|
|
||||||
inherit (import ./scripts.nix {inherit config lib pkgs;}) clamshell idleD tablet wallpaperD;
|
inherit (import ./scripts.nix {inherit config lib pkgs;}) clamshell idleD tablet wallpaperD;
|
||||||
|
@ -30,6 +30,8 @@ in {
|
||||||
# Hyprland desktop utilities
|
# Hyprland desktop utilities
|
||||||
hyprnome = lib.getExe pkgs.hyprnome;
|
hyprnome = lib.getExe pkgs.hyprnome;
|
||||||
in {
|
in {
|
||||||
|
inherit windowrulev2;
|
||||||
|
|
||||||
animations = {
|
animations = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
|
bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
|
||||||
|
@ -111,6 +113,7 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
decoration = {
|
decoration = {
|
||||||
|
inherit layerrule;
|
||||||
blur = {
|
blur = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
passes = 1;
|
passes = 1;
|
||||||
|
@ -120,7 +123,6 @@ in {
|
||||||
"col.shadow" = "rgba(${lib.strings.removePrefix "#" cfg.theme.colors.shadow}EE)";
|
"col.shadow" = "rgba(${lib.strings.removePrefix "#" cfg.theme.colors.shadow}EE)";
|
||||||
dim_special = 0.5;
|
dim_special = 0.5;
|
||||||
drop_shadow = true;
|
drop_shadow = true;
|
||||||
layerrule = layerRules;
|
|
||||||
rounding = 10;
|
rounding = 10;
|
||||||
shadow_range = 4;
|
shadow_range = 4;
|
||||||
shadow_render_power = 3;
|
shadow_render_power = 3;
|
||||||
|
@ -196,11 +198,10 @@ in {
|
||||||
++ cfg.desktop.hyprland.laptopMonitors
|
++ cfg.desktop.hyprland.laptopMonitors
|
||||||
++ cfg.desktop.hyprland.monitors;
|
++ cfg.desktop.hyprland.monitors;
|
||||||
|
|
||||||
windowrulev2 = windowRules;
|
|
||||||
xwayland.force_zero_scaling = true;
|
xwayland.force_zero_scaling = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
hyprland.extraConfig = let
|
extraConfig = let
|
||||||
inherit
|
inherit
|
||||||
(import ./vars.nix {inherit config lib pkgs;})
|
(import ./vars.nix {inherit config lib pkgs;})
|
||||||
defaultWorkspaces
|
defaultWorkspaces
|
||||||
|
|
|
@ -27,7 +27,7 @@ in {
|
||||||
|
|
||||||
defaultWorkspaces = [1 2 3 4 5 6 7 8 9];
|
defaultWorkspaces = [1 2 3 4 5 6 7 8 9];
|
||||||
|
|
||||||
layerRules = [
|
layerrule = [
|
||||||
"blur, launcher"
|
"blur, launcher"
|
||||||
"blur, logout_dialog"
|
"blur, logout_dialog"
|
||||||
"blur, notifications"
|
"blur, notifications"
|
||||||
|
@ -74,7 +74,7 @@ in {
|
||||||
l = "r";
|
l = "r";
|
||||||
};
|
};
|
||||||
|
|
||||||
windowRules = [
|
windowrulev2 = [
|
||||||
"center(1),class:(.blueman-manager-wrapped)"
|
"center(1),class:(.blueman-manager-wrapped)"
|
||||||
"center(1),class:(com.github.wwmm.easyeffects)"
|
"center(1),class:(com.github.wwmm.easyeffects)"
|
||||||
"center(1),class:(pavucontrol)"
|
"center(1),class:(pavucontrol)"
|
||||||
|
|
Loading…
Reference in a new issue