From 72cb0f8c2b806394b0ca822e18f0d2bf0d41c483 Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Sun, 20 Oct 2024 13:26:46 +0200 Subject: [PATCH] hyprland: add hyprchroma --- flake.lock | 45 ++++++++++++++++++-- flake.nix | 5 +++ modules/wms/wayland/hyprland/decorations.nix | 2 + modules/wms/wayland/hyprland/module.nix | 2 + modules/wms/wayland/hyprland/settings.nix | 2 +- 5 files changed, 51 insertions(+), 5 deletions(-) diff --git a/flake.lock b/flake.lock index 6e0d0f5..52c88b6 100644 --- a/flake.lock +++ b/flake.lock @@ -419,6 +419,27 @@ "type": "github" } }, + "hyprchroma": { + "inputs": { + "hyprland": [ + "hyprland" + ], + "nix-filter": "nix-filter" + }, + "locked": { + "lastModified": 1729227619, + "narHash": "sha256-6l7rNESQY5LeS6BSMBTk7quSqDkgPSf7yFD4yiST3cw=", + "owner": "alexhulbert", + "repo": "hyprchroma", + "rev": "a741598975d9a10bb1cbed44470ca8d68dfd9277", + "type": "github" + }, + "original": { + "owner": "alexhulbert", + "repo": "hyprchroma", + "type": "github" + } + }, "hyprcursor": { "inputs": { "hyprlang": [ @@ -871,6 +892,21 @@ } }, "nix-filter": { + "locked": { + "lastModified": 1710156097, + "narHash": "sha256-1Wvk8UP7PXdf8bCCaEoMnOT1qe5/Duqgj+rL8sRQsSM=", + "owner": "numtide", + "repo": "nix-filter", + "rev": "3342559a24e85fc164b295c3444e8a139924675b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "nix-filter", + "type": "github" + } + }, + "nix-filter_2": { "locked": { "lastModified": 1693833173, "narHash": "sha256-hlMABKrGbEiJD5dwUSfnw1CQ3bG7KKwDV+Nx3bEZd7U=", @@ -1051,11 +1087,11 @@ }, "nixpkgs_4": { "locked": { - "lastModified": 1728492678, - "narHash": "sha256-9UTxR8eukdg+XZeHgxW5hQA9fIKHsKCdOIUycTryeVw=", + "lastModified": 1729256560, + "narHash": "sha256-/uilDXvCIEs3C9l73JTACm4quuHUsIHcns1c+cHUJwA=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "5633bcff0c6162b9e4b5f1264264611e950c8ec7", + "rev": "4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0", "type": "github" }, "original": { @@ -2800,6 +2836,7 @@ "flake-parts": "flake-parts", "helix": "helix", "home-manager": "home-manager", + "hyprchroma": "hyprchroma", "hyprland": "hyprland", "hyprland-plugins": "hyprland-plugins", "hyprsplit": "hyprsplit", @@ -2943,7 +2980,7 @@ "hyprland": [ "hyprland" ], - "nix-filter": "nix-filter" + "nix-filter": "nix-filter_2" }, "locked": { "lastModified": 1728502823, diff --git a/flake.nix b/flake.nix index 6abd150..8a125e6 100644 --- a/flake.nix +++ b/flake.nix @@ -43,6 +43,11 @@ inputs.hyprland.follows = "hyprland"; }; + hyprchroma = { + url = "github:alexhulbert/hyprchroma"; + inputs.hyprland.follows = "hyprland"; + }; + hyprsplit = { url = "github:shezdy/hyprsplit"; inputs.hyprland.follows = "hyprland"; diff --git a/modules/wms/wayland/hyprland/decorations.nix b/modules/wms/wayland/hyprland/decorations.nix index 45f3887..1497c54 100644 --- a/modules/wms/wayland/hyprland/decorations.nix +++ b/modules/wms/wayland/hyprland/decorations.nix @@ -64,6 +64,8 @@ in { "size 70% 70%, class:^(code), title: ^(Open*)" "center, class: ^(code), title: ^(Open*)" "float, class:^(org.keepassxc.KeePassXC)$" + "plugin:chromakey,fullscreen:0" + # "chromakey_background = rgb(07121b)" ]; }; }; diff --git a/modules/wms/wayland/hyprland/module.nix b/modules/wms/wayland/hyprland/module.nix index c4d0589..db937f5 100644 --- a/modules/wms/wayland/hyprland/module.nix +++ b/modules/wms/wayland/hyprland/module.nix @@ -8,6 +8,7 @@ cfg = config.modules.usrEnv.desktops.hyprland; inherit (config.meta.mainUser) username; inherit (inputs'.hyprsplit.packages) hyprsplit; + hyprchroma = inputs'.hyprchroma.packages.default; inherit (lib) mkIf mkDefault; in { imports = [ @@ -48,6 +49,7 @@ in { # Split-monitor-workspaces provides awesome-like workspace behaviour plugins = [ hyprsplit + hyprchroma ]; # Xwayland for X applications diff --git a/modules/wms/wayland/hyprland/settings.nix b/modules/wms/wayland/hyprland/settings.nix index a17eaa2..3a3e3a9 100644 --- a/modules/wms/wayland/hyprland/settings.nix +++ b/modules/wms/wayland/hyprland/settings.nix @@ -34,7 +34,7 @@ in { input = { kb_layout = "de,ru, us"; kb_variant = ",phonetic_winkeys,workman"; - kb_options = "grp:rctrl_rshift_toggle"; + kb_options = "grp:rctrl_rshift_toggle caps:escape"; follow_mouse = true;