From 266a16508659a8a81a91cc3ec774be15f89d16b2 Mon Sep 17 00:00:00 2001 From: Rosa Date: Mon, 22 Dec 2025 18:05:22 -0500 Subject: setup niri --- common/greetd.nix | 2 +- hosts/limbo/default.nix | 1 + user/default.nix | 1 + user/git.nix | 13 +++++++++++++ user/wm/default.nix | 2 ++ user/wm/foot.nix | 46 ++++++++++++++++++++++++++++------------------ user/wm/fuzzel.nix | 32 ++++++++++++++++++++++++++++++++ user/wm/librewolf.nix | 16 ++++++++++++---- user/wm/niri/config.kdl | 27 ++++++++++++++++++--------- user/wm/niri/default.nix | 7 ++++++- 10 files changed, 114 insertions(+), 33 deletions(-) create mode 100644 user/git.nix create mode 100644 user/wm/fuzzel.nix diff --git a/common/greetd.nix b/common/greetd.nix index 66abd6c..47f5f81 100644 --- a/common/greetd.nix +++ b/common/greetd.nix @@ -4,7 +4,7 @@ enable = true; settings = { default_session = { - command = "${pkgs.tuigreet}/bin/tuigreet --time --cmd start-hyprland"; + command = "${pkgs.tuigreet}/bin/tuigreet --time"; user = "greeter"; }; }; diff --git a/hosts/limbo/default.nix b/hosts/limbo/default.nix index 6312fb9..b827344 100644 --- a/hosts/limbo/default.nix +++ b/hosts/limbo/default.nix @@ -13,6 +13,7 @@ useGlobalPkgs = true; users.rosa = { imports = [ + ../../user ../../user/wm ]; diff --git a/user/default.nix b/user/default.nix index 9de969c..8e7e152 100644 --- a/user/default.nix +++ b/user/default.nix @@ -1,6 +1,7 @@ { config, ... }: { imports = [ + ./git.nix ./kakoune ./zsh.nix ]; diff --git a/user/git.nix b/user/git.nix new file mode 100644 index 0000000..65b4b7c --- /dev/null +++ b/user/git.nix @@ -0,0 +1,13 @@ +{ config, ... }: +{ + programs.git = { + enable = true; + settings = { + init.defaultBranch = "main"; + user = { + email = "rosaontheweb@proton.me"; + name = "Rosa"; + }; + }; + }; +} diff --git a/user/wm/default.nix b/user/wm/default.nix index e735011..0d60b49 100644 --- a/user/wm/default.nix +++ b/user/wm/default.nix @@ -2,12 +2,14 @@ { imports = [ ./foot.nix + ./fuzzel.nix ./librewolf.nix ./niri ]; fonts.fontconfig.enable = true; home.packages = with pkgs; [ + brightnessctl fira-code ]; } diff --git a/user/wm/foot.nix b/user/wm/foot.nix index 02e1ae6..cfccffd 100644 --- a/user/wm/foot.nix +++ b/user/wm/foot.nix @@ -5,24 +5,34 @@ settings = { bell.urgent = "yes"; colors = { - background = "2e3440"; - bright0 = "4c566a"; - bright1 = "bf616a"; - bright2 = "a3be8c"; - bright3 = "ebcb8b"; - bright4 = "81a1c1"; - bright5 = "b48ead"; - bright6 = "8fbcbb"; - bright7 = "eceff4"; - foreground = "eceff4"; - regular0 = "3b4252"; - regular1 = "bf616a"; - regular2 = "a3be8c"; - regular3 = "ebcb8b"; - regular4 = "5e81ac"; - regular5 = "b48ead"; - regular6 = "88c0d0"; - regular7 = "e5e9f0"; + alpha = 0.75; + background = "1e1e2e"; + bright0 = "585b70"; + bright1 = "f38ba8"; + bright2 = "a6e3a1"; + bright3 = "f9e2af"; + bright4 = "89b4fa"; + bright5 = "f5c2e7"; + bright6 = "94e2d5"; + bright7 = "a6adc8"; + "16" = "fab387"; + "17" = "f5e0dc"; + cursor = "11111b f5e0dc"; + foreground = "cdd6f4"; + jump-labels = "11111b fab387"; + regular0 = "45475a"; + regular1 = "f38ba8"; + regular2 = "a6e3a1"; + regular3 = "f9e2af"; + regular4 = "89b4fa"; + regular5 = "f5c2e7"; + regular6 = "94e2d5"; + regular7 = "bac2de"; + search-box-match = "cdd6f4 313244"; + search-box-no-match = "11111b f38ba8"; + selection-background = "414356"; + selection-foreground = "cdd6f4"; + urls = "89b4fa"; }; main = { diff --git a/user/wm/fuzzel.nix b/user/wm/fuzzel.nix new file mode 100644 index 0000000..1063f04 --- /dev/null +++ b/user/wm/fuzzel.nix @@ -0,0 +1,32 @@ +{ config, ... }: +{ + programs.fuzzel = { + enable = true; + settings = { + border = { + radius = 0; + width = 2; + }; + + colors = { + background = "1e1e2eff"; + border = "f5c2e7ff"; + counter = "7f849cff"; + input = "cdd6f4ff"; + match = "f5c2e7ff"; + placeholder = "7f849cff"; + prompt = "bac2deff"; + selection = "585b70ff"; + selection-match = "f5c2e7ff"; + selection-text = "cdd6f4ff"; + text = "cdd6f4ff"; + }; + + main = { + font = "Fira Code:size=11"; + terminal = "foot {cmd}"; + use-bold = "yes"; + }; + }; + }; +} diff --git a/user/wm/librewolf.nix b/user/wm/librewolf.nix index 29ddd47..ab353dd 100644 --- a/user/wm/librewolf.nix +++ b/user/wm/librewolf.nix @@ -1,15 +1,23 @@ -{ config, ... }: +{ config, lib, ... }: { programs.librewolf = { enable = true; profiles = { - default = { }; + default = { + settings = { + "browser.sessionstore.resume_from_crash" = false; + "browser.uidensity" = 1; + "sidebar.verticalTabs" = true; + "sidebar.visibility" = "hide-sidebar"; + }; + }; + noRFP = { id = 1; name = "RFP Disabled"; - settings = { + settings = lib.mkMerge [config.programs.librewolf.profiles.default.settings { "privacy.resistFingerprinting" = false; - }; + }]; }; }; }; diff --git a/user/wm/niri/config.kdl b/user/wm/niri/config.kdl index d48e2be..4e12c1c 100644 --- a/user/wm/niri/config.kdl +++ b/user/wm/niri/config.kdl @@ -1,5 +1,7 @@ binds { + Mod+Alt+Equal { set-window-height "+10%"; } Mod+Alt+L { spawn "swaylock"; } + Mod+Alt+Minus { set-window-height "-10%"; } Mod+Alt+Q { quit; } Mod+C { center-column; } Mod+Equal { set-column-width "+10%"; } @@ -94,22 +96,28 @@ layout { } default-column-display "tabbed" - default-column-width { proportion 0.5; } + default-column-width { proportion 0.5; } // window takes up whole display by default focus-ring { - active-gradient angle=45 from="#88c0d0" to="#8fbcbb" - inactive-color "#3b4252" - urgent-color "#d08770" + active-gradient angle=45 from="#f5c2e7" to="#f9e2af" relative-to="workspace-view" + inactive-color "#bac2de" + urgent-color "#f38ba8" width 2 } - gaps 4 + gaps 8 + preset-column-widths { + proportion 0.5; + proportion 0.66667; + proportion 1.0; + } + shadow { on } tab-indicator { - gap 1 - gaps-between-tabs 1 + gap 4 + gaps-between-tabs 4 hide-when-single-tab place-within-column position "left" @@ -125,7 +133,7 @@ output "eDP-1" { } overview { - backdrop-color "#2e3440" + backdrop-color "#1e1e2e" } prefer-no-csd @@ -133,4 +141,5 @@ recent-windows { off } -screenshot-path "~/Pictures/screenshots/%Y-%m-%d_%H.%M.%S" +screenshot-path "~/Pictures/screenshots/%Y-%m-%d_%H.%M.%S.png" +spawn-sh-at-startup "swaybg -i ~/Pictures/wallpaper.png" diff --git a/user/wm/niri/default.nix b/user/wm/niri/default.nix index 8f86581..22a487e 100644 --- a/user/wm/niri/default.nix +++ b/user/wm/niri/default.nix @@ -1,4 +1,9 @@ -{ config, ... }: +{ config, pkgs, ... }: { + #home.file."Pictures/wallpaper.png".source = ../wallpaper.jpeg; + home.packages = with pkgs; [ + swaybg + ]; + xdg.configFile."niri/config.kdl".text = builtins.readFile ./config.kdl; } -- cgit v1.3.1