diff options
| author | triethyl <triethylammonium@pm.me> | 2026-01-12 20:33:14 -0500 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2026-01-12 20:33:14 -0500 |
| commit | d1421fcf87590cf022f453ea582c51c07678cd55 (patch) | |
| tree | c8ed83321eed8d54188c6eb0af383f5b5e6d04a1 | |
| parent | 12e152e6011bad1288df5fab822fb14873c49fcc (diff) | |
niri: added new monitor, night mode, and made desktop fade in on startup
| -rw-r--r-- | docs/todo.md | 1 | ||||
| -rw-r--r-- | home-manager/features/gui/desktops/niri/parts/niri/default.nix | 16 | ||||
| -rw-r--r-- | home-manager/features/gui/desktops/niri/parts/scrap-maker.nix | 22 | ||||
| -rw-r--r-- | home-manager/features/gui/desktops/niri/parts/sunsetr.nix | 12 | ||||
| -rw-r--r-- | home-manager/features/gui/desktops/niri/parts/wluma.nix | 11 |
5 files changed, 28 insertions, 34 deletions
diff --git a/docs/todo.md b/docs/todo.md index e6b5cfa..eb4b3a5 100644 --- a/docs/todo.md +++ b/docs/todo.md @@ -14,6 +14,7 @@ - Set niri background to full black and do a screen transition at startup to fade in the wallpaper and bar - replace plymouth loading screen - replace sddm with greetd +- add waypaper to niri ## Eventual diff --git a/home-manager/features/gui/desktops/niri/parts/niri/default.nix b/home-manager/features/gui/desktops/niri/parts/niri/default.nix index 3d6920f..4842d75 100644 --- a/home-manager/features/gui/desktops/niri/parts/niri/default.nix +++ b/home-manager/features/gui/desktops/niri/parts/niri/default.nix @@ -16,18 +16,31 @@ in { package = inputs.niri.packages.${pkgs.stdenv.hostPlatform.system}.niri-unstable; settings = { outputs = { + # Bedroom TV "Samsung Electric Company SAMSUNG 0x00000001" = { enable = true; scale = 1.5; }; + + # Main Monitor + "Samsung Electric Company LS32FG51x H9TY902576" = { + enable = true; + scale = 1.2; + }; }; spawn-at-startup = [ + # Fade other parts in + {command = ["niri" "msg" "action" "do-screen-transition" "-d" "3000"];} + # Status Bar {command = ["waybar"];} # Wallpaper Daemon {command = ["swww-init"];} + # Sunsetr for night mode + {command = ["sunsetr"];} + # Allows x apps to be used in wayland. {command = ["${lib.getExe pkgs.xwayland-satellite}"];} @@ -67,7 +80,8 @@ in { }; prefer-no-csd = true; overview = { - backdrop-color = "#${aes.scheme.base01}"; + # backdrop-color = "#${aes.scheme.base01}"; + backdrop-color = "#000000"; # Fade from black to wallpaper at startup }; layout = { background-color = "transparent"; diff --git a/home-manager/features/gui/desktops/niri/parts/scrap-maker.nix b/home-manager/features/gui/desktops/niri/parts/scrap-maker.nix deleted file mode 100644 index 19cce56..0000000 --- a/home-manager/features/gui/desktops/niri/parts/scrap-maker.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ - config, - lib, - pkgs, - ... -}: let - cfg = config.features.gui.desktops.niri.parts.scrap-maker; - - scrapDirectory = "~/Sync/vault/scraps"; -in { - options.features.gui.desktops.niri.parts.scrap-maker.enable = lib.mkEnableOption "scrap maker"; - config = lib.mkIf cfg.enable { - home.packages = [ - (pkgs.writers.writeNuBin "scrap-maker" '' - let scrap_text = fuzzel -d -l 0 -p "" -x 8 -y 8 -w 40 - let scrap_name = date now | format date "%s" - let scrap_path = ("${scrapDirectory}" + "/" + $scrap_name + ".md") | path expand - $scrap_text | save $scrap_path - '') - ]; - }; -} diff --git a/home-manager/features/gui/desktops/niri/parts/sunsetr.nix b/home-manager/features/gui/desktops/niri/parts/sunsetr.nix new file mode 100644 index 0000000..5873947 --- /dev/null +++ b/home-manager/features/gui/desktops/niri/parts/sunsetr.nix @@ -0,0 +1,12 @@ +{ config, pkgs, lib, ... }: let + cfg = config.features.gui.desktops.niri.parts.sunsetr; +in { + options.features.gui.desktops.niri.parts.sunsetr.enable = lib.mkEnableOption "sunsetr"; + config = lib.mkIf cfg.enable { + home.packages = [ pkgs.sunsetr ]; + # home.file."sunsetr-config" = { + # target = ".config/sunsetr/sunsetr.toml"; + # source = pkgs.writers.writeTOML {}; + # }; + }; +} diff --git a/home-manager/features/gui/desktops/niri/parts/wluma.nix b/home-manager/features/gui/desktops/niri/parts/wluma.nix deleted file mode 100644 index 21b9edc..0000000 --- a/home-manager/features/gui/desktops/niri/parts/wluma.nix +++ /dev/null @@ -1,11 +0,0 @@ -{ config, lib, ... }: let - cfg = config.features.gui.desktops.niri.parts.wluma; -in { - options.features.gui.desktops.niri.parts.wluma.enable = lib.mkEnableOption "wluma"; - config = lib.mkIf cfg.enable { - services.wluma = { - enable = true; - systemd.enable = true; - }; - }; -} |
