quickly finished bringing up to par with old hyprland branch
This commit is contained in:
parent
d3b738690a
commit
75669fc720
2 changed files with 60 additions and 6 deletions
|
|
@ -1,19 +1,19 @@
|
|||
# This is your home-manager configuration file
|
||||
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
|
||||
# This is the home-manager configuration file
|
||||
# - (replaces ~/.config/nixpkgs/home.nix)
|
||||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
# You can import other home-manager modules here
|
||||
|
||||
imports = [
|
||||
# If you want to use home-manager modules from other flakes (such as nix-colors):
|
||||
# to use home-manager modules from other flakes(nix-colors):
|
||||
# inputs.nix-colors.homeManagerModule
|
||||
|
||||
# You can also split up your configuration and import pieces of it here:
|
||||
# ./nvim.nix
|
||||
./hyprland.nix
|
||||
];
|
||||
|
||||
|
||||
|
|
|
|||
54
home/hyprland.nix
Normal file
54
home/hyprland.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
startupScript = pkgs.pkgs.writeShellScriptBin "start" ''
|
||||
${pkgs.waybar}/bin/waybar &
|
||||
${pkgs.swww}/bin/swww init &
|
||||
|
||||
sleep 1
|
||||
|
||||
${pkgs.swww}/bin/swww img ${../resources/wallpaper.png} &
|
||||
'';
|
||||
in
|
||||
{
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
|
||||
plugins = [
|
||||
inputs.hyprland-plugins.packages."${pkgs.system}".borders-plus-plus
|
||||
# inputs.hyprland-plugins.packages."${pkgs.system}".hyprbars
|
||||
];
|
||||
|
||||
settings = {
|
||||
|
||||
exec-once = ''${startupScript}/bin/start'';
|
||||
|
||||
"plugin:borders-plus-plus" = {
|
||||
add_borders = 1; # 0 - 9
|
||||
|
||||
# you can add up to 9 borders
|
||||
"col.border_1" = "rgb(ffffff)";
|
||||
"col.border_2" = "rgb(2222ff)";
|
||||
|
||||
# -1 means "default" as in the one defined in general:border_size
|
||||
border_size_1 = 10;
|
||||
border_size_2 = -1;
|
||||
|
||||
# makes outer edges match rounding of the parent. Turn on / off to better understand. Default = on.
|
||||
natural_rounding = "yes";
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue