This commit is contained in:
serenity-F 2025-12-26 21:02:01 +10:00
parent ee9f5dbf5b
commit 4373754087

View file

@ -20,7 +20,6 @@ input {
// from org.freedesktop.locale1. You can control these using // from org.freedesktop.locale1. You can control these using
// localectl set-x11-keymap. // localectl set-x11-keymap.
} }
// Enable numlock on startup, omitting this setting disables it. // Enable numlock on startup, omitting this setting disables it.
numlock numlock
} }
@ -69,41 +68,28 @@ input {
focus-follows-mouse max-scroll-amount="0%" 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 "<width>x<height>" or "<width>x<height>@<refresh rate>".
// 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. output "DP-4" {
scale 2 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: output "HDMI-A-2" {
// normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270. mode "1920x1080@60"
transform "normal" scale 1.0
position x=0 y=360
// Position of the output in the global coordinate space. hot-corners {
// This affects directional monitor actions like "focus-monitor-left", and cursor movement. top-left
// 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
} }
// Settings that influence how windows are positioned and sized. // Settings that influence how windows are positioned and sized.
@ -153,63 +139,30 @@ layout {
// Alternatively, you can override it with a window rule called // Alternatively, you can override it with a window rule called
// `draw-border-with-background`. // `draw-border-with-background`.
prefer-no-csd
// You can change how the focus ring looks. // You can change how the focus ring looks.
focus-ring { focus-ring {
// Uncomment this line to disable the focus ring. // Uncomment this line to disable the focus ring.
// off // off
// How many logical pixels the ring extends out from the windows.
width 2 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" 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" 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. // You can also use gradients. They take precedence over solid colors.
// Gradients are rendered the same as CSS linear-gradient(angle, from, to). // Gradients are rendered the same as CSS linear-gradient(angle, from, to).
// The angle is the same as in linear-gradient, and is optional, // The angle is the same as in linear-gradient, and is optional,
// defaulting to 180 (top-to-bottom gradient). // defaulting to 180 (top-to-bottom gradient).
// You can use any CSS linear-gradient tool on the web to set these up. // 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. // 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 // You can also color the gradient relative to the entire view
// of the workspace, rather than relative to just the window itself. // of the workspace, rather than relative to just the window itself.
// To do that, set relative-to="workspace-view". // 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 { 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 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. // You can enable drop shadows for windows.
@ -274,8 +227,7 @@ spawn-at-startup "waybar"
// spawn-sh-at-startup "qs -c ~/source/qs/MyAwesomeShell" // spawn-sh-at-startup "qs -c ~/source/qs/MyAwesomeShell"
hotkey-overlay { 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. // Uncomment this line to ask the clients to omit their client-side decorations if possible.
@ -301,7 +253,7 @@ animations {
// off // off
// Slow down all animations by this factor. Values below 1 speed them up instead. // 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. // Window rules let you adjust behavior for individual windows.
@ -628,5 +580,3 @@ binds {
// moving the mouse or pressing any other key. // moving the mouse or pressing any other key.
Mod+Shift+P { power-off-monitors; } Mod+Shift+P { power-off-monitors; }
} }
prefer-no-csd