Switch to niri - Episode 1: beginnings

This commit is contained in:
Schrottkatze 2025-03-12 02:00:13 +01:00
parent d0b7757741
commit ebaa206a81
Signed by: schrottkatze
SSH key fingerprint: SHA256:FPOYVeBy3QP20FEM42uWF1Wa/Qhlk+L3S2+Wuau/Auo
14 changed files with 343 additions and 13 deletions

View file

@ -0,0 +1,44 @@
{pkgs, ...}: {
imports = [
./xwayland-sat.nix
./screenshot.nix
./input.nix
./binds.nix
./style.nix
];
programs.niri.settings = {
outputs."eDP-1" = {
scale = 1.0;
};
spawn-at-startup = [
{
command = ["eww" "open-many" "topBar" "bottomBar"];
}
{
command = [
"${pkgs.swaybg}/bin/swaybg"
"-i"
"${../xmonad/wallpaper/wallpaper.jpg}"
"-m"
"fill"
];
}
];
window-rules = [
# TODO: privacy screen rules
# {
# geometry-corner-radius = let val = 1.; in {
# bottom-left = val;
# bottom-right = val;
# top-left = val;
# top-right = val;
# };
# clip-to-geometry = true;
# }
];
environment.ELECTRON_OZONE_PLATFORM_HINT = "auto";
};
}