Add hyprbars to hyprland
This commit is contained in:
parent
971125f434
commit
4756b614db
39
flake.lock
generated
39
flake.lock
generated
@ -565,11 +565,11 @@
|
|||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1718273282,
|
"lastModified": 1718468441,
|
||||||
"narHash": "sha256-Drdpjgw9ZHbS2SC5V41PmuFqVpxXqKJyi8Wl7gUneYI=",
|
"narHash": "sha256-yLoQC4IaaM3xijxoGMkyPgwKKr3xYLdToA7j3zNRn7A=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "e6d10539af1fdca33b10bc3c1dfac16f1cdfe1c8",
|
"rev": "91fe58f8f278d126852877eadc87c50ca7b9b78d",
|
||||||
"revCount": 4819,
|
"revCount": 4836,
|
||||||
"submodules": true,
|
"submodules": true,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/hyprwm/Hyprland"
|
"url": "https://github.com/hyprwm/Hyprland"
|
||||||
@ -580,6 +580,36 @@
|
|||||||
"url": "https://github.com/hyprwm/Hyprland"
|
"url": "https://github.com/hyprwm/Hyprland"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"hyprland-plugins": {
|
||||||
|
"inputs": {
|
||||||
|
"hyprland": [
|
||||||
|
"hyprland"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"hyprland-plugins",
|
||||||
|
"hyprland",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"systems": [
|
||||||
|
"hyprland-plugins",
|
||||||
|
"hyprland",
|
||||||
|
"systems"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1718111105,
|
||||||
|
"narHash": "sha256-sLGohaz+8pCce4+wehXSlwOu7c7+We4Zc1ToXGCJYfs=",
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprland-plugins",
|
||||||
|
"rev": "151102b7d7c4f61ff42f275e72008d28318dac96",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprland-plugins",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"hyprland-protocols": {
|
"hyprland-protocols": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@ -1098,6 +1128,7 @@
|
|||||||
"flux": "flux",
|
"flux": "flux",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
|
"hyprland-plugins": "hyprland-plugins",
|
||||||
"impermanence": "impermanence",
|
"impermanence": "impermanence",
|
||||||
"microvm": "microvm",
|
"microvm": "microvm",
|
||||||
"neovim": "neovim",
|
"neovim": "neovim",
|
||||||
|
@ -27,6 +27,10 @@
|
|||||||
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
|
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||||
|
hyprland-plugins = {
|
||||||
|
url = "github:hyprwm/hyprland-plugins";
|
||||||
|
inputs.hyprland.follows = "hyprland";
|
||||||
|
};
|
||||||
|
|
||||||
#### Iogamaster inputs
|
#### Iogamaster inputs
|
||||||
nixos-generators.url = "github:nix-community/nixos-generators";
|
nixos-generators.url = "github:nix-community/nixos-generators";
|
||||||
|
@ -87,6 +87,8 @@ in
|
|||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
# Whether to enable Hyprland wayland compositor
|
# Whether to enable Hyprland wayland compositor
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = inputs.hyprland.packages."${pkgs.system}".hyprland;
|
||||||
|
|
||||||
# The hyprland package to use (simplifies use of plugins)
|
# The hyprland package to use (simplifies use of plugins)
|
||||||
# package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
# package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
||||||
# Whether to enable XWayland
|
# Whether to enable XWayland
|
||||||
@ -95,6 +97,10 @@ in
|
|||||||
# Optional
|
# Optional
|
||||||
# Whether to enable hyprland-session.target on hyprland startup
|
# Whether to enable hyprland-session.target on hyprland startup
|
||||||
systemd.enable = true;
|
systemd.enable = true;
|
||||||
|
# Make PATH available to systemd services
|
||||||
|
systemd.variables = [ "--all" ];
|
||||||
|
|
||||||
|
plugins = [ inputs.hyprland-plugins.packages.${pkgs.system}.hyprbars ];
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
"$mod" = "SUPER";
|
"$mod" = "SUPER";
|
||||||
@ -283,6 +289,17 @@ in
|
|||||||
"$mod CTRL, 9, movetoworkspacesilent, 9"
|
"$mod CTRL, 9, movetoworkspacesilent, 9"
|
||||||
"$mod CTRL, 0, movetoworkspacesilent, 10"
|
"$mod CTRL, 0, movetoworkspacesilent, 10"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
plugin = {
|
||||||
|
hyprbars = {
|
||||||
|
bar_text_size = 10;
|
||||||
|
bar_height = 16;
|
||||||
|
bar_text_font = "Ubuntu Nerd Font";
|
||||||
|
bar_precedence_over_border = false;
|
||||||
|
|
||||||
|
hyprbars-button = [ "rgb(${palette.base03}), 14, , hyprctl dispatch killactive" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user