···11+// This config is in the KDL format: https://kdl.dev
22+// "/-" comments out the following node.
33+// Check the wiki for a full description of the configuration:
44+// https://yalter.github.io/niri/Configuration:-Introduction
55+66+// Input device configuration.
77+// Find the full list of options on the wiki:
88+// https://yalter.github.io/niri/Configuration:-Input
99+input {
1010+ keyboard {
1111+ xkb {
1212+ // You can set rules, model, layout, variant and options.
1313+ // For more information, see xkeyboard-config(7).
1414+1515+ // For example:
1616+ // layout "us,ru"
1717+ // options "grp:win_space_toggle,compose:ralt,ctrl:nocaps"
1818+1919+ // If this section is empty, niri will fetch xkb settings
2020+ // from org.freedesktop.locale1. You can control these using
2121+ // localectl set-x11-keymap.
2222+ }
2323+2424+ // Enable numlock on startup, omitting this setting disables it.
2525+ numlock
2626+ }
2727+2828+ // Next sections include libinput settings.
2929+ // Omitting settings disables them, or leaves them at their default values.
3030+ // All commented-out settings here are examples, not defaults.
3131+ touchpad {
3232+ // off
3333+ tap
3434+ // dwt
3535+ // dwtp
3636+ // drag false
3737+ // drag-lock
3838+ natural-scroll
3939+ // accel-speed 0.2
4040+ // accel-profile "flat"
4141+ // scroll-method "two-finger"
4242+ // disabled-on-external-mouse
4343+ }
4444+4545+ mouse {
4646+ // off
4747+ // natural-scroll
4848+ // accel-speed 0.2
4949+ // accel-profile "flat"
5050+ // scroll-method "no-scroll"
5151+ }
5252+5353+ trackpoint {
5454+ // off
5555+ // natural-scroll
5656+ // accel-speed 0.2
5757+ // accel-profile "flat"
5858+ // scroll-method "on-button-down"
5959+ // scroll-button 273
6060+ // scroll-button-lock
6161+ // middle-emulation
6262+ }
6363+6464+ // Uncomment this to make the mouse warp to the center of newly focused windows.
6565+ // warp-mouse-to-focus
6666+6767+ // Focus windows and outputs automatically when moving the mouse into them.
6868+ // Setting max-scroll-amount="0%" makes it work only on windows already fully on screen.
6969+ // focus-follows-mouse max-scroll-amount="0%"
7070+7171+ disable-power-key-handling
7272+}
7373+7474+// You can configure outputs by their name, which you can find
7575+// by running `niri msg outputs` while inside a niri instance.
7676+// The built-in laptop monitor is usually called "eDP-1".
7777+// Find more information on the wiki:
7878+// https://yalter.github.io/niri/Configuration:-Outputs
7979+// Remember to uncomment the node by removing "/-"!
8080+output "eDP-1" {
8181+ mode "1920x1200@59.950"
8282+8383+ // You can use integer or fractional scale, for example use 1.5 for 150% scale.
8484+ scale 1.5
8585+8686+ // Transform allows to rotate the output counter-clockwise, valid values are:
8787+ // normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270.
8888+ transform "normal"
8989+9090+ // Position of the output in the global coordinate space.
9191+ // This affects directional monitor actions like "focus-monitor-left", and cursor movement.
9292+ // The cursor can only move between directly adjacent outputs.
9393+ // Output scale and rotation has to be taken into account for positioning:
9494+ // outputs are sized in logical, or scaled, pixels.
9595+ // For example, a 3840×2160 output with scale 2.0 will have a logical size of 1920×1080,
9696+ // so to put another output directly adjacent to it on the right, set its x to 1920.
9797+ // If the position is unset or results in an overlap, the output is instead placed
9898+ // automatically.
9999+ position x=0 y=0
100100+}
101101+102102+// Settings that influence how windows are positioned and sized.
103103+// Find more information on the wiki:
104104+// https://yalter.github.io/niri/Configuration:-Layout
105105+layout {
106106+ // Set gaps around windows in logical pixels.
107107+ gaps 12
108108+109109+ // When to center a column when changing focus, options are:
110110+ // - "never", default behavior, focusing an off-screen column will keep at the left
111111+ // or right edge of the screen.
112112+ // - "always", the focused column will always be centered.
113113+ // - "on-overflow", focusing a column will center it if it doesn't fit
114114+ // together with the previously focused column.
115115+ center-focused-column "never"
116116+117117+ // You can customize the widths that "switch-preset-column-width" (Mod+R) toggles between.
118118+ preset-column-widths {
119119+ // Proportion sets the width as a fraction of the output width, taking gaps into account.
120120+ // For example, you can perfectly fit four windows sized "proportion 0.25" on an output.
121121+ // The default preset widths are 1/3, 1/2 and 2/3 of the output.
122122+ proportion 0.33333
123123+ proportion 0.5
124124+ proportion 0.66667
125125+126126+ // Fixed sets the width in logical pixels exactly.
127127+ // fixed 1920
128128+ }
129129+130130+ // You can also customize the heights that "switch-preset-window-height" (Mod+Shift+R) toggles between.
131131+ // preset-window-heights { }
132132+133133+ // You can change the default width of the new windows.
134134+ default-column-width { proportion 0.5; }
135135+ // If you leave the brackets empty, the windows themselves will decide their initial width.
136136+ // default-column-width {}
137137+138138+ // By default focus ring and border are rendered as a solid background rectangle
139139+ // behind windows. That is, they will show up through semitransparent windows.
140140+ // This is because windows using client-side decorations can have an arbitrary shape.
141141+ //
142142+ // If you don't like that, you should uncomment `prefer-no-csd` below.
143143+ // Niri will draw focus ring and border *around* windows that agree to omit their
144144+ // client-side decorations.
145145+ //
146146+ // Alternatively, you can override it with a window rule called
147147+ // `draw-border-with-background`.
148148+149149+ // You can change how the focus ring looks.
150150+ focus-ring {
151151+ // Uncomment this line to disable the focus ring.
152152+ off
153153+154154+ // How many logical pixels the ring extends out from the windows.
155155+ width 4
156156+157157+ // Colors can be set in a variety of ways:
158158+ // - CSS named colors: "red"
159159+ // - RGB hex: "#rgb", "#rgba", "#rrggbb", "#rrggbbaa"
160160+ // - CSS-like notation: "rgb(255, 127, 0)", rgba(), hsl() and a few others.
161161+162162+ // Color of the ring on the active monitor.
163163+ // active-color "#7fc8ff"
164164+165165+ // Color of the ring on inactive monitors.
166166+ //
167167+ // The focus ring only draws around the active window, so the only place
168168+ // where you can see its inactive-color is on other monitors.
169169+ // inactive-color "#505050"
170170+171171+ // You can also use gradients. They take precedence over solid colors.
172172+ // Gradients are rendered the same as CSS linear-gradient(angle, from, to).
173173+ // The angle is the same as in linear-gradient, and is optional,
174174+ // defaulting to 180 (top-to-bottom gradient).
175175+ // You can use any CSS linear-gradient tool on the web to set these up.
176176+ // Changing the color space is also supported, check the wiki for more info.
177177+ //
178178+ // active-gradient from="#80c8ff" to="#c7ff7f" angle=45
179179+180180+ // You can also color the gradient relative to the entire view
181181+ // of the workspace, rather than relative to just the window itself.
182182+ // To do that, set relative-to="workspace-view".
183183+ //
184184+ // inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
185185+ }
186186+187187+ // You can also add a border. It's similar to the focus ring, but always visible.
188188+ border {
189189+ // The settings are the same as for the focus ring.
190190+ // If you enable the border, you probably want to disable the focus ring.
191191+ off
192192+193193+ width 4
194194+ active-color "#ffc87f"
195195+ inactive-color "#505050"
196196+197197+ // Color of the border around windows that request your attention.
198198+ urgent-color "#9b0000"
199199+200200+ // Gradients can use a few different interpolation color spaces.
201201+ // For example, this is a pastel rainbow gradient via in="oklch longer hue".
202202+ //
203203+ // active-gradient from="#e5989b" to="#ffb4a2" angle=45 relative-to="workspace-view" in="oklch longer hue"
204204+205205+ // inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
206206+ }
207207+208208+ shadow {
209209+ on
210210+ softness 22 // blur radius
211211+ spread 0
212212+ offset x=0 y=8
213213+ color "rgba(0,0,0,0.22)"
214214+ }
215215+216216+ // Struts shrink the area occupied by windows, similarly to layer-shell panels.
217217+ // You can think of them as a kind of outer gaps. They are set in logical pixels.
218218+ // Left and right struts will cause the next window to the side to always be visible.
219219+ // Top and bottom struts will simply add outer gaps in addition to the area occupied by
220220+ // layer-shell panels and regular gaps.
221221+ struts {
222222+ // left 64
223223+ // right 64
224224+ // top 64
225225+ // bottom 64
226226+ }
227227+}
228228+229229+overview {
230230+ workspace-shadow {
231231+ off
232232+ }
233233+}
234234+235235+// Add lines like this to spawn processes at startup.
236236+// Note that running niri as a session supports xdg-desktop-autostart,
237237+// which may be more convenient to use.
238238+// See the binds section below for more spawn examples.
239239+240240+// Noctalia Shell startup
241241+spawn-at-startup "noctalia-shell"
242242+243243+// This line starts waybar, a commonly used bar for Wayland compositors.
244244+// spawn-at-startup "waybar"
245245+246246+// To run a shell command (with variables, pipes, etc.), use spawn-sh-at-startup:
247247+// spawn-sh-at-startup "qs -c ~/source/qs/MyAwesomeShell"
248248+249249+hotkey-overlay {
250250+ // Uncomment this line to disable the "Important Hotkeys" pop-up at startup.
251251+ // skip-at-startup
252252+}
253253+254254+// Uncomment this line to ask the clients to omit their client-side decorations if possible.
255255+// If the client will specifically ask for CSD, the request will be honored.
256256+// Additionally, clients will be informed that they are tiled, removing some client-side rounded corners.
257257+// This option will also fix border/focus ring drawing behind some semitransparent windows.
258258+// After enabling or disabling this, you need to restart the apps for this to take effect.
259259+prefer-no-csd
260260+261261+// You can change the path where screenshots are saved.
262262+// A ~ at the front will be expanded to the home directory.
263263+// The path is formatted with strftime(3) to give you the screenshot date and time.
264264+screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
265265+266266+// You can also set this to null to disable saving screenshots to disk.
267267+// screenshot-path null
268268+269269+// Animation settings.
270270+// The wiki explains how to configure individual animations:
271271+// https://yalter.github.io/niri/Configuration:-Animations
272272+animations {
273273+ // Uncomment to turn off all animations.
274274+ // off
275275+276276+ // Slow down all animations by this factor. Values below 1 speed them up instead.
277277+ // slowdown 3.0
278278+}
279279+280280+// Window rules let you adjust behavior for individual windows.
281281+// Find more information on the wiki:
282282+// https://yalter.github.io/niri/Configuration:-Window-Rules
283283+284284+// Work around WezTerm's initial configure bug
285285+// by setting an empty default-column-width.
286286+window-rule {
287287+ // This regular expression is intentionally made as specific as possible,
288288+ // since this is the default config, and we want no false positives.
289289+ // You can get away with just app-id="wezterm" if you want.
290290+ match app-id=r#"^org\.wezfurlong\.wezterm$"#
291291+ default-column-width {}
292292+}
293293+294294+// Open the Firefox picture-in-picture player as floating by default.
295295+window-rule {
296296+ // This app-id regular expression will work for both:
297297+ // - host Firefox (app-id is "firefox")
298298+ // - Flatpak Firefox (app-id is "org.mozilla.firefox")
299299+ match app-id=r#"firefox$"# title="^Picture-in-Picture$"
300300+ open-floating true
301301+}
302302+303303+// Example: block out two password managers from screen capture.
304304+// (This example rule is commented out with a "/-" in front.)
305305+/-window-rule {
306306+ match app-id=r#"^org\.keepassxc\.KeePassXC$"#
307307+ match app-id=r#"^org\.gnome\.World\.Secrets$"#
308308+309309+ block-out-from "screen-capture"
310310+311311+ // Use this instead if you want them visible on third-party screenshot tools.
312312+ // block-out-from "screencast"
313313+}
314314+315315+// Example: enable rounded corners for all windows.
316316+// (This example rule is commented out with a "/-" in front.)
317317+window-rule {
318318+ geometry-corner-radius 8
319319+ clip-to-geometry true
320320+}
321321+322322+// Apps: Blur all with xray
323323+window-rule {
324324+ background-effect {
325325+ blur true
326326+ xray true
327327+ }
328328+}
329329+330330+// Noctalia: blur bar and launcher with xray
331331+/-layer-rule {
332332+ match namespace="^noctalia-(background|launcher-overlay|dock)-.*$"
333333+ background-effect {
334334+ blur true
335335+ xray true
336336+ }
337337+}
338338+339339+blur {
340340+ passes 1
341341+ offset 8
342342+ noise 0.04
343343+ saturation 1
344344+}
345345+346346+debug {
347347+ // Allows notification actions and window activation from Noctalia.
348348+ honor-xdg-activation-with-invalid-serial
349349+}
350350+351351+// Noctalia overview blurred background
352352+layer-rule {
353353+ match namespace="^noctalia-overview*"
354354+ place-within-backdrop true
355355+}
356356+357357+binds {
358358+ // Keys consist of modifiers separated by + signs, followed by an XKB key name
359359+ // in the end. To find an XKB name for a particular key, you may use a program
360360+ // like wev.
361361+ //
362362+ // "Mod" is a special modifier equal to Super when running on a TTY, and to Alt
363363+ // when running as a winit window.
364364+ //
365365+ // Most actions that you can bind here can also be invoked programmatically with
366366+ // `niri msg action do-something`.
367367+368368+ // Noctalia binds
369369+ Alt+Space { spawn "noctalia-shell" "ipc" "call" "launcher" "toggle"; }
370370+ Mod+S { spawn "noctalia-shell" "ipc" "call" "controlCenter" "toggle"; }
371371+372372+ // Mod-Shift-/, which is usually the same as Mod-?,
373373+ // shows a list of important hotkeys.
374374+ Mod+Shift+Slash { show-hotkey-overlay; }
375375+376376+ // Suggested binds for running programs: terminal, app launcher, screen locker.
377377+ Mod+T hotkey-overlay-title="Open a Terminal: alacritty" { spawn "alacritty"; }
378378+ // Mod+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; }
379379+ Mod+L { spawn "noctalia-shell" "ipc" "call" "lockScreen" "lock"; }
380380+381381+ // KDE Plasma equivalent power cycle
382382+ Mod+B { spawn "noctalia-shell" "ipc" "call" "powerProfile" "cycle"; }
383383+384384+ XF86AudioRaiseVolume allow-when-locked=true { spawn "noctalia-shell" "ipc" "call" "volume" "increase"; }
385385+ XF86AudioPlay allow-when-locked=true { spawn "noctalia-shell" "ipc" "call" "media" "playPause"; }
386386+ XF86AudioLowerVolume allow-when-locked=true { spawn "noctalia-shell" "ipc" "call" "volume" "decrease"; }
387387+ XF86AudioMute allow-when-locked=true { spawn "noctalia-shell" "ipc" "call" "volume" "muteOutput"; }
388388+ XF86MonBrightnessUp allow-when-locked=true { spawn "noctalia-shell" "ipc" "call" "brightness" "increase"; }
389389+ XF86MonBrightnessDown allow-when-locked=true { spawn "noctalia-shell" "ipc" "call" "brightness" "decrease"; }
390390+391391+ XF86PowerOff allow-when-locked=true { spawn "noctalia-shell" "ipc" "call" "sessionMenu" "toggle"; }
392392+393393+ Mod+V { spawn "noctalia-shell" "ipc" "call" "launcher" "clipboard"; }
394394+ Mod+Shift+Space { spawn "noctalia-shell" "ipc" "call" "launcher" "emoji"; }
395395+396396+ // Open/close the Overview: a zoomed-out view of workspaces and windows.
397397+ // You can also move the mouse into the top-left hot corner,
398398+ // or do a four-finger swipe up on a touchpad.
399399+ Mod+O repeat=false { toggle-overview; }
400400+401401+ Mod+Q repeat=false { close-window; }
402402+403403+ Mod+Left { focus-column-left; }
404404+ Mod+Down { focus-window-down; }
405405+ Mod+Up { focus-window-up; }
406406+ Mod+Right { focus-column-right; }
407407+ // Mod+H { focus-column-left; }
408408+ // Mod+J { focus-window-down; }
409409+ // Mod+K { focus-window-up; }
410410+ // Mod+L { focus-column-right; }
411411+412412+ Mod+Ctrl+Left { move-column-left; }
413413+ Mod+Ctrl+Down { move-window-down; }
414414+ Mod+Ctrl+Up { move-window-up; }
415415+ Mod+Ctrl+Right { move-column-right; }
416416+ Mod+Ctrl+H { move-column-left; }
417417+ Mod+Ctrl+J { move-window-down; }
418418+ Mod+Ctrl+K { move-window-up; }
419419+ Mod+Ctrl+L { move-column-right; }
420420+421421+ // Alternative commands that move across workspaces when reaching
422422+ // the first or last window in a column.
423423+ // Mod+J { focus-window-or-workspace-down; }
424424+ // Mod+K { focus-window-or-workspace-up; }
425425+ // Mod+Ctrl+J { move-window-down-or-to-workspace-down; }
426426+ // Mod+Ctrl+K { move-window-up-or-to-workspace-up; }
427427+428428+ Mod+Home { focus-column-first; }
429429+ Mod+End { focus-column-last; }
430430+ Mod+Ctrl+Home { move-column-to-first; }
431431+ Mod+Ctrl+End { move-column-to-last; }
432432+433433+ Mod+Shift+Left { focus-monitor-left; }
434434+ Mod+Shift+Down { focus-monitor-down; }
435435+ Mod+Shift+Up { focus-monitor-up; }
436436+ Mod+Shift+Right { focus-monitor-right; }
437437+ Mod+Shift+H { focus-monitor-left; }
438438+ Mod+Shift+J { focus-monitor-down; }
439439+ Mod+Shift+K { focus-monitor-up; }
440440+ Mod+Shift+L { focus-monitor-right; }
441441+442442+ Mod+Shift+Ctrl+Left { move-column-to-monitor-left; }
443443+ Mod+Shift+Ctrl+Down { move-column-to-monitor-down; }
444444+ Mod+Shift+Ctrl+Up { move-column-to-monitor-up; }
445445+ Mod+Shift+Ctrl+Right { move-column-to-monitor-right; }
446446+ Mod+Shift+Ctrl+H { move-column-to-monitor-left; }
447447+ Mod+Shift+Ctrl+J { move-column-to-monitor-down; }
448448+ Mod+Shift+Ctrl+K { move-column-to-monitor-up; }
449449+ Mod+Shift+Ctrl+L { move-column-to-monitor-right; }
450450+451451+ // Alternatively, there are commands to move just a single window:
452452+ // Mod+Shift+Ctrl+Left { move-window-to-monitor-left; }
453453+ // ...
454454+455455+ // And you can also move a whole workspace to another monitor:
456456+ // Mod+Shift+Ctrl+Left { move-workspace-to-monitor-left; }
457457+ // ...
458458+459459+ Mod+Page_Down { focus-workspace-down; }
460460+ Mod+Page_Up { focus-workspace-up; }
461461+ // Mod+U { focus-workspace-down; }
462462+ // Mod+I { focus-workspace-up; }
463463+ Mod+Ctrl+Page_Down { move-column-to-workspace-down; }
464464+ Mod+Ctrl+Page_Up { move-column-to-workspace-up; }
465465+ Mod+Ctrl+U { move-column-to-workspace-down; }
466466+ Mod+Ctrl+I { move-column-to-workspace-up; }
467467+468468+ // Alternatively, there are commands to move just a single window:
469469+ // Mod+Ctrl+Page_Down { move-window-to-workspace-down; }
470470+ // ...
471471+472472+ Mod+Shift+Page_Down { move-workspace-down; }
473473+ Mod+Shift+Page_Up { move-workspace-up; }
474474+ // Mod+Shift+U { move-workspace-down; }
475475+ // Mod+Shift+I { move-workspace-up; }
476476+477477+ // You can bind mouse wheel scroll ticks using the following syntax.
478478+ // These binds will change direction based on the natural-scroll setting.
479479+ //
480480+ // To avoid scrolling through workspaces really fast, you can use
481481+ // the cooldown-ms property. The bind will be rate-limited to this value.
482482+ // You can set a cooldown on any bind, but it's most useful for the wheel.
483483+ Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
484484+ Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
485485+ Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; }
486486+ Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; }
487487+488488+ Mod+WheelScrollRight { focus-column-right; }
489489+ Mod+WheelScrollLeft { focus-column-left; }
490490+ Mod+Ctrl+WheelScrollRight { move-column-right; }
491491+ Mod+Ctrl+WheelScrollLeft { move-column-left; }
492492+493493+ // Usually scrolling up and down with Shift in applications results in
494494+ // horizontal scrolling; these binds replicate that.
495495+ Mod+Shift+WheelScrollDown { focus-column-right; }
496496+ Mod+Shift+WheelScrollUp { focus-column-left; }
497497+ Mod+Ctrl+Shift+WheelScrollDown { move-column-right; }
498498+ Mod+Ctrl+Shift+WheelScrollUp { move-column-left; }
499499+500500+ // Similarly, you can bind touchpad scroll "ticks".
501501+ // Touchpad scrolling is continuous, so for these binds it is split into
502502+ // discrete intervals.
503503+ // These binds are also affected by touchpad's natural-scroll, so these
504504+ // example binds are "inverted", since we have natural-scroll enabled for
505505+ // touchpads by default.
506506+ // Mod+TouchpadScrollDown { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.02+"; }
507507+ // Mod+TouchpadScrollUp { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.02-"; }
508508+509509+ // You can refer to workspaces by index. However, keep in mind that
510510+ // niri is a dynamic workspace system, so these commands are kind of
511511+ // "best effort". Trying to refer to a workspace index bigger than
512512+ // the current workspace count will instead refer to the bottommost
513513+ // (empty) workspace.
514514+ //
515515+ // For example, with 2 workspaces + 1 empty, indices 3, 4, 5 and so on
516516+ // will all refer to the 3rd workspace.
517517+ Mod+1 { focus-workspace 1; }
518518+ Mod+2 { focus-workspace 2; }
519519+ Mod+3 { focus-workspace 3; }
520520+ Mod+4 { focus-workspace 4; }
521521+ Mod+5 { focus-workspace 5; }
522522+ Mod+6 { focus-workspace 6; }
523523+ Mod+7 { focus-workspace 7; }
524524+ Mod+8 { focus-workspace 8; }
525525+ Mod+9 { focus-workspace 9; }
526526+ Mod+Ctrl+1 { move-column-to-workspace 1; }
527527+ Mod+Ctrl+2 { move-column-to-workspace 2; }
528528+ Mod+Ctrl+3 { move-column-to-workspace 3; }
529529+ Mod+Ctrl+4 { move-column-to-workspace 4; }
530530+ Mod+Ctrl+5 { move-column-to-workspace 5; }
531531+ Mod+Ctrl+6 { move-column-to-workspace 6; }
532532+ Mod+Ctrl+7 { move-column-to-workspace 7; }
533533+ Mod+Ctrl+8 { move-column-to-workspace 8; }
534534+ Mod+Ctrl+9 { move-column-to-workspace 9; }
535535+536536+ // Alternatively, there are commands to move just a single window:
537537+ // Mod+Ctrl+1 { move-window-to-workspace 1; }
538538+539539+ // Switches focus between the current and the previous workspace.
540540+ // Mod+Tab { focus-workspace-previous; }
541541+542542+ // The following binds move the focused window in and out of a column.
543543+ // If the window is alone, they will consume it into the nearby column to the side.
544544+ // If the window is already in a column, they will expel it out.
545545+ Mod+BracketLeft { consume-or-expel-window-left; }
546546+ Mod+BracketRight { consume-or-expel-window-right; }
547547+548548+ // Consume one window from the right to the bottom of the focused column.
549549+ Mod+Comma { consume-window-into-column; }
550550+ // Expel the bottom window from the focused column to the right.
551551+ Mod+Period { expel-window-from-column; }
552552+553553+ Mod+R { switch-preset-column-width; }
554554+ // Cycling through the presets in reverse order is also possible.
555555+ // Mod+R { switch-preset-column-width-back; }
556556+ Mod+Shift+R { switch-preset-window-height; }
557557+ Mod+Ctrl+R { reset-window-height; }
558558+ Mod+F { maximize-column; }
559559+ Mod+Shift+F { fullscreen-window; }
560560+561561+ // Expand the focused column to space not taken up by other fully visible columns.
562562+ // Makes the column "fill the rest of the space".
563563+ Mod+Ctrl+F { expand-column-to-available-width; }
564564+565565+ Mod+C { center-column; }
566566+567567+ // Center all fully visible columns on screen.
568568+ Mod+Ctrl+C { center-visible-columns; }
569569+570570+ // Finer width adjustments.
571571+ // This command can also:
572572+ // * set width in pixels: "1000"
573573+ // * adjust width in pixels: "-5" or "+5"
574574+ // * set width as a percentage of screen width: "25%"
575575+ // * adjust width as a percentage of screen width: "-10%" or "+10%"
576576+ // Pixel sizes use logical, or scaled, pixels. I.e. on an output with scale 2.0,
577577+ // set-column-width "100" will make the column occupy 200 physical screen pixels.
578578+ Mod+Minus { set-column-width "-10%"; }
579579+ Mod+Equal { set-column-width "+10%"; }
580580+581581+ // Finer height adjustments when in column with other windows.
582582+ Mod+Shift+Minus { set-window-height "-10%"; }
583583+ Mod+Shift+Equal { set-window-height "+10%"; }
584584+585585+ // Move the focused window between the floating and the tiling layout.
586586+ // Mod+V { toggle-window-floating; }
587587+ // Mod+Shift+V { switch-focus-between-floating-and-tiling; }
588588+589589+ // Toggle tabbed column display mode.
590590+ // Windows in this column will appear as vertical tabs,
591591+ // rather than stacked on top of each other.
592592+ Mod+W { toggle-column-tabbed-display; }
593593+594594+ // Actions to switch layouts.
595595+ // Note: if you uncomment these, make sure you do NOT have
596596+ // a matching layout switch hotkey configured in xkb options above.
597597+ // Having both at once on the same hotkey will break the switching,
598598+ // since it will switch twice upon pressing the hotkey (once by xkb, once by niri).
599599+ // Mod+Space { switch-layout "next"; }
600600+ // Mod+Shift+Space { switch-layout "prev"; }
601601+602602+ Print { screenshot; }
603603+ Ctrl+Print { screenshot-screen; }
604604+ Alt+Print { screenshot-window; }
605605+606606+ // Applications such as remote-desktop clients and software KVM switches may
607607+ // request that niri stops processing the keyboard shortcuts defined here
608608+ // so they may, for example, forward the key presses as-is to a remote machine.
609609+ // It's a good idea to bind an escape hatch to toggle the inhibitor,
610610+ // so a buggy application can't hold your session hostage.
611611+ //
612612+ // The allow-inhibiting=false property can be applied to other binds as well,
613613+ // which ensures niri always processes them, even when an inhibitor is active.
614614+ Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }
615615+616616+ // The quit action will show a confirmation dialog to avoid accidental exits.
617617+ Mod+Shift+E { quit; }
618618+ Ctrl+Alt+Delete { quit; }
619619+620620+ // Powers off the monitors. To turn them back on, do any input like
621621+ // moving the mouse or pressing any other key.
622622+ Mod+Shift+P { power-off-monitors; }
623623+}