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