feat: fixed(?) binds and window-rules modules
This commit is contained in:
parent
e540b21ed9
commit
e7320119cd
2 changed files with 104 additions and 103 deletions
|
|
@ -1,13 +1,17 @@
|
|||
{ self, inputs, ... }:
|
||||
|
||||
{
|
||||
self,
|
||||
inputs,
|
||||
|
||||
# niri keybinds module declaration
|
||||
flake.nixosModules.niri-binds =
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
}:
|
||||
|
||||
let
|
||||
let
|
||||
|
||||
widthDivisions = [
|
||||
1.0
|
||||
|
|
@ -46,17 +50,8 @@ let
|
|||
windowHeights = getProportions heightDivisions;
|
||||
windowHeightsFiltered = builtins.filter (x: builtins.lessThan x.proportion 1.0) windowHeights;
|
||||
|
||||
in
|
||||
in
|
||||
|
||||
{
|
||||
|
||||
flake.nixosModules.niri-binds =
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
||||
# for home manager functionality
|
||||
|
|
|
|||
|
|
@ -1,6 +1,12 @@
|
|||
{ self, inputs, ... }:
|
||||
|
||||
let
|
||||
{
|
||||
|
||||
# niri window rules module declaration
|
||||
flake.nixosModules.niri-window-rules =
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
|
||||
windowRules = [
|
||||
{
|
||||
|
|
@ -51,20 +57,21 @@ let
|
|||
}
|
||||
];
|
||||
|
||||
in
|
||||
in
|
||||
|
||||
{
|
||||
flake.nixosModules.niri-window-rules = { pkgs, ... }: {
|
||||
{
|
||||
|
||||
# for home manager functionality
|
||||
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
||||
|
||||
home-manager.users.serenity = {
|
||||
programs.niri.settings = {
|
||||
# using the home manager module to assign binds
|
||||
home-manager.users.serenity.programs.niri.settings = {
|
||||
# grabs assigned rules from let bindings above
|
||||
window-rules = windowRules;
|
||||
layout = {
|
||||
background-color = "transparent";
|
||||
};
|
||||
# pushes wallpaper set by noctalia to the lowest layer
|
||||
layer-rules = [
|
||||
{
|
||||
matches = [ { namespace = "^noctalia-wallpaper*"; } ];
|
||||
|
|
@ -73,5 +80,4 @@ in
|
|||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue