(Snow)flakes for fluffy winters.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(flake): add niri and noctalia shell #4

open opened by raindropaurora.bsky.social targeting main from feat(modules)/add-niri

Add Niri and Noctalia Shell Took a while, but I think it's stable~

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:vixyrdfarnayq4jmlteygtdd/sh.tangled.repo.pull/3mlh2ws4klk22
+1500 -13
Diff #0
+468 -2
flake.lock
··· 1 1 { 2 2 "nodes": { 3 + "base16": { 4 + "inputs": { 5 + "fromYaml": "fromYaml" 6 + }, 7 + "locked": { 8 + "lastModified": 1755819240, 9 + "narHash": "sha256-qcMhnL7aGAuFuutH4rq9fvAhCpJWVHLcHVZLtPctPlo=", 10 + "owner": "SenchoPens", 11 + "repo": "base16.nix", 12 + "rev": "75ed5e5e3fce37df22e49125181fa37899c3ccd6", 13 + "type": "github" 14 + }, 15 + "original": { 16 + "owner": "SenchoPens", 17 + "repo": "base16.nix", 18 + "type": "github" 19 + } 20 + }, 21 + "base16-fish": { 22 + "flake": false, 23 + "locked": { 24 + "lastModified": 1765809053, 25 + "narHash": "sha256-XCUQLoLfBJ8saWms2HCIj4NEN+xNsWBlU1NrEPcQG4s=", 26 + "owner": "tomyun", 27 + "repo": "base16-fish", 28 + "rev": "86cbea4dca62e08fb7fd83a70e96472f92574782", 29 + "type": "github" 30 + }, 31 + "original": { 32 + "owner": "tomyun", 33 + "repo": "base16-fish", 34 + "rev": "86cbea4dca62e08fb7fd83a70e96472f92574782", 35 + "type": "github" 36 + } 37 + }, 38 + "base16-helix": { 39 + "flake": false, 40 + "locked": { 41 + "lastModified": 1776754714, 42 + "narHash": "sha256-E3OAK27smtATTmX45uoTSRsVD+Y+ZiVVfgM/tjpbtYg=", 43 + "owner": "tinted-theming", 44 + "repo": "base16-helix", 45 + "rev": "4d508123037e7851ad36ebf7d9c48b0e9e1eb581", 46 + "type": "github" 47 + }, 48 + "original": { 49 + "owner": "tinted-theming", 50 + "repo": "base16-helix", 51 + "type": "github" 52 + } 53 + }, 54 + "base16-vim": { 55 + "flake": false, 56 + "locked": { 57 + "lastModified": 1732806396, 58 + "narHash": "sha256-e0bpPySdJf0F68Ndanwm+KWHgQiZ0s7liLhvJSWDNsA=", 59 + "owner": "tinted-theming", 60 + "repo": "base16-vim", 61 + "rev": "577fe8125d74ff456cf942c733a85d769afe58b7", 62 + "type": "github" 63 + }, 64 + "original": { 65 + "owner": "tinted-theming", 66 + "repo": "base16-vim", 67 + "rev": "577fe8125d74ff456cf942c733a85d769afe58b7", 68 + "type": "github" 69 + } 70 + }, 71 + "firefox-gnome-theme": { 72 + "flake": false, 73 + "locked": { 74 + "lastModified": 1776136500, 75 + "narHash": "sha256-r0gN2brVWA351zwMV0Flmlcd6SGMvYqFbvC3DfKFM8Y=", 76 + "owner": "rafaelmardojai", 77 + "repo": "firefox-gnome-theme", 78 + "rev": "0f8ba203d475587f477e7ae12661bd8459e225b7", 79 + "type": "github" 80 + }, 81 + "original": { 82 + "owner": "rafaelmardojai", 83 + "repo": "firefox-gnome-theme", 84 + "type": "github" 85 + } 86 + }, 3 87 "flake-compat": { 4 88 "locked": { 5 89 "lastModified": 1733328505, ··· 32 116 "type": "github" 33 117 } 34 118 }, 119 + "flake-parts_2": { 120 + "inputs": { 121 + "nixpkgs-lib": [ 122 + "stylix", 123 + "nixpkgs" 124 + ] 125 + }, 126 + "locked": { 127 + "lastModified": 1775087534, 128 + "narHash": "sha256-91qqW8lhL7TLwgQWijoGBbiD4t7/q75KTi8NxjVmSmA=", 129 + "owner": "hercules-ci", 130 + "repo": "flake-parts", 131 + "rev": "3107b77cd68437b9a76194f0f7f9c55f2329ca5b", 132 + "type": "github" 133 + }, 134 + "original": { 135 + "owner": "hercules-ci", 136 + "repo": "flake-parts", 137 + "type": "github" 138 + } 139 + }, 140 + "fromYaml": { 141 + "flake": false, 142 + "locked": { 143 + "lastModified": 1731966426, 144 + "narHash": "sha256-lq95WydhbUTWig/JpqiB7oViTcHFP8Lv41IGtayokA8=", 145 + "owner": "SenchoPens", 146 + "repo": "fromYaml", 147 + "rev": "106af9e2f715e2d828df706c386a685698f3223b", 148 + "type": "github" 149 + }, 150 + "original": { 151 + "owner": "SenchoPens", 152 + "repo": "fromYaml", 153 + "type": "github" 154 + } 155 + }, 156 + "gnome-shell": { 157 + "flake": false, 158 + "locked": { 159 + "lastModified": 1767737596, 160 + "narHash": "sha256-eFujfIUQDgWnSJBablOuG+32hCai192yRdrNHTv0a+s=", 161 + "owner": "GNOME", 162 + "repo": "gnome-shell", 163 + "rev": "ef02db02bf0ff342734d525b5767814770d85b49", 164 + "type": "github" 165 + }, 166 + "original": { 167 + "owner": "GNOME", 168 + "repo": "gnome-shell", 169 + "rev": "ef02db02bf0ff342734d525b5767814770d85b49", 170 + "type": "github" 171 + } 172 + }, 35 173 "home-manager": { 36 174 "inputs": { 37 175 "nixpkgs": [ ··· 53 191 "type": "github" 54 192 } 55 193 }, 194 + "niri-flake": { 195 + "inputs": { 196 + "niri-stable": "niri-stable", 197 + "niri-unstable": "niri-unstable", 198 + "nixpkgs": [ 199 + "nixpkgs" 200 + ], 201 + "nixpkgs-stable": "nixpkgs-stable", 202 + "xwayland-satellite-stable": "xwayland-satellite-stable", 203 + "xwayland-satellite-unstable": "xwayland-satellite-unstable" 204 + }, 205 + "locked": { 206 + "lastModified": 1777815637, 207 + "narHash": "sha256-jQnoHmnFgUWYDNosplgd5eFnUTT0MtEj2w9HCA4g1C0=", 208 + "owner": "sodiboo", 209 + "repo": "niri-flake", 210 + "rev": "945748d71d3422d4f1dada2cd10222e34ed9d767", 211 + "type": "github" 212 + }, 213 + "original": { 214 + "owner": "sodiboo", 215 + "repo": "niri-flake", 216 + "type": "github" 217 + } 218 + }, 219 + "niri-stable": { 220 + "flake": false, 221 + "locked": { 222 + "lastModified": 1756556321, 223 + "narHash": "sha256-RLD89dfjN0RVO86C/Mot0T7aduCygPGaYbog566F0Qo=", 224 + "owner": "YaLTeR", 225 + "repo": "niri", 226 + "rev": "01be0e65f4eb91a9cd624ac0b76aaeab765c7294", 227 + "type": "github" 228 + }, 229 + "original": { 230 + "owner": "YaLTeR", 231 + "ref": "v25.08", 232 + "repo": "niri", 233 + "type": "github" 234 + } 235 + }, 236 + "niri-unstable": { 237 + "flake": false, 238 + "locked": { 239 + "lastModified": 1777733745, 240 + "narHash": "sha256-1TlpdT0WYyBGtUS3PH4oXHUmdno2EUh2TfHadK2BmJo=", 241 + "owner": "YaLTeR", 242 + "repo": "niri", 243 + "rev": "1f07cffa9f355298a31d7efe1b400ede93a97728", 244 + "type": "github" 245 + }, 246 + "original": { 247 + "owner": "YaLTeR", 248 + "repo": "niri", 249 + "type": "github" 250 + } 251 + }, 56 252 "nixcord": { 57 253 "inputs": { 58 254 "flake-compat": "flake-compat", ··· 138 334 } 139 335 }, 140 336 "nixpkgs-stable": { 337 + "locked": { 338 + "lastModified": 1777673416, 339 + "narHash": "sha256-5c2POKPOjU40Kh0MirOdScBLG0bu9TAuPYAtPRNZMBs=", 340 + "owner": "NixOS", 341 + "repo": "nixpkgs", 342 + "rev": "26ef669cffa904b6f6832ab57b77892a37c1a671", 343 + "type": "github" 344 + }, 345 + "original": { 346 + "owner": "NixOS", 347 + "ref": "nixos-25.11", 348 + "repo": "nixpkgs", 349 + "type": "github" 350 + } 351 + }, 352 + "nixpkgs-stable_2": { 141 353 "locked": { 142 354 "lastModified": 1777673416, 143 355 "narHash": "sha256-5c2POKPOjU40Kh0MirOdScBLG0bu9TAuPYAtPRNZMBs=", ··· 169 381 "type": "github" 170 382 } 171 383 }, 384 + "noctalia": { 385 + "inputs": { 386 + "nixpkgs": [ 387 + "nixpkgs" 388 + ], 389 + "noctalia-qs": "noctalia-qs" 390 + }, 391 + "locked": { 392 + "lastModified": 1777859147, 393 + "narHash": "sha256-0vCgxdwrxBkHmqNgJtUMGCFwSV5a6AgYdKAgBCtFFPM=", 394 + "owner": "noctalia-dev", 395 + "repo": "noctalia-shell", 396 + "rev": "6b48834dd6c3913d211476ab2f964f3fb100675e", 397 + "type": "github" 398 + }, 399 + "original": { 400 + "owner": "noctalia-dev", 401 + "repo": "noctalia-shell", 402 + "type": "github" 403 + } 404 + }, 405 + "noctalia-qs": { 406 + "inputs": { 407 + "nixpkgs": [ 408 + "noctalia", 409 + "nixpkgs" 410 + ], 411 + "systems": "systems", 412 + "treefmt-nix": "treefmt-nix" 413 + }, 414 + "locked": { 415 + "lastModified": 1777773024, 416 + "narHash": "sha256-pLU+KB84A0Jei/vTD6pOS4Ovkmq3QDfPQHg1MlKsRqM=", 417 + "owner": "noctalia-dev", 418 + "repo": "noctalia-qs", 419 + "rev": "d3e26ccd9eecde9139be00caf5dc2d4260fb31ee", 420 + "type": "github" 421 + }, 422 + "original": { 423 + "owner": "noctalia-dev", 424 + "repo": "noctalia-qs", 425 + "type": "github" 426 + } 427 + }, 428 + "nur": { 429 + "inputs": { 430 + "flake-parts": [ 431 + "stylix", 432 + "flake-parts" 433 + ], 434 + "nixpkgs": [ 435 + "stylix", 436 + "nixpkgs" 437 + ] 438 + }, 439 + "locked": { 440 + "lastModified": 1777598946, 441 + "narHash": "sha256-X239dAGaU1+gfDj8jKH8GzlqKMcxaVfXOio+uzBOkeE=", 442 + "owner": "nix-community", 443 + "repo": "NUR", 444 + "rev": "5d55af01c0f86be583931fe99207fc56c14134b3", 445 + "type": "github" 446 + }, 447 + "original": { 448 + "owner": "nix-community", 449 + "repo": "NUR", 450 + "type": "github" 451 + } 452 + }, 172 453 "plasma-manager": { 173 454 "inputs": { 174 455 "home-manager": [ ··· 195 476 "root": { 196 477 "inputs": { 197 478 "home-manager": "home-manager", 479 + "niri-flake": "niri-flake", 198 480 "nixcord": "nixcord", 199 481 "nixos-hardware": "nixos-hardware", 200 482 "nixpkgs": "nixpkgs_2", 201 - "nixpkgs-stable": "nixpkgs-stable", 202 - "plasma-manager": "plasma-manager" 483 + "nixpkgs-stable": "nixpkgs-stable_2", 484 + "noctalia": "noctalia", 485 + "plasma-manager": "plasma-manager", 486 + "stylix": "stylix" 487 + } 488 + }, 489 + "stylix": { 490 + "inputs": { 491 + "base16": "base16", 492 + "base16-fish": "base16-fish", 493 + "base16-helix": "base16-helix", 494 + "base16-vim": "base16-vim", 495 + "firefox-gnome-theme": "firefox-gnome-theme", 496 + "flake-parts": "flake-parts_2", 497 + "gnome-shell": "gnome-shell", 498 + "nixpkgs": [ 499 + "nixpkgs" 500 + ], 501 + "nur": "nur", 502 + "systems": "systems_2", 503 + "tinted-kitty": "tinted-kitty", 504 + "tinted-schemes": "tinted-schemes", 505 + "tinted-tmux": "tinted-tmux", 506 + "tinted-zed": "tinted-zed" 507 + }, 508 + "locked": { 509 + "lastModified": 1777835090, 510 + "narHash": "sha256-VLH8zPweblCOvpnQXp4fVs7f6Q79YhXF5XFKlOrvIFk=", 511 + "owner": "nix-community", 512 + "repo": "stylix", 513 + "rev": "7989a1054b01153212dede6005abfd1576b8328c", 514 + "type": "github" 515 + }, 516 + "original": { 517 + "owner": "nix-community", 518 + "repo": "stylix", 519 + "type": "github" 520 + } 521 + }, 522 + "systems": { 523 + "locked": { 524 + "lastModified": 1689347949, 525 + "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", 526 + "owner": "nix-systems", 527 + "repo": "default-linux", 528 + "rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68", 529 + "type": "github" 530 + }, 531 + "original": { 532 + "owner": "nix-systems", 533 + "repo": "default-linux", 534 + "type": "github" 535 + } 536 + }, 537 + "systems_2": { 538 + "locked": { 539 + "lastModified": 1681028828, 540 + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", 541 + "owner": "nix-systems", 542 + "repo": "default", 543 + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", 544 + "type": "github" 545 + }, 546 + "original": { 547 + "owner": "nix-systems", 548 + "repo": "default", 549 + "type": "github" 550 + } 551 + }, 552 + "tinted-kitty": { 553 + "flake": false, 554 + "locked": { 555 + "lastModified": 1735730497, 556 + "narHash": "sha256-4KtB+FiUzIeK/4aHCKce3V9HwRvYaxX+F1edUrfgzb8=", 557 + "owner": "tinted-theming", 558 + "repo": "tinted-kitty", 559 + "rev": "de6f888497f2c6b2279361bfc790f164bfd0f3fa", 560 + "type": "github" 561 + }, 562 + "original": { 563 + "owner": "tinted-theming", 564 + "repo": "tinted-kitty", 565 + "type": "github" 566 + } 567 + }, 568 + "tinted-schemes": { 569 + "flake": false, 570 + "locked": { 571 + "lastModified": 1777041405, 572 + "narHash": "sha256-BAGZ7ObFV/9Z61OJZun7ifPyhkuHqNuW1QIhQ8LuzCo=", 573 + "owner": "tinted-theming", 574 + "repo": "schemes", 575 + "rev": "5f868b3a338b6904c47f3833b9c411be641983a8", 576 + "type": "github" 577 + }, 578 + "original": { 579 + "owner": "tinted-theming", 580 + "repo": "schemes", 581 + "type": "github" 582 + } 583 + }, 584 + "tinted-tmux": { 585 + "flake": false, 586 + "locked": { 587 + "lastModified": 1777169200, 588 + "narHash": "sha256-h7dDbIzP5hDr9v97w9PL6jdAgXawmj6krcH+959rqpU=", 589 + "owner": "tinted-theming", 590 + "repo": "tinted-tmux", 591 + "rev": "f798c2dce44ef815bb6b8f05a82135c7942d35ac", 592 + "type": "github" 593 + }, 594 + "original": { 595 + "owner": "tinted-theming", 596 + "repo": "tinted-tmux", 597 + "type": "github" 598 + } 599 + }, 600 + "tinted-zed": { 601 + "flake": false, 602 + "locked": { 603 + "lastModified": 1777463218, 604 + "narHash": "sha256-Bhkozqtq3BKLqWTlmKm8uAptfX4aRGI8QX3eEL54Vpc=", 605 + "owner": "tinted-theming", 606 + "repo": "base16-zed", 607 + "rev": "5768d08ed2e7944a26a958868cdb073cb8856dae", 608 + "type": "github" 609 + }, 610 + "original": { 611 + "owner": "tinted-theming", 612 + "repo": "base16-zed", 613 + "type": "github" 614 + } 615 + }, 616 + "treefmt-nix": { 617 + "inputs": { 618 + "nixpkgs": [ 619 + "noctalia", 620 + "noctalia-qs", 621 + "nixpkgs" 622 + ] 623 + }, 624 + "locked": { 625 + "lastModified": 1775636079, 626 + "narHash": "sha256-pc20NRoMdiar8oPQceQT47UUZMBTiMdUuWrYu2obUP0=", 627 + "owner": "numtide", 628 + "repo": "treefmt-nix", 629 + "rev": "790751ff7fd3801feeaf96d7dc416a8d581265ba", 630 + "type": "github" 631 + }, 632 + "original": { 633 + "owner": "numtide", 634 + "repo": "treefmt-nix", 635 + "type": "github" 636 + } 637 + }, 638 + "xwayland-satellite-stable": { 639 + "flake": false, 640 + "locked": { 641 + "lastModified": 1755491097, 642 + "narHash": "sha256-m+9tUfsmBeF2Gn4HWa6vSITZ4Gz1eA1F5Kh62B0N4oE=", 643 + "owner": "Supreeeme", 644 + "repo": "xwayland-satellite", 645 + "rev": "388d291e82ffbc73be18169d39470f340707edaa", 646 + "type": "github" 647 + }, 648 + "original": { 649 + "owner": "Supreeeme", 650 + "ref": "v0.7", 651 + "repo": "xwayland-satellite", 652 + "type": "github" 653 + } 654 + }, 655 + "xwayland-satellite-unstable": { 656 + "flake": false, 657 + "locked": { 658 + "lastModified": 1773622265, 659 + "narHash": "sha256-wToKwH7IgWdGLMSIWksEDs4eumR6UbbsuPQ42r0oTXQ=", 660 + "owner": "Supreeeme", 661 + "repo": "xwayland-satellite", 662 + "rev": "a879e5e0896a326adc79c474bf457b8b99011027", 663 + "type": "github" 664 + }, 665 + "original": { 666 + "owner": "Supreeeme", 667 + "repo": "xwayland-satellite", 668 + "type": "github" 203 669 } 204 670 } 205 671 },
+42 -9
flake.nix
··· 17 17 inputs.home-manager.follows = "home-manager"; 18 18 }; 19 19 20 - nixcord = { 21 - url = "github:kaylorben/nixcord"; 20 + stylix = { 21 + url = "github:nix-community/stylix"; 22 + inputs.nixpkgs.follows = "nixpkgs"; 23 + }; 24 + 25 + niri-flake = { 26 + url = "github:sodiboo/niri-flake"; 27 + inputs.nixpkgs.follows = "nixpkgs"; 22 28 }; 23 29 30 + noctalia = { 31 + url = "github:noctalia-dev/noctalia-shell"; 32 + inputs.nixpkgs.follows = "nixpkgs"; 33 + }; 24 34 35 + nixcord = { 36 + url = "github:kaylorben/nixcord"; 37 + }; 25 38 39 + nixos-hardware = { 40 + url = "github:NixOS/nixos-hardware/master"; 26 41 }; 42 + }; 43 + 44 + nixConfig = { 45 + extra-substituters = [ "https://noctalia.cachix.org" ]; 46 + extra-trusted-public-keys = [ "noctalia.cachix.org-1:pCOR47nnMEo5thcxNDtzWpOxNFQsBRglJzxWPp3dkU4=" ]; 27 47 }; 28 48 29 - outputs = { self, nixpkgs, nixpkgs-stable, home-manager, plasma-manager, nixcord, nixos-hardware, ... }: 49 + outputs = inputs@{ 50 + self, 51 + nixpkgs, 52 + nixpkgs-stable, 53 + home-manager, 54 + plasma-manager, 55 + stylix, 56 + niri-flake, 57 + noctalia, 58 + nixcord, 59 + nixos-hardware, 60 + ... 61 + }: 30 62 let 31 63 system = "x86_64-linux"; 32 64 stateVersion = "25.11"; ··· 35 67 36 68 37 69 38 - 39 - 40 - 41 - 42 - 43 - 70 + nixosConfigurations.ryuganhana = nixpkgs.lib.nixosSystem { 71 + inherit system; 72 + specialArgs = { 73 + inherit stateVersion pkgs-stable inputs; 74 + }; 75 + modules = [ 44 76 ./consumers/ryuganhana/configuration.nix 45 77 nixos-hardware.nixosModules.dell-xps-13-9310 46 78 home-manager.nixosModules.default 79 + stylix.nixosModules.stylix 47 80 { 48 81 home-manager = { 49 82 extraSpecialArgs = {
+39
modules/niri.nix
··· 1 + { inputs, pkgs, ... }: { 2 + imports = [ 3 + inputs.niri-flake.nixosModules.niri 4 + ]; 5 + 6 + services.displayManager.sddm = { 7 + enable = true; 8 + wayland.enable = true; 9 + }; 10 + 11 + programs.niri = { 12 + enable = true; 13 + package = pkgs.niri; 14 + }; 15 + 16 + environment.systemPackages = with pkgs; [ 17 + alacritty 18 + nautilus 19 + xwayland-satellite 20 + ]; 21 + 22 + xdg.portal = { 23 + enable = true; 24 + extraPortals = [ pkgs.xdg-desktop-portal-gnome ]; 25 + }; 26 + 27 + security.polkit.enable = true; 28 + services.gnome.gnome-keyring.enable = true; 29 + services.power-profiles-daemon.enable = true; 30 + services.upower.enable = true; 31 + services.logind.settings.Login.HandlePowerKey = "ignore"; 32 + home-manager = { 33 + sharedModules = [ 34 + inputs.noctalia.homeModules.default 35 + ./home-manager/niri/default.nix 36 + ./home-manager/noctalia/default.nix 37 + ]; 38 + }; 39 + }
-1
modules/plasma.nix
··· 27 27 kdePackages.krdp 28 28 mpv 29 29 ]; 30 - }
+624
modules/home-manager/niri/config.kdl
··· 1 + // This config is in the KDL format: https://kdl.dev 2 + // "/-" comments out the following node. 3 + // Check the wiki for a full description of the configuration: 4 + // https://yalter.github.io/niri/Configuration:-Introduction 5 + 6 + // Input device configuration. 7 + // Find the full list of options on the wiki: 8 + // https://yalter.github.io/niri/Configuration:-Input 9 + input { 10 + keyboard { 11 + xkb { 12 + // You can set rules, model, layout, variant and options. 13 + // For more information, see xkeyboard-config(7). 14 + 15 + // For example: 16 + // layout "us,ru" 17 + // options "grp:win_space_toggle,compose:ralt,ctrl:nocaps" 18 + 19 + // If this section is empty, niri will fetch xkb settings 20 + // from org.freedesktop.locale1. You can control these using 21 + // localectl set-x11-keymap. 22 + } 23 + 24 + // Enable numlock on startup, omitting this setting disables it. 25 + numlock 26 + } 27 + 28 + // Next sections include libinput settings. 29 + // Omitting settings disables them, or leaves them at their default values. 30 + // All commented-out settings here are examples, not defaults. 31 + touchpad { 32 + // off 33 + tap 34 + // dwt 35 + // dwtp 36 + // drag false 37 + // drag-lock 38 + natural-scroll 39 + // accel-speed 0.2 40 + // accel-profile "flat" 41 + // scroll-method "two-finger" 42 + // disabled-on-external-mouse 43 + } 44 + 45 + mouse { 46 + // off 47 + // natural-scroll 48 + // accel-speed 0.2 49 + // accel-profile "flat" 50 + // scroll-method "no-scroll" 51 + } 52 + 53 + trackpoint { 54 + // off 55 + // natural-scroll 56 + // accel-speed 0.2 57 + // accel-profile "flat" 58 + // scroll-method "on-button-down" 59 + // scroll-button 273 60 + // scroll-button-lock 61 + // middle-emulation 62 + } 63 + 64 + // Uncomment this to make the mouse warp to the center of newly focused windows. 65 + // warp-mouse-to-focus 66 + 67 + // Focus windows and outputs automatically when moving the mouse into them. 68 + // Setting max-scroll-amount="0%" makes it work only on windows already fully on screen. 69 + // focus-follows-mouse max-scroll-amount="0%" 70 + 71 + disable-power-key-handling 72 + } 73 + 74 + // You can configure outputs by their name, which you can find 75 + // by running `niri msg outputs` while inside a niri instance. 76 + // The built-in laptop monitor is usually called "eDP-1". 77 + // Find more information on the wiki: 78 + // https://yalter.github.io/niri/Configuration:-Outputs 79 + // Remember to uncomment the node by removing "/-"! 80 + output "eDP-1" { 81 + mode "1920x1200@59.950" 82 + 83 + // You can use integer or fractional scale, for example use 1.5 for 150% scale. 84 + scale 1.5 85 + 86 + // Transform allows to rotate the output counter-clockwise, valid values are: 87 + // normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270. 88 + transform "normal" 89 + 90 + // Position of the output in the global coordinate space. 91 + // This affects directional monitor actions like "focus-monitor-left", and cursor movement. 92 + // The cursor can only move between directly adjacent outputs. 93 + // Output scale and rotation has to be taken into account for positioning: 94 + // outputs are sized in logical, or scaled, pixels. 95 + // For example, a 3840×2160 output with scale 2.0 will have a logical size of 1920×1080, 96 + // so to put another output directly adjacent to it on the right, set its x to 1920. 97 + // If the position is unset or results in an overlap, the output is instead placed 98 + // automatically. 99 + position x=0 y=0 100 + } 101 + 102 + // Settings that influence how windows are positioned and sized. 103 + // Find more information on the wiki: 104 + // https://yalter.github.io/niri/Configuration:-Layout 105 + layout { 106 + // Set gaps around windows in logical pixels. 107 + gaps 12 108 + 109 + // When to center a column when changing focus, options are: 110 + // - "never", default behavior, focusing an off-screen column will keep at the left 111 + // or right edge of the screen. 112 + // - "always", the focused column will always be centered. 113 + // - "on-overflow", focusing a column will center it if it doesn't fit 114 + // together with the previously focused column. 115 + center-focused-column "never" 116 + 117 + // You can customize the widths that "switch-preset-column-width" (Mod+R) toggles between. 118 + preset-column-widths { 119 + // Proportion sets the width as a fraction of the output width, taking gaps into account. 120 + // For example, you can perfectly fit four windows sized "proportion 0.25" on an output. 121 + // The default preset widths are 1/3, 1/2 and 2/3 of the output. 122 + proportion 0.33333 123 + proportion 0.5 124 + proportion 0.66667 125 + 126 + // Fixed sets the width in logical pixels exactly. 127 + // fixed 1920 128 + } 129 + 130 + // You can also customize the heights that "switch-preset-window-height" (Mod+Shift+R) toggles between. 131 + // preset-window-heights { } 132 + 133 + // You can change the default width of the new windows. 134 + default-column-width { proportion 0.5; } 135 + // If you leave the brackets empty, the windows themselves will decide their initial width. 136 + // default-column-width {} 137 + 138 + // By default focus ring and border are rendered as a solid background rectangle 139 + // behind windows. That is, they will show up through semitransparent windows. 140 + // This is because windows using client-side decorations can have an arbitrary shape. 141 + // 142 + // If you don't like that, you should uncomment `prefer-no-csd` below. 143 + // Niri will draw focus ring and border *around* windows that agree to omit their 144 + // client-side decorations. 145 + // 146 + // Alternatively, you can override it with a window rule called 147 + // `draw-border-with-background`. 148 + 149 + // You can change how the focus ring looks. 150 + focus-ring { 151 + // Uncomment this line to disable the focus ring. 152 + off 153 + 154 + // How many logical pixels the ring extends out from the windows. 155 + width 4 156 + 157 + // Colors can be set in a variety of ways: 158 + // - CSS named colors: "red" 159 + // - RGB hex: "#rgb", "#rgba", "#rrggbb", "#rrggbbaa" 160 + // - CSS-like notation: "rgb(255, 127, 0)", rgba(), hsl() and a few others. 161 + 162 + // Color of the ring on the active monitor. 163 + // active-color "#7fc8ff" 164 + 165 + // Color of the ring on inactive monitors. 166 + // 167 + // The focus ring only draws around the active window, so the only place 168 + // where you can see its inactive-color is on other monitors. 169 + // inactive-color "#505050" 170 + 171 + // You can also use gradients. They take precedence over solid colors. 172 + // Gradients are rendered the same as CSS linear-gradient(angle, from, to). 173 + // The angle is the same as in linear-gradient, and is optional, 174 + // defaulting to 180 (top-to-bottom gradient). 175 + // You can use any CSS linear-gradient tool on the web to set these up. 176 + // Changing the color space is also supported, check the wiki for more info. 177 + // 178 + // active-gradient from="#80c8ff" to="#c7ff7f" angle=45 179 + 180 + // You can also color the gradient relative to the entire view 181 + // of the workspace, rather than relative to just the window itself. 182 + // To do that, set relative-to="workspace-view". 183 + // 184 + // inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view" 185 + } 186 + 187 + // You can also add a border. It's similar to the focus ring, but always visible. 188 + border { 189 + // The settings are the same as for the focus ring. 190 + // If you enable the border, you probably want to disable the focus ring. 191 + off 192 + 193 + width 4 194 + active-color "#ffc87f" 195 + inactive-color "#505050" 196 + 197 + // Color of the border around windows that request your attention. 198 + urgent-color "#9b0000" 199 + 200 + // Gradients can use a few different interpolation color spaces. 201 + // For example, this is a pastel rainbow gradient via in="oklch longer hue". 202 + // 203 + // active-gradient from="#e5989b" to="#ffb4a2" angle=45 relative-to="workspace-view" in="oklch longer hue" 204 + 205 + // inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view" 206 + } 207 + 208 + shadow { 209 + on 210 + softness 22 // blur radius 211 + spread 0 212 + offset x=0 y=8 213 + color "rgba(0,0,0,0.22)" 214 + } 215 + 216 + // Struts shrink the area occupied by windows, similarly to layer-shell panels. 217 + // You can think of them as a kind of outer gaps. They are set in logical pixels. 218 + // Left and right struts will cause the next window to the side to always be visible. 219 + // Top and bottom struts will simply add outer gaps in addition to the area occupied by 220 + // layer-shell panels and regular gaps. 221 + struts { 222 + // left 64 223 + // right 64 224 + // top 64 225 + // bottom 64 226 + } 227 + } 228 + 229 + overview { 230 + workspace-shadow { 231 + off 232 + } 233 + } 234 + 235 + // Add lines like this to spawn processes at startup. 236 + // Note that running niri as a session supports xdg-desktop-autostart, 237 + // which may be more convenient to use. 238 + // See the binds section below for more spawn examples. 239 + 240 + // Noctalia Shell startup 241 + spawn-at-startup "noctalia-shell" 242 + 243 + // This line starts waybar, a commonly used bar for Wayland compositors. 244 + // spawn-at-startup "waybar" 245 + 246 + // To run a shell command (with variables, pipes, etc.), use spawn-sh-at-startup: 247 + // spawn-sh-at-startup "qs -c ~/source/qs/MyAwesomeShell" 248 + 249 + hotkey-overlay { 250 + // Uncomment this line to disable the "Important Hotkeys" pop-up at startup. 251 + // skip-at-startup 252 + } 253 + 254 + // Uncomment this line to ask the clients to omit their client-side decorations if possible. 255 + // If the client will specifically ask for CSD, the request will be honored. 256 + // Additionally, clients will be informed that they are tiled, removing some client-side rounded corners. 257 + // This option will also fix border/focus ring drawing behind some semitransparent windows. 258 + // After enabling or disabling this, you need to restart the apps for this to take effect. 259 + prefer-no-csd 260 + 261 + // You can change the path where screenshots are saved. 262 + // A ~ at the front will be expanded to the home directory. 263 + // The path is formatted with strftime(3) to give you the screenshot date and time. 264 + screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png" 265 + 266 + // You can also set this to null to disable saving screenshots to disk. 267 + // screenshot-path null 268 + 269 + // Animation settings. 270 + // The wiki explains how to configure individual animations: 271 + // https://yalter.github.io/niri/Configuration:-Animations 272 + animations { 273 + // Uncomment to turn off all animations. 274 + // off 275 + 276 + // Slow down all animations by this factor. Values below 1 speed them up instead. 277 + // slowdown 3.0 278 + } 279 + 280 + // Window rules let you adjust behavior for individual windows. 281 + // Find more information on the wiki: 282 + // https://yalter.github.io/niri/Configuration:-Window-Rules 283 + 284 + // Work around WezTerm's initial configure bug 285 + // by setting an empty default-column-width. 286 + window-rule { 287 + // This regular expression is intentionally made as specific as possible, 288 + // since this is the default config, and we want no false positives. 289 + // You can get away with just app-id="wezterm" if you want. 290 + match app-id=r#"^org\.wezfurlong\.wezterm$"# 291 + default-column-width {} 292 + } 293 + 294 + // Open the Firefox picture-in-picture player as floating by default. 295 + window-rule { 296 + // This app-id regular expression will work for both: 297 + // - host Firefox (app-id is "firefox") 298 + // - Flatpak Firefox (app-id is "org.mozilla.firefox") 299 + match app-id=r#"firefox$"# title="^Picture-in-Picture$" 300 + open-floating true 301 + } 302 + 303 + // Example: block out two password managers from screen capture. 304 + // (This example rule is commented out with a "/-" in front.) 305 + /-window-rule { 306 + match app-id=r#"^org\.keepassxc\.KeePassXC$"# 307 + match app-id=r#"^org\.gnome\.World\.Secrets$"# 308 + 309 + block-out-from "screen-capture" 310 + 311 + // Use this instead if you want them visible on third-party screenshot tools. 312 + // block-out-from "screencast" 313 + } 314 + 315 + // Example: enable rounded corners for all windows. 316 + // (This example rule is commented out with a "/-" in front.) 317 + window-rule { 318 + geometry-corner-radius 8 319 + clip-to-geometry true 320 + } 321 + 322 + // Apps: Blur all with xray 323 + window-rule { 324 + background-effect { 325 + blur true 326 + xray true 327 + } 328 + } 329 + 330 + // Noctalia: blur bar and launcher with xray 331 + /-layer-rule { 332 + match namespace="^noctalia-(background|launcher-overlay|dock)-.*$" 333 + background-effect { 334 + blur true 335 + xray true 336 + } 337 + } 338 + 339 + blur { 340 + off 341 + passes 1 342 + offset 8 343 + noise 0.04 344 + saturation 1 345 + } 346 + 347 + debug { 348 + // Allows notification actions and window activation from Noctalia. 349 + honor-xdg-activation-with-invalid-serial 350 + } 351 + 352 + // Noctalia overview blurred background 353 + layer-rule { 354 + match namespace="^noctalia-overview*" 355 + place-within-backdrop true 356 + } 357 + 358 + binds { 359 + // Keys consist of modifiers separated by + signs, followed by an XKB key name 360 + // in the end. To find an XKB name for a particular key, you may use a program 361 + // like wev. 362 + // 363 + // "Mod" is a special modifier equal to Super when running on a TTY, and to Alt 364 + // when running as a winit window. 365 + // 366 + // Most actions that you can bind here can also be invoked programmatically with 367 + // `niri msg action do-something`. 368 + 369 + // Noctalia binds 370 + Alt+Space hotkey-overlay-title="Toggle Launcher" { spawn "noctalia-shell" "ipc" "call" "launcher" "toggle"; } 371 + Mod+S hotkey-overlay-title="Toggle Control Centre" { spawn "noctalia-shell" "ipc" "call" "controlCenter" "toggle"; } 372 + 373 + // Mod-Shift-/, which is usually the same as Mod-?, 374 + // shows a list of important hotkeys. 375 + Mod+Shift+Slash { show-hotkey-overlay; } 376 + 377 + // Suggested binds for running programs: terminal, app launcher, screen locker. 378 + Mod+T hotkey-overlay-title="Open a Terminal: alacritty" { spawn "alacritty"; } 379 + // Mod+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; } 380 + Mod+L hotkey-overlay-title="Lock Screen" { spawn "noctalia-shell" "ipc" "call" "lockScreen" "lock"; } 381 + 382 + // KDE Plasma equivalent power cycle 383 + Mod+B hotkey-overlay-title="Cycle Power Profile" { spawn "noctalia-shell" "ipc" "call" "powerProfile" "cycle"; } 384 + 385 + XF86AudioRaiseVolume allow-when-locked=true { spawn "noctalia-shell" "ipc" "call" "volume" "increase"; } 386 + XF86AudioPlay allow-when-locked=true { spawn "noctalia-shell" "ipc" "call" "media" "playPause"; } 387 + XF86AudioLowerVolume allow-when-locked=true { spawn "noctalia-shell" "ipc" "call" "volume" "decrease"; } 388 + XF86AudioMute allow-when-locked=true { spawn "noctalia-shell" "ipc" "call" "volume" "muteOutput"; } 389 + XF86MonBrightnessUp allow-when-locked=true { spawn "noctalia-shell" "ipc" "call" "brightness" "increase"; } 390 + XF86MonBrightnessDown allow-when-locked=true { spawn "noctalia-shell" "ipc" "call" "brightness" "decrease"; } 391 + 392 + XF86PowerOff allow-when-locked=true { spawn "noctalia-shell" "ipc" "call" "sessionMenu" "toggle"; } 393 + 394 + Mod+V hotkey-overlay-title="View Clipboard History" { spawn "noctalia-shell" "ipc" "call" "launcher" "clipboard"; } 395 + Mod+Shift+Space hotkey-overlay-title="Select Emoji" { spawn "noctalia-shell" "ipc" "call" "launcher" "emoji"; } 396 + 397 + // Open/close the Overview: a zoomed-out view of workspaces and windows. 398 + // You can also move the mouse into the top-left hot corner, 399 + // or do a four-finger swipe up on a touchpad. 400 + Mod+O repeat=false { toggle-overview; } 401 + 402 + Mod+Q repeat=false { close-window; } 403 + 404 + Mod+Left { focus-column-left; } 405 + Mod+Down { focus-window-down; } 406 + Mod+Up { focus-window-up; } 407 + Mod+Right { focus-column-right; } 408 + // Mod+H { focus-column-left; } 409 + // Mod+J { focus-window-down; } 410 + // Mod+K { focus-window-up; } 411 + // Mod+L { focus-column-right; } 412 + 413 + Mod+Ctrl+Left { move-column-left; } 414 + Mod+Ctrl+Down { move-window-down; } 415 + Mod+Ctrl+Up { move-window-up; } 416 + Mod+Ctrl+Right { move-column-right; } 417 + Mod+Ctrl+H { move-column-left; } 418 + Mod+Ctrl+J { move-window-down; } 419 + Mod+Ctrl+K { move-window-up; } 420 + Mod+Ctrl+L { move-column-right; } 421 + 422 + // Alternative commands that move across workspaces when reaching 423 + // the first or last window in a column. 424 + // Mod+J { focus-window-or-workspace-down; } 425 + // Mod+K { focus-window-or-workspace-up; } 426 + // Mod+Ctrl+J { move-window-down-or-to-workspace-down; } 427 + // Mod+Ctrl+K { move-window-up-or-to-workspace-up; } 428 + 429 + Mod+Home { focus-column-first; } 430 + Mod+End { focus-column-last; } 431 + Mod+Ctrl+Home { move-column-to-first; } 432 + Mod+Ctrl+End { move-column-to-last; } 433 + 434 + Mod+Shift+Left { focus-monitor-left; } 435 + Mod+Shift+Down { focus-monitor-down; } 436 + Mod+Shift+Up { focus-monitor-up; } 437 + Mod+Shift+Right { focus-monitor-right; } 438 + Mod+Shift+H { focus-monitor-left; } 439 + Mod+Shift+J { focus-monitor-down; } 440 + Mod+Shift+K { focus-monitor-up; } 441 + Mod+Shift+L { focus-monitor-right; } 442 + 443 + Mod+Shift+Ctrl+Left { move-column-to-monitor-left; } 444 + Mod+Shift+Ctrl+Down { move-column-to-monitor-down; } 445 + Mod+Shift+Ctrl+Up { move-column-to-monitor-up; } 446 + Mod+Shift+Ctrl+Right { move-column-to-monitor-right; } 447 + Mod+Shift+Ctrl+H { move-column-to-monitor-left; } 448 + Mod+Shift+Ctrl+J { move-column-to-monitor-down; } 449 + Mod+Shift+Ctrl+K { move-column-to-monitor-up; } 450 + Mod+Shift+Ctrl+L { move-column-to-monitor-right; } 451 + 452 + // Alternatively, there are commands to move just a single window: 453 + // Mod+Shift+Ctrl+Left { move-window-to-monitor-left; } 454 + // ... 455 + 456 + // And you can also move a whole workspace to another monitor: 457 + // Mod+Shift+Ctrl+Left { move-workspace-to-monitor-left; } 458 + // ... 459 + 460 + Mod+Page_Down { focus-workspace-down; } 461 + Mod+Page_Up { focus-workspace-up; } 462 + // Mod+U { focus-workspace-down; } 463 + // Mod+I { focus-workspace-up; } 464 + Mod+Ctrl+Page_Down { move-column-to-workspace-down; } 465 + Mod+Ctrl+Page_Up { move-column-to-workspace-up; } 466 + Mod+Ctrl+U { move-column-to-workspace-down; } 467 + Mod+Ctrl+I { move-column-to-workspace-up; } 468 + 469 + // Alternatively, there are commands to move just a single window: 470 + // Mod+Ctrl+Page_Down { move-window-to-workspace-down; } 471 + // ... 472 + 473 + Mod+Shift+Page_Down { move-workspace-down; } 474 + Mod+Shift+Page_Up { move-workspace-up; } 475 + // Mod+Shift+U { move-workspace-down; } 476 + // Mod+Shift+I { move-workspace-up; } 477 + 478 + // You can bind mouse wheel scroll ticks using the following syntax. 479 + // These binds will change direction based on the natural-scroll setting. 480 + // 481 + // To avoid scrolling through workspaces really fast, you can use 482 + // the cooldown-ms property. The bind will be rate-limited to this value. 483 + // You can set a cooldown on any bind, but it's most useful for the wheel. 484 + Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; } 485 + Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; } 486 + Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; } 487 + Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; } 488 + 489 + Mod+WheelScrollRight { focus-column-right; } 490 + Mod+WheelScrollLeft { focus-column-left; } 491 + Mod+Ctrl+WheelScrollRight { move-column-right; } 492 + Mod+Ctrl+WheelScrollLeft { move-column-left; } 493 + 494 + // Usually scrolling up and down with Shift in applications results in 495 + // horizontal scrolling; these binds replicate that. 496 + Mod+Shift+WheelScrollDown { focus-column-right; } 497 + Mod+Shift+WheelScrollUp { focus-column-left; } 498 + Mod+Ctrl+Shift+WheelScrollDown { move-column-right; } 499 + Mod+Ctrl+Shift+WheelScrollUp { move-column-left; } 500 + 501 + // Similarly, you can bind touchpad scroll "ticks". 502 + // Touchpad scrolling is continuous, so for these binds it is split into 503 + // discrete intervals. 504 + // These binds are also affected by touchpad's natural-scroll, so these 505 + // example binds are "inverted", since we have natural-scroll enabled for 506 + // touchpads by default. 507 + // Mod+TouchpadScrollDown { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.02+"; } 508 + // Mod+TouchpadScrollUp { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.02-"; } 509 + 510 + // You can refer to workspaces by index. However, keep in mind that 511 + // niri is a dynamic workspace system, so these commands are kind of 512 + // "best effort". Trying to refer to a workspace index bigger than 513 + // the current workspace count will instead refer to the bottommost 514 + // (empty) workspace. 515 + // 516 + // For example, with 2 workspaces + 1 empty, indices 3, 4, 5 and so on 517 + // will all refer to the 3rd workspace. 518 + Mod+1 { focus-workspace 1; } 519 + Mod+2 { focus-workspace 2; } 520 + Mod+3 { focus-workspace 3; } 521 + Mod+4 { focus-workspace 4; } 522 + Mod+5 { focus-workspace 5; } 523 + Mod+6 { focus-workspace 6; } 524 + Mod+7 { focus-workspace 7; } 525 + Mod+8 { focus-workspace 8; } 526 + Mod+9 { focus-workspace 9; } 527 + Mod+Ctrl+1 { move-column-to-workspace 1; } 528 + Mod+Ctrl+2 { move-column-to-workspace 2; } 529 + Mod+Ctrl+3 { move-column-to-workspace 3; } 530 + Mod+Ctrl+4 { move-column-to-workspace 4; } 531 + Mod+Ctrl+5 { move-column-to-workspace 5; } 532 + Mod+Ctrl+6 { move-column-to-workspace 6; } 533 + Mod+Ctrl+7 { move-column-to-workspace 7; } 534 + Mod+Ctrl+8 { move-column-to-workspace 8; } 535 + Mod+Ctrl+9 { move-column-to-workspace 9; } 536 + 537 + // Alternatively, there are commands to move just a single window: 538 + // Mod+Ctrl+1 { move-window-to-workspace 1; } 539 + 540 + // Switches focus between the current and the previous workspace. 541 + // Mod+Tab { focus-workspace-previous; } 542 + 543 + // The following binds move the focused window in and out of a column. 544 + // If the window is alone, they will consume it into the nearby column to the side. 545 + // If the window is already in a column, they will expel it out. 546 + Mod+BracketLeft { consume-or-expel-window-left; } 547 + Mod+BracketRight { consume-or-expel-window-right; } 548 + 549 + // Consume one window from the right to the bottom of the focused column. 550 + Mod+Comma { consume-window-into-column; } 551 + // Expel the bottom window from the focused column to the right. 552 + Mod+Period { expel-window-from-column; } 553 + 554 + Mod+R { switch-preset-column-width; } 555 + // Cycling through the presets in reverse order is also possible. 556 + // Mod+R { switch-preset-column-width-back; } 557 + Mod+Shift+R { switch-preset-window-height; } 558 + Mod+Ctrl+R { reset-window-height; } 559 + Mod+F { maximize-column; } 560 + Mod+Shift+F { fullscreen-window; } 561 + 562 + // Expand the focused column to space not taken up by other fully visible columns. 563 + // Makes the column "fill the rest of the space". 564 + Mod+Ctrl+F { expand-column-to-available-width; } 565 + 566 + Mod+C { center-column; } 567 + 568 + // Center all fully visible columns on screen. 569 + Mod+Ctrl+C { center-visible-columns; } 570 + 571 + // Finer width adjustments. 572 + // This command can also: 573 + // * set width in pixels: "1000" 574 + // * adjust width in pixels: "-5" or "+5" 575 + // * set width as a percentage of screen width: "25%" 576 + // * adjust width as a percentage of screen width: "-10%" or "+10%" 577 + // Pixel sizes use logical, or scaled, pixels. I.e. on an output with scale 2.0, 578 + // set-column-width "100" will make the column occupy 200 physical screen pixels. 579 + Mod+Minus { set-column-width "-10%"; } 580 + Mod+Equal { set-column-width "+10%"; } 581 + 582 + // Finer height adjustments when in column with other windows. 583 + Mod+Shift+Minus { set-window-height "-10%"; } 584 + Mod+Shift+Equal { set-window-height "+10%"; } 585 + 586 + // Move the focused window between the floating and the tiling layout. 587 + Mod+N hotkey-overlay-title="Toggle Window Floating" { toggle-window-floating; } 588 + Mod+Shift+N hotkey-overlay-title="Switch Focus Between Floating and Tiling" { switch-focus-between-floating-and-tiling; } 589 + 590 + // Toggle tabbed column display mode. 591 + // Windows in this column will appear as vertical tabs, 592 + // rather than stacked on top of each other. 593 + Mod+W { toggle-column-tabbed-display; } 594 + 595 + // Actions to switch layouts. 596 + // Note: if you uncomment these, make sure you do NOT have 597 + // a matching layout switch hotkey configured in xkb options above. 598 + // Having both at once on the same hotkey will break the switching, 599 + // since it will switch twice upon pressing the hotkey (once by xkb, once by niri). 600 + // Mod+Space { switch-layout "next"; } 601 + // Mod+Shift+Space { switch-layout "prev"; } 602 + 603 + Print { screenshot; } 604 + Ctrl+Print { screenshot-screen; } 605 + Alt+Print { screenshot-window; } 606 + 607 + // Applications such as remote-desktop clients and software KVM switches may 608 + // request that niri stops processing the keyboard shortcuts defined here 609 + // so they may, for example, forward the key presses as-is to a remote machine. 610 + // It's a good idea to bind an escape hatch to toggle the inhibitor, 611 + // so a buggy application can't hold your session hostage. 612 + // 613 + // The allow-inhibiting=false property can be applied to other binds as well, 614 + // which ensures niri always processes them, even when an inhibitor is active. 615 + Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; } 616 + 617 + // The quit action will show a confirmation dialog to avoid accidental exits. 618 + Mod+Shift+E { quit; } 619 + Ctrl+Alt+Delete { quit; } 620 + 621 + // Powers off the monitors. To turn them back on, do any input like 622 + // moving the mouse or pressing any other key. 623 + Mod+Shift+P { power-off-monitors; } 624 + }
+6
modules/home-manager/niri/default.nix
··· 1 + { ... }: 2 + { 3 + programs.niri = { 4 + config = builtins.readFile ./config.kdl; 5 + }; 6 + }
+319
modules/home-manager/noctalia/default.nix
··· 1 + { ... }: 2 + { 3 + programs.noctalia-shell = { 4 + enable = true; 5 + settings = { 6 + settingsVersion = 0; 7 + bar = { 8 + barType = "simple"; 9 + position = "left"; 10 + density = "spacious"; 11 + showOutline = false; 12 + showCapsule = true; 13 + capsuleOpacity = 0.8; 14 + fontScale = 1; 15 + widgetSpacing = 6; 16 + contentPadding = 2; 17 + outerCorners = true; 18 + widgets = { 19 + left = [ 20 + { 21 + id = "Launcher"; 22 + icon = "circle"; 23 + } 24 + # { 25 + # id = "SystemMonitor"; 26 + # } 27 + ]; 28 + center = [ 29 + { 30 + id = "Workspace"; 31 + fontWeight = "semibold"; 32 + } 33 + # { 34 + # id = "ActiveWindow"; 35 + # } 36 + ]; 37 + right = [ 38 + # { 39 + # id = "Volume"; 40 + # } 41 + # { 42 + # id = "Brightness"; 43 + # } 44 + { 45 + id = "Tray"; 46 + colorizeIcons = true; 47 + drawerEnabled = false; 48 + } 49 + { 50 + id = "MediaMini"; 51 + showArtistFirst = false; 52 + showProgressRing = true; 53 + showVisualizer = false; 54 + } 55 + { 56 + id = "Clock"; 57 + formatVertical = "H mm"; 58 + } 59 + { 60 + id = "Battery"; 61 + displayMode = "icon-only"; 62 + showNoctaliaPerformance = true; 63 + showPowerProfiles = true; 64 + } 65 + { 66 + id = "NotificationHistory"; 67 + } 68 + { 69 + id = "ControlCenter"; 70 + icon = "adjustments"; 71 + } 72 + ]; 73 + }; 74 + }; 75 + general = { 76 + dimmerOpacity = 0; 77 + lockOnSuspend = true; 78 + enableShadows = false; 79 + enableBlurBehind = false; 80 + telemetryEnabled = true; 81 + passwordChars = false; 82 + autoStartAuth = true; 83 + allowPasswordWithFprintd = false; 84 + reverseScroll = false; 85 + smoothScrollEnabled = true; 86 + 87 + animationSpeed = 2; 88 + animationDisabled = false; 89 + 90 + compactLockScreen = false; 91 + lockScreenAnimations = true; 92 + showSessionButtonsOnLockScreen = true; 93 + showHibernateOnLockScreen = true; 94 + enableLockScreenMediaControls = true; 95 + enableLockScreenCountdown = true; 96 + lockScreenCountdownDuration = 10000; 97 + lockScreenBlur = 0; 98 + lockScreenTint = 0; 99 + }; 100 + ui = { 101 + fontDefault = "Inter Variable"; 102 + fontFixed = "Maple Mono"; 103 + fontDefaultScale = 1; 104 + fontFixedScale = 1; 105 + panelsAttachedToBar = true; 106 + settingsPanelMode = "attached"; 107 + settingsPanelSideBarCardStyle = true; 108 + panelBackgroundOpacity = 1; 109 + translucentWidgets = false; 110 + }; 111 + location = { 112 + name = "Edmonton"; 113 + weatherEnabled = true; 114 + weatherShowEffects = true; 115 + weatherTaliaMascotAlways = false; 116 + useFahrenheit = false; 117 + use12hourFormat = false; 118 + showWeekNumberInCalendar = false; 119 + showCalendarEvents = true; 120 + showCalendarWeather = true; 121 + analogClockInCalendar = true; 122 + firstDayOfWeek = -1; 123 + hideWeatherTimezone = false; 124 + hideWeatherCityName = false; 125 + autoLocate = true; 126 + }; 127 + calendar = { 128 + cards = [ 129 + { 130 + enabled = true; 131 + id = "calendar-header-card"; 132 + } 133 + { 134 + enabled = true; 135 + id = "calendar-month-card"; 136 + } 137 + { 138 + enabled = true; 139 + id = "weather-card"; 140 + } 141 + ]; 142 + }; 143 + wallpaper = { 144 + enabled = true; 145 + overviewEnabled = true; 146 + fillMode = "crop"; 147 + transitionType = [ 148 + "fade" 149 + ]; 150 + panelPosition = "follow_bar"; 151 + overviewBlur = 1; 152 + overviewTint = 0.5; 153 + sortOrder = "name"; 154 + }; 155 + appLauncher = { 156 + enableClipboardHistory = true; 157 + position = "center"; 158 + viewMode = "grid"; 159 + showCategories = true; 160 + iconMode = "tabler"; 161 + density = "default"; 162 + }; 163 + controlCenter = { 164 + position = "close_to_bar_button"; 165 + diskPath = "/"; 166 + shortcuts = { 167 + left = [ 168 + { 169 + id = "AirplaneMode"; 170 + } 171 + { 172 + id = "Network"; 173 + } 174 + { 175 + id = "Bluetooth"; 176 + } 177 + { 178 + id = "WallpaperSelector"; 179 + } 180 + ]; 181 + right = [ 182 + # { 183 + # id = "Notifications"; 184 + # } 185 + { 186 + id = "PowerProfile"; 187 + } 188 + { 189 + id = "KeepAwake"; 190 + } 191 + { 192 + id = "DarkMode"; 193 + } 194 + { 195 + id = "NightLight"; 196 + } 197 + ]; 198 + }; 199 + cards = [ 200 + { 201 + enabled = true; 202 + id = "profile-card"; 203 + } 204 + { 205 + enabled = true; 206 + id = "shortcuts-card"; 207 + } 208 + { 209 + enabled = true; 210 + id = "audio-card"; 211 + } 212 + { 213 + enabled = true; 214 + id = "brightness-card"; 215 + } 216 + { 217 + enabled = false; 218 + id = "weather-card"; 219 + } 220 + { 221 + enabled = false; 222 + id = "media-sysmon-card"; 223 + } 224 + ]; 225 + }; 226 + noctaliaPerformance = { 227 + disableWallpaper = true; 228 + disableDesktopWidgets = true; 229 + }; 230 + dock = { 231 + enabled = false; 232 + }; 233 + sessionMenu = { 234 + position = "center"; 235 + largeButtonsStyle = false; 236 + showHeader = false; 237 + countdownDuration = 3000; 238 + }; 239 + notifications = { 240 + enabled = true; 241 + density = "default"; 242 + location = "top_right"; 243 + backgroundOpacity = 0.95; 244 + lowUrgencyDuration = 4; 245 + normalUrgencyDuration = 10; 246 + criticalUrgencyDuration = 20; 247 + saveToHistory = { 248 + low = true; 249 + normal = true; 250 + critical = true; 251 + }; 252 + enableMediaToast = false; 253 + enableKeyboardLayoutToast = true; 254 + enableBatteryToast = true; 255 + }; 256 + osd = { 257 + backgroundOpacity = 0.95; 258 + }; 259 + audio = { 260 + visualizerType = "none"; 261 + }; 262 + colorSchemes = { 263 + useWallpaperColors = true; 264 + # darkMode = false; 265 + schedulingMode = "location"; 266 + manualSunrise = "06:30"; 267 + manualSunset = "18:30"; 268 + generationMethod = "tonal-spot"; 269 + }; 270 + nightLight = { 271 + enabled = true; 272 + forced = false; 273 + autoSchedule = true; 274 + nightTemp = "1700"; 275 + dayTemp = "6500"; 276 + manualSunrise = "06:30"; 277 + manualSunset = "18:30"; 278 + }; 279 + }; 280 + /* 281 + colors = { 282 + # Google Light 283 + mError = "#b3261e"; 284 + mOnError = "#fff"; 285 + mOnPrimary = "#fff"; 286 + mOnSecondary = "#fff"; 287 + mOnSurface = "#1f1f1f"; 288 + mOnSurfaceVariant = "#444746"; 289 + mOnTertiary = "#fff"; 290 + mOnHover = "#1f1f1f"; 291 + mOutline = "#747775"; 292 + mPrimary = "#0b57d0"; 293 + mSecondary = "#00639b"; 294 + mShadow = "#000000"; 295 + mSurface = "#fff"; 296 + mHover = "#e1e3e1"; 297 + mSurfaceVariant = "#f0f4f9"; 298 + mTertiary = "#146c2e"; 299 + # Google Dark 300 + mError = "#f2b8b5"; 301 + mOnError = "#601410"; 302 + mOnPrimary = "#062e6f"; 303 + mOnSecondary = "#035"; 304 + mOnSurface = "#e3e3e3"; 305 + mOnSurfaceVariant = "#c4c7c5"; 306 + mOnTertiary = "#0a3818"; 307 + mOnHover = "#e3e3e3"; 308 + mOutline = "#8e918f"; 309 + mPrimary = "#a8c7fa"; 310 + mSecondary = "#7fcfff"; 311 + mShadow = "#000000"; 312 + mSurface = "#131314"; 313 + mHover = "#37393b"; 314 + mSurfaceVariant = "#1e1f20"; 315 + mTertiary = "#6dd58c"; 316 + }; 317 + */ 318 + }; 319 + }
+2 -1
consumers/ryuganhana/configuration.nix
··· 9 9 [ # Include the results of the hardware scan. 10 10 ./hardware-configuration.nix 11 11 ../../modules/base.nix 12 - ../../modules/plasma.nix 12 + # ../../modules/plasma.nix 13 + ../../modules/niri.nix 13 14 ]; 14 15 15 16 boot.initrd.luks.devices."luks-baea4c7c-6d01-429d-9ef3-18724a33dc5f".device = "/dev/disk/by-uuid/baea4c7c-6d01-429d-9ef3-18724a33dc5f";

History

4 rounds 0 comments
sign up or login to add to the discussion
16 commits
expand
feat(flake): add niri and noctalia flake inputs
feat(modules): add niri window manager module
feat(home-manager): add niri configuration
feat(home-manager): add noctalia shell
feat(consumers): switch ryuganhana to niri
fix(flake): pass inputs to specialArgs
feat(wm): disable shell blur and transparency
fix(home-manager/noctalia): pass default font settings
fix(home-manager/noctalia): disable blur behind
feat(home-manager/noctalia): set animation speed to 2
feat(home-manager/niri): add hotkey labels
feat(home-manager/niri): re-enable floating/tiling hotkeys
chore(flake): remove accidental stylix import
chore(modules/plasma): revert accidental file hit
chore(modules/plasma): properly revert file hit this time
chore(modules/plasma): third try reverting the accidental file hit
merge conflicts detected
expand
  • flake.lock:138
  • flake.nix:17
expand 0 comments
15 commits
expand
feat(flake): add niri and noctalia flake inputs
feat(modules): add niri window manager module
feat(home-manager): add niri configuration
feat(home-manager): add noctalia shell
feat(consumers): switch ryuganhana to niri
fix(flake): pass inputs to specialArgs
feat(wm): disable shell blur and transparency
fix(home-manager/noctalia): pass default font settings
fix(home-manager/noctalia): disable blur behind
feat(home-manager/noctalia): set animation speed to 2
feat(home-manager/niri): add hotkey labels
feat(home-manager/niri): re-enable floating/tiling hotkeys
chore(flake): remove accidental stylix import
chore(modules/plasma): revert accidental file hit
chore(modules/plasma): properly revert file hit this time
expand 0 comments
14 commits
expand
feat(flake): add niri and noctalia flake inputs
feat(modules): add niri window manager module
feat(home-manager): add niri configuration
feat(home-manager): add noctalia shell
feat(consumers): switch ryuganhana to niri
fix(flake): pass inputs to specialArgs
feat(wm): disable shell blur and transparency
fix(home-manager/noctalia): pass default font settings
fix(home-manager/noctalia): disable blur behind
feat(home-manager/noctalia): set animation speed to 2
feat(home-manager/niri): add hotkey labels
feat(home-manager/niri): re-enable floating/tiling hotkeys
chore(flake): remove accidental stylix import
chore(modules/plasma): revert accidental file hit
expand 0 comments
12 commits
expand
feat(flake): add niri and noctalia flake inputs
feat(modules): add niri window manager module
feat(home-manager): add niri configuration
feat(home-manager): add noctalia shell
feat(consumers): switch ryuganhana to niri
fix(flake): pass inputs to specialArgs
feat(wm): disable shell blur and transparency
fix(home-manager/noctalia): pass default font settings
fix(home-manager/noctalia): disable blur behind
feat(home-manager/noctalia): set animation speed to 2
feat(home-manager/niri): add hotkey labels
feat(home-manager/niri): re-enable floating/tiling hotkeys
expand 0 comments