hyprland: add hyprchroma

This commit is contained in:
Charlie Root 2024-10-20 13:26:46 +02:00
commit 72cb0f8c2b
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw
5 changed files with 51 additions and 5 deletions

45
flake.lock generated
View file

@ -419,6 +419,27 @@
"type": "github" "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": { "hyprcursor": {
"inputs": { "inputs": {
"hyprlang": [ "hyprlang": [
@ -871,6 +892,21 @@
} }
}, },
"nix-filter": { "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": { "locked": {
"lastModified": 1693833173, "lastModified": 1693833173,
"narHash": "sha256-hlMABKrGbEiJD5dwUSfnw1CQ3bG7KKwDV+Nx3bEZd7U=", "narHash": "sha256-hlMABKrGbEiJD5dwUSfnw1CQ3bG7KKwDV+Nx3bEZd7U=",
@ -1051,11 +1087,11 @@
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1728492678, "lastModified": 1729256560,
"narHash": "sha256-9UTxR8eukdg+XZeHgxW5hQA9fIKHsKCdOIUycTryeVw=", "narHash": "sha256-/uilDXvCIEs3C9l73JTACm4quuHUsIHcns1c+cHUJwA=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5633bcff0c6162b9e4b5f1264264611e950c8ec7", "rev": "4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -2800,6 +2836,7 @@
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
"helix": "helix", "helix": "helix",
"home-manager": "home-manager", "home-manager": "home-manager",
"hyprchroma": "hyprchroma",
"hyprland": "hyprland", "hyprland": "hyprland",
"hyprland-plugins": "hyprland-plugins", "hyprland-plugins": "hyprland-plugins",
"hyprsplit": "hyprsplit", "hyprsplit": "hyprsplit",
@ -2943,7 +2980,7 @@
"hyprland": [ "hyprland": [
"hyprland" "hyprland"
], ],
"nix-filter": "nix-filter" "nix-filter": "nix-filter_2"
}, },
"locked": { "locked": {
"lastModified": 1728502823, "lastModified": 1728502823,

View file

@ -43,6 +43,11 @@
inputs.hyprland.follows = "hyprland"; inputs.hyprland.follows = "hyprland";
}; };
hyprchroma = {
url = "github:alexhulbert/hyprchroma";
inputs.hyprland.follows = "hyprland";
};
hyprsplit = { hyprsplit = {
url = "github:shezdy/hyprsplit"; url = "github:shezdy/hyprsplit";
inputs.hyprland.follows = "hyprland"; inputs.hyprland.follows = "hyprland";

View file

@ -64,6 +64,8 @@ in {
"size 70% 70%, class:^(code), title: ^(Open*)" "size 70% 70%, class:^(code), title: ^(Open*)"
"center, class: ^(code), title: ^(Open*)" "center, class: ^(code), title: ^(Open*)"
"float, class:^(org.keepassxc.KeePassXC)$" "float, class:^(org.keepassxc.KeePassXC)$"
"plugin:chromakey,fullscreen:0"
# "chromakey_background = rgb(07121b)"
]; ];
}; };
}; };

View file

@ -8,6 +8,7 @@
cfg = config.modules.usrEnv.desktops.hyprland; cfg = config.modules.usrEnv.desktops.hyprland;
inherit (config.meta.mainUser) username; inherit (config.meta.mainUser) username;
inherit (inputs'.hyprsplit.packages) hyprsplit; inherit (inputs'.hyprsplit.packages) hyprsplit;
hyprchroma = inputs'.hyprchroma.packages.default;
inherit (lib) mkIf mkDefault; inherit (lib) mkIf mkDefault;
in { in {
imports = [ imports = [
@ -48,6 +49,7 @@ in {
# Split-monitor-workspaces provides awesome-like workspace behaviour # Split-monitor-workspaces provides awesome-like workspace behaviour
plugins = [ plugins = [
hyprsplit hyprsplit
hyprchroma
]; ];
# Xwayland for X applications # Xwayland for X applications

View file

@ -34,7 +34,7 @@ in {
input = { input = {
kb_layout = "de,ru, us"; kb_layout = "de,ru, us";
kb_variant = ",phonetic_winkeys,workman"; kb_variant = ",phonetic_winkeys,workman";
kb_options = "grp:rctrl_rshift_toggle"; kb_options = "grp:rctrl_rshift_toggle caps:escape";
follow_mouse = true; follow_mouse = true;