more niri changes

This commit is contained in:
Vinzenz Schroeter 2025-11-02 20:18:16 +01:00
parent c4fcb26ace
commit 947ab5664d
2 changed files with 37 additions and 18 deletions

View file

@ -32,31 +32,30 @@
pink_dark = "#a30262"; pink_dark = "#a30262";
blue_light = "#5BCEFA"; blue_light = "#5BCEFA";
blue_dark = "#4a6bb1"; blue_dark = "#4a6bb1";
gradient-active = { gradient-common = {
angle = 90;
in' = "oklab";
};
gradient-active = gradient-common // {
from = pink_light; from = pink_light;
to = blue_light; to = blue_light;
angle = 45;
in' = "oklab";
}; };
gradient-inactive = { gradient-inactive = gradient-common // {
from = pink_dark; from = pink_dark;
to = blue_dark; to = blue_dark;
angle = 45;
in' = "oklab";
}; };
gradient-urgent = { gradient-urgent = gradient-common // {
from = pink_dark; from = pink_dark;
to = pink_light; to = pink_light;
angle = 45;
in' = "oklab";
}; };
gap-size = 10;
in in
{ {
gaps = 18; gaps = gap-size;
#default-column-display = "tabbed"; #default-column-display = "tabbed";
border = { border = {
enable = true; enable = true;
width = 6; width = gap-size / 2;
active.gradient = gradient-active; active.gradient = gradient-active;
inactive.gradient = gradient-inactive; inactive.gradient = gradient-inactive;
urgent.gradient = gradient-urgent; urgent.gradient = gradient-urgent;
@ -83,11 +82,15 @@
enable = true; enable = true;
display.color = pink_dark; display.color = pink_dark;
}; };
struts = { struts =
left = 3; let
right = 3; strut-inset = 4;
top = 3; in
bottom = 3; {
left = strut-inset;
right = strut-inset;
top = strut-inset;
bottom = strut-inset;
}; };
tab-indicator = { tab-indicator = {
place-within-column = true; place-within-column = true;
@ -126,6 +129,19 @@
bottom-right = radius; bottom-right = radius;
}; };
} }
{
matches = [
{
app-id = "steam";
title = "^notificationtoasts_\\d+_desktop$";
}
];
default-floating-position = {
x = 10;
y = 10;
relative-to = "bottom-right";
};
}
]; ];
# defaults taken from https://github.com/sodiboo/niri-flake/issues/483 # defaults taken from https://github.com/sodiboo/niri-flake/issues/483

View file

@ -1,7 +1,10 @@
{ pkgs, lib, ... }: { pkgs, lib, ... }:
{ {
config = { config = {
home.sessionVariables.NIXOS_OZONE_WL = "1"; home.sessionVariables = {
NIXOS_OZONE_WL = "1";
ELECTRON_OZONE_PLATFORM_HINT = "auto";
};
programs.vscode = { programs.vscode = {
enable = true; enable = true;
package = pkgs.vscodium; package = pkgs.vscodium;