tweak: niri/noctalia settings
This commit is contained in:
parent
453ffb2a2c
commit
142182204c
1 changed files with 5 additions and 18 deletions
|
|
@ -16,14 +16,11 @@
|
||||||
|
|
||||||
# for home manager functionality
|
# for home manager functionality
|
||||||
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
||||||
|
|
||||||
# for latest niri versions
|
# for latest niri versions
|
||||||
nixpkgs.overlays = [ inputs.niri.overlays.niri ];
|
nixpkgs.overlays = [ inputs.niri.overlays.niri ];
|
||||||
|
# system packages for desktop environment
|
||||||
# packages for desktop environment
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
# niri extras
|
||||||
# niri
|
|
||||||
xwayland-satellite # xwayland support
|
xwayland-satellite # xwayland support
|
||||||
jq # for parsing json
|
jq # for parsing json
|
||||||
|
|
||||||
|
|
@ -43,7 +40,6 @@
|
||||||
|
|
||||||
# let binding magic lets me get nice column widths
|
# let binding magic lets me get nice column widths
|
||||||
let
|
let
|
||||||
|
|
||||||
widthDivisions = [
|
widthDivisions = [
|
||||||
1.0
|
1.0
|
||||||
2.0
|
2.0
|
||||||
|
|
@ -56,7 +52,6 @@
|
||||||
3.0
|
3.0
|
||||||
4.0
|
4.0
|
||||||
];
|
];
|
||||||
|
|
||||||
# black magic, expected output:
|
# black magic, expected output:
|
||||||
# [ { proportion = 1.0 / 1.0 }
|
# [ { proportion = 1.0 / 1.0 }
|
||||||
# { proportion = 1.0 / 2.0 }
|
# { proportion = 1.0 / 2.0 }
|
||||||
|
|
@ -73,14 +68,11 @@
|
||||||
map (x: map (y: { proportion = x / y; }) divisions) divisions
|
map (x: map (y: { proportion = x / y; }) divisions) divisions
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
# then get all the unique outputs (removing double ups of 0.5 or others)
|
# then get all the unique outputs (removing double ups of 0.5 or others)
|
||||||
columnWidths = getProportions widthDivisions;
|
columnWidths = getProportions widthDivisions;
|
||||||
columnWidthsFiltered = builtins.filter (x: builtins.lessThan x.proportion 1.0) columnWidths; # just get the values that are below 1
|
columnWidthsFiltered = builtins.filter (x: builtins.lessThan x.proportion 1.0) columnWidths; # just get the values that are below 1
|
||||||
|
|
||||||
windowHeights = getProportions heightDivisions;
|
windowHeights = getProportions heightDivisions;
|
||||||
windowHeightsFiltered = builtins.filter (x: builtins.lessThan x.proportion 1.0) windowHeights;
|
windowHeightsFiltered = builtins.filter (x: builtins.lessThan x.proportion 1.0) windowHeights;
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
@ -91,8 +83,6 @@
|
||||||
inputs.niri.homeModules.niri
|
inputs.niri.homeModules.niri
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [ ];
|
|
||||||
|
|
||||||
programs.niri = {
|
programs.niri = {
|
||||||
# enables niri within home manager
|
# enables niri within home manager
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -191,10 +181,6 @@
|
||||||
"btop"
|
"btop"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
#{
|
|
||||||
# automanages disks
|
|
||||||
#argv = [ "udiskie" ]; # started via systemd pretty sure lol
|
|
||||||
#}
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# visual settings
|
# visual settings
|
||||||
|
|
@ -222,7 +208,7 @@
|
||||||
|
|
||||||
# remove backdrop colour
|
# remove backdrop colour
|
||||||
background-color = "transparent";
|
background-color = "transparent";
|
||||||
center-focused-column = "never";
|
#center-focused-column = "never";
|
||||||
# window|window gaps
|
# window|window gaps
|
||||||
gaps = 8;
|
gaps = 8;
|
||||||
#window|screen edge gaps
|
#window|screen edge gaps
|
||||||
|
|
@ -297,7 +283,7 @@
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
# rules for specific windows
|
# rules for specific windows - BROKEN ?
|
||||||
{
|
{
|
||||||
# kitty opacity
|
# kitty opacity
|
||||||
matches = [ { app-id = "kitty"; } ];
|
matches = [ { app-id = "kitty"; } ];
|
||||||
|
|
@ -350,6 +336,7 @@
|
||||||
#"Mod+Tab".repeat = false; # launcher
|
#"Mod+Tab".repeat = false; # launcher
|
||||||
"Mod+Return".action = spawn "${pkgs.kitty}/bin/kitty";
|
"Mod+Return".action = spawn "${pkgs.kitty}/bin/kitty";
|
||||||
"Mod+Return".repeat = false; # terminal
|
"Mod+Return".repeat = false; # terminal
|
||||||
|
# noctalia launcher
|
||||||
"Mod+Tab".action = spawn-sh "${pkgs.noctalia}/bin/noctalia msg panel-toggle launcher";
|
"Mod+Tab".action = spawn-sh "${pkgs.noctalia}/bin/noctalia msg panel-toggle launcher";
|
||||||
# screen capture
|
# screen capture
|
||||||
"Mod+S".action.screenshot = {
|
"Mod+S".action.screenshot = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue