From 3db35ea68b500b9cdb216af1260d26e2e1b94251 Mon Sep 17 00:00:00 2001 From: notgne2 Date: Fri, 10 Jul 2026 22:01:54 -0700 Subject: [PATCH] update niri config more --- flake.nix | 2 +- home-manager/modules/ezpcusr.nix | 178 +++++++++++++------------------ 2 files changed, 77 insertions(+), 103 deletions(-) diff --git a/flake.nix b/flake.nix index fc92bbe..5957bc2 100644 --- a/flake.nix +++ b/flake.nix @@ -17,7 +17,7 @@ url = "github:noctalia-dev/noctalia/cachix"; }; niri = { - url = "github:sodiboo/niri-flake"; + url = "github:epireyn/niri-flake"; }; nix-index-database = { diff --git a/home-manager/modules/ezpcusr.nix b/home-manager/modules/ezpcusr.nix index 7ef885f..f5d976a 100644 --- a/home-manager/modules/ezpcusr.nix +++ b/home-manager/modules/ezpcusr.nix @@ -102,8 +102,40 @@ in { enable = true; package = pkgs.niri-unstable; settings = { + blur = { + passes = 2; + offset = 3.0; + noise = 0.03; + saturation = 1.0; + }; + layer-rules = [ + { + matches = [{ namespace = "^noctalia-(bar-[^\"]+|notification|dock|panel|attached-panel|osd)$"; }]; + background-effect.xray = false; + } + { + matches = [{ namespace = "^noctalia-backdrop"; }]; + place-within-backdrop = true; + } + ]; window-rules = [ - {draw-border-with-background = false;} + { + draw-border-with-background = false; + geometry-corner-radius = { + bottom-left = 8.0; + bottom-right = 8.0; + top-left = 8.0; + top-right = 8.0; + }; + clip-to-geometry = true; + } + + { + background-effect = { + blur = true; + xray = false; + }; + } ]; prefer-no-csd = true; xwayland-satellite = { @@ -135,6 +167,8 @@ in { "Mod+c".action.spawn = ["noctalia" "msg" "panel-open" "clipboard"]; + "Mod+e".action.spawn = ["noctalia" "msg" "panel-open" "launcher" "/emo"]; + "Mod+Minus".action.spawn = ["noctalia" "msg" "volume-down"]; "Mod+Equal".action.spawn = ["noctalia" "msg" "volume-up"]; "XF86AudioLowerVolume".action.spawn = ["noctalia" "msg" "volume-down"]; @@ -203,36 +237,6 @@ in { "Mod+Control+Shift+Left".action = config.lib.niri.actions.move-window-to-monitor-left; "Mod+Control+Shift+Up".action = config.lib.niri.actions.move-window-to-monitor-up; "Mod+Control+Shift+Down".action = config.lib.niri.actions.move-window-to-monitor-down; - - # "$mod, left, hy3:movefocus, l" - # "$mod, right, hy3:movefocus, r" - # "$mod, up, hy3:movefocus, u" - # "$mod, down, hy3:movefocus, d" - # "$mod, h, hy3:movefocus, l" - # "$mod, j, hy3:movefocus, d" - # "$mod, k, hy3:movefocus, u" - # "$mod, l, hy3:movefocus, r" - - # "$mod SHIFT, left, hy3:movewindow, l" - # "$mod SHIFT, right, hy3:movewindow, r" - # "$mod SHIFT, up, hy3:movewindow, u" - # "$mod SHIFT, down, hy3:movewindow, d" - # "$mod SHIFT, h, hy3:movewindow, l" - # "$mod SHIFT, j, hy3:movewindow, d" - # "$mod SHIFT, k, hy3:movewindow, u" - # "$mod SHIFT, l, hy3:movewindow, r" - - # "$mod CTRL, left, resizeactive, -80 0" - # "$mod CTRL, right, resizeactive, 80 0" - # "$mod CTRL, up, resizeactive, 0 -80" - # "$mod CTRL, down, resizeactive, 0 80" - # "$mod CTRL, h, resizeactive, -80 0" - # "$mod CTRL, j, resizeactive, 0 80" - # "$mod CTRL, k, resizeactive, 0 -80" - # "$mod CTRL, l, resizeactive, 80 0" - - # "$mod, mouse_down, workspace, e-1" - # "$mod, mouse_up, workspace, e+1" } // ( # workspaces @@ -250,8 +254,6 @@ in { name = "Mod+Shift+${toString i}"; value = {action.move-window-to-workspace = i;}; } - # "$mod, code:1${toString i}, workspace, ${toString ws}" - # "$mod SHIFT, code:1${toString i}, movetoworkspace, ${toString ws}" ] ) 9) @@ -260,80 +262,52 @@ in { }; }; - programs.noctalia= { + programs.noctalia = { enable = true; settings = { - appLauncher = { - terminalCommand = "${config.programs.foot.package}/bin/foot"; - enableClipboardHistory = true; - }; - general = { - compactLockScreen = true; - }; - location = { - weatherEnabled = false; - use12hourFormat = true; - }; - colorSchemes = { - generateTemplatesForPredefined = false; - }; dock.enabled = false; - bar = { + + shell = { + time_format = "{:%-I:%M %p}"; + + setup_wizard_enabled = false; + + telemetry_enabled = false; + external_ip_enabled = false; + + niri_overview_type_to_launch_enabled = true; + + animation.speed = 2.0; + + panel = { + transparency_mode = "glass"; + }; + }; + + desktop_widgets = { + enabled = true; + }; + + location = { + auto_locate = true; + }; + + widget = { + media = { + max_length = 400; + title_scroll = "always"; + }; + audio_visualizer = { + show_when_idle = true; + }; + }; + + bar.main = { floating = false; - widgets = { - left = [ - { - id = "Workspace"; - } - { - id = "ActiveWindow"; - width = 200; - } - ]; - - center = [ - { - id = "MediaMini"; - maxWidth = 400; - scrollingMode = "always"; - showVisualizer = true; - } - { - id = "Clock"; - } - ]; - - right = [ - { - id = "Tray"; - } - { - id = "NotificationHistory"; - } - { - id = "Battery"; - displayMode = "alwaysShow"; - warningThreshold = 20; - } - { - id = "PowerProfile"; - } - { - id = "Volume"; - displayMode = "alwaysShow"; - } - { - id = "WiFi"; - } - { - id = "Bluetooth"; - } - { - id = "ControlCenter"; - } - ]; - }; + start = ["workspaces" "active_window"]; + center = ["media" "spacer" "clock" "spacer" "audio_visualizer"]; + end = ["tray" "notifications" "battery" "power_profile" "volume" "network" "bluetooth" "control-center"]; }; }; };