From 9557e5e12f8fffc29dc7408afee1677c4663d83a Mon Sep 17 00:00:00 2001 From: Yaroslav de la Peña Smirnov Date: Fri, 19 Dec 2025 15:43:33 +0300 Subject: niri: config changes * Mod+F for maximizing window, Mod+Ctrl+F for maximizing column * Include "local" config, for things that are custom to each of my devices. --- dotfiles/.config/niri/config.kdl | 58 +++++----------------------------------- 1 file changed, 6 insertions(+), 52 deletions(-) (limited to 'dotfiles/.config/niri/config.kdl') diff --git a/dotfiles/.config/niri/config.kdl b/dotfiles/.config/niri/config.kdl index 5a007f5..bfec98b 100644 --- a/dotfiles/.config/niri/config.kdl +++ b/dotfiles/.config/niri/config.kdl @@ -65,54 +65,8 @@ cursor { hide-when-typing } - -// 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://github.com/YaLTeR/niri/wiki/Configuration:-Outputs -// Remember to uncomment the node by removing "/-"! -output "eDP-1" { - // Uncomment this line to disable this output. - // off - - // background-color "#000000" - - // 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 - - // 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=0 y=800 -} - -output "DP-1" { - // background-color "#000000" - position x=1536 y=0 - //mode "2560x1440@165.000" -} - overview { - zoom 0.4 + zoom 0.33 backdrop-color "#00807F" } @@ -121,7 +75,7 @@ overview { // https://github.com/YaLTeR/niri/wiki/Configuration:-Layout layout { // Set gaps around windows in logical pixels. - gaps 5 + gaps 10 background-color "#00000000" @@ -413,9 +367,6 @@ spawn-at-startup "gsettings" "set" "org.gnome.desktop.interface" "color-scheme" spawn-at-startup "swaybg" "-i" "/home/yaroslav/.config/wall1.png" "-m" "fill" -// Just a nice jingle on startup because why not -spawn-at-startup "canberra-gtk-play" "-i" "Oxygen-Sys-App-Positive" - binds { // Keys consist of modifiers separated by + signs, followed by an XKB key name // in the end. To find an XKB name for a particular key, you may use a program @@ -631,8 +582,9 @@ binds { Mod+R { switch-preset-column-width; } Mod+Shift+R { switch-preset-window-height; } Mod+Ctrl+R { reset-window-height; } - Mod+F { maximize-column; } + Mod+F { maximize-window-to-edges; } Mod+Shift+F { fullscreen-window; } + Mod+Ctrl+F { maximize-column; } Mod+C { center-column; } // Finer width adjustments. @@ -713,3 +665,5 @@ binds { switch-events { lid-close { spawn "swaysession" "suspend"; } } + +include "local.kdl" -- cgit v1.2.3