From 4373754087abe193c26f59dab08429a20ab85b23 Mon Sep 17 00:00:00 2001 From: serenity-F Date: Fri, 26 Dec 2025 21:02:01 +1000 Subject: [PATCH] niri --- core/niri.kdl | 100 +++++++++++++------------------------------------- 1 file changed, 25 insertions(+), 75 deletions(-) diff --git a/core/niri.kdl b/core/niri.kdl index 873e681..b563f5d 100644 --- a/core/niri.kdl +++ b/core/niri.kdl @@ -20,7 +20,6 @@ input { // from org.freedesktop.locale1. You can control these using // localectl set-x11-keymap. } - // Enable numlock on startup, omitting this setting disables it. numlock } @@ -69,41 +68,28 @@ input { focus-follows-mouse max-scroll-amount="0%" } -// You can configure outputs by their name, which you can find -// by running `niri msg outputs` while inside a niri instance. -// The built-in laptop monitor is usually called "eDP-1". -// Find more information on the wiki: -// https://yalter.github.io/niri/Configuration:-Outputs -// Remember to uncomment the node by removing "/-"! -/-output "eDP-1" { - // Uncomment this line to disable this output. - // off - // Resolution and, optionally, refresh rate of the output. - // The format is "x" or "x@". - // If the refresh rate is omitted, niri will pick the highest refresh rate - // for the resolution. - // If the mode is omitted altogether or is invalid, niri will pick one automatically. - // Run `niri msg outputs` while inside a niri instance to list all outputs and their modes. - mode "1920x1080@120.030" - // You can use integer or fractional scale, for example use 1.5 for 150% scale. - scale 2 +output "DP-4" { + mode "3440x1440@74.924" + scale 1.0 + position x=1920 y=0 + variable-refresh-rate on-demand=true + focus-at-startup + hot-corners { + top-left + } + layout { + } +} - // Transform allows to rotate the output counter-clockwise, valid values are: - // normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270. - transform "normal" - - // Position of the output in the global coordinate space. - // This affects directional monitor actions like "focus-monitor-left", and cursor movement. - // The cursor can only move between directly adjacent outputs. - // Output scale and rotation has to be taken into account for positioning: - // outputs are sized in logical, or scaled, pixels. - // For example, a 3840×2160 output with scale 2.0 will have a logical size of 1920×1080, - // so to put another output directly adjacent to it on the right, set its x to 1920. - // If the position is unset or results in an overlap, the output is instead placed - // automatically. - position x=1280 y=0 +output "HDMI-A-2" { + mode "1920x1080@60" + scale 1.0 + position x=0 y=360 + hot-corners { + top-left + } } // Settings that influence how windows are positioned and sized. @@ -153,63 +139,30 @@ layout { // Alternatively, you can override it with a window rule called // `draw-border-with-background`. + prefer-no-csd + // You can change how the focus ring looks. focus-ring { // Uncomment this line to disable the focus ring. // off - - // How many logical pixels the ring extends out from the windows. width 2 - - // Colors can be set in a variety of ways: - // - CSS named colors: "red" - // - RGB hex: "#rgb", "#rgba", "#rrggbb", "#rrggbbaa" - // - CSS-like notation: "rgb(255, 127, 0)", rgba(), hsl() and a few others. - - // Color of the ring on the active monitor. active-color "#7fc8ff" - - // Color of the ring on inactive monitors. - // - // The focus ring only draws around the active window, so the only place - // where you can see its inactive-color is on other monitors. inactive-color "#505050" - + active-gradient from="#00cdff" to="#80c8ff" angle=45 + inactive-gradient from="#705050" to="#808080" angle=45 relative-to="workspace-view" // You can also use gradients. They take precedence over solid colors. // Gradients are rendered the same as CSS linear-gradient(angle, from, to). // The angle is the same as in linear-gradient, and is optional, // defaulting to 180 (top-to-bottom gradient). // You can use any CSS linear-gradient tool on the web to set these up. // Changing the color space is also supported, check the wiki for more info. - // - active-gradient from="#00cdff" to="#80c8ff" angle=45 - // You can also color the gradient relative to the entire view // of the workspace, rather than relative to just the window itself. // To do that, set relative-to="workspace-view". - // - inactive-gradient from="#705050" to="#808080" angle=45 relative-to="workspace-view" } - // You can also add a border. It's similar to the focus ring, but always visible. border { - // The settings are the same as for the focus ring. - // If you enable the border, you probably want to disable the focus ring. off - - width 4 - active-color "#ffc87f" - inactive-color "#505050" - - // Color of the border around windows that request your attention. - urgent-color "#9b0000" - - // Gradients can use a few different interpolation color spaces. - // For example, this is a pastel rainbow gradient via in="oklch longer hue". - // - // active-gradient from="#e5989b" to="#ffb4a2" angle=45 relative-to="workspace-view" in="oklch longer hue" - - // inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view" } // You can enable drop shadows for windows. @@ -274,8 +227,7 @@ spawn-at-startup "waybar" // spawn-sh-at-startup "qs -c ~/source/qs/MyAwesomeShell" hotkey-overlay { - // Uncomment this line to disable the "Important Hotkeys" pop-up at startup. - // skip-at-startup + skip-at-startup } // Uncomment this line to ask the clients to omit their client-side decorations if possible. @@ -301,7 +253,7 @@ animations { // off // Slow down all animations by this factor. Values below 1 speed them up instead. - // slowdown 3.0 + slowdown 1.25 } // Window rules let you adjust behavior for individual windows. @@ -628,5 +580,3 @@ binds { // moving the mouse or pressing any other key. Mod+Shift+P { power-off-monitors; } } - -prefer-no-csd