This commit is contained in:
Lucy Hochkamp 2025-02-22 12:22:23 +01:00
parent d6e453664d
commit 151180b02f
No known key found for this signature in database
7 changed files with 515 additions and 19 deletions

39
hosts/theseus/niri.nix Normal file
View file

@ -0,0 +1,39 @@
{ pkgs, config, lib, ... }:
let
floatingAppids = [
"floating-alacritty"
"org.pulseaudio.pavucontrol"
"KeePassXC"
"org.gnome.NautilusPreviewer"
];
matchFloat = lib.concatStringSep "\n" (map (x: ''
window-rule {
match app-id="${x}"
open-floating true
open-focused true
}
'') floatingAppids);
in
{
imports = [
./waybar.nix
./mako.nix
];
xyno.desktop = {
waybar.enable = true;
mako.enable = true;
};
programs.niri.enable = true;
environment.etc."niri/config.kdl".text = ''
screenshot-path "~/Pictures/screenshots/screenshot-%Y-%m-%d %H-%M-%S.png"
input {
workspace-auto-back-and-forth
focus-follows-mouse max-scroll-amount="10%"
touchpad {
tap
}
}
// autogenerated from here on
${matchFloat}
'';
}