forge
Explore
Log in

Don't you dare go Hollow

default-config: Delete some input and window rule settings

Browse files at this commit

e46003f91f4e9fab54741db82e33d413b2aa1810Ivan MolodetskikhParent: 5360ddb
Replace them with links to the wiki.
resources/default-config.kdlmodified+9 -151
@@ -1,6 +1,11 @@
1 // This config is in the KDL format: https://kdl.dev1 // This config is in the KDL format: https://kdl.dev
2 // "/-" comments out the following node.2 // "/-" comments out the following node.
3+// Check the wiki for an overview of the configuration:
4+// https://github.com/YaLTeR/niri/wiki/Configuration:-Overview
3 5
6+// Input device configuration.
7+// Find the full list of options on the wiki:
8+// https://github.com/YaLTeR/niri/wiki/Configuration:-Input
4 input {9 input {
5 keyboard {10 keyboard {
6 xkb {11 xkb {
@@ -11,16 +16,6 @@ input {
11 // layout "us,ru"16 // layout "us,ru"
12 // options "grp:win_space_toggle,compose:ralt,ctrl:nocaps"17 // options "grp:win_space_toggle,compose:ralt,ctrl:nocaps"
13 }18 }
14-
15- // You can set the keyboard repeat parameters. The defaults match wlroots and sway.
16- // Delay is in milliseconds before the repeat starts. Rate is in characters per second.
17- // repeat-delay 600
18- // repeat-rate 25
19-
20- // Niri can remember the keyboard layout globally (the default) or per-window.
21- // - "global" - layout change is global for all windows.
22- // - "window" - layout is tracked for each window individually.
23- // track-layout "global"
24 }19 }
25 20
26 // Next sections include libinput settings.21 // Next sections include libinput settings.
@@ -32,8 +27,6 @@ input {
32 natural-scroll27 natural-scroll
33 // accel-speed 0.228 // accel-speed 0.2
34 // accel-profile "flat"29 // accel-profile "flat"
35- // tap-button-map "left-middle-right"
36- // click-method "clickfinger"
37 }30 }
38 31
39 mouse {32 mouse {
@@ -42,42 +35,11 @@ input {
42 // accel-profile "flat"35 // accel-profile "flat"
43 }36 }
44 37
45- trackpoint {
46- // natural-scroll
47- // accel-speed 0.2
48- // accel-profile "flat"
49- }
50-
51- tablet {
52- // Set the name of the output (see below) which the tablet will map to.
53- // If this is unset or the output doesn't exist, the tablet maps to one of the
54- // existing outputs.
55- map-to-output "eDP-1"
56- }
57-
58- touch {
59- // Set the name of the output (see below) which touch input will map to.
60- // If this is unset or the output doesn't exist, touch input maps to one of the
61- // existing outputs.
62- map-to-output "eDP-1"
63- }
64-
65- // By default, niri will take over the power button to make it sleep
66- // instead of power off.
67- // Uncomment this if you would like to configure the power button elsewhere
68- // (i.e. logind.conf).
69- // disable-power-key-handling
70-
71 // Uncomment this to make the mouse warp to the center of newly focused windows.38 // Uncomment this to make the mouse warp to the center of newly focused windows.
72 // warp-mouse-to-focus39 // warp-mouse-to-focus
73 40
74 // Focus windows and outputs automatically when moving the mouse into them.41 // Focus windows and outputs automatically when moving the mouse into them.
75 // focus-follows-mouse42 // focus-follows-mouse
76-
77- // Uncomment this to enable workspace auto-back-and-forth.
78- // If enabled, switching to the same workspace by index twice will switch back to the
79- // previous workspace.
80- // workspace-auto-back-and-forth
81 }43 }
82 44
83 // You can configure outputs by their name, which you can find45 // You can configure outputs by their name, which you can find
@@ -343,124 +305,20 @@ animations {
343 }305 }
344 306
345 // Window rules let you adjust behavior for individual windows.307 // Window rules let you adjust behavior for individual windows.
346-// They are processed in order of appearance in this file.308+// Find more information on the wiki:
347-// (This example rule is commented out with a "/-" in front.)309+// https://github.com/YaLTeR/niri/wiki/Configuration:-Window-Rules
348-/-window-rule {
349- // Match directives control which windows this rule will apply to.
350- // You can match by app-id and by title.
351- // The window must match all properties of the match directive.
352- match app-id="org.myapp.MyApp" title="My Cool App"
353-
354- // There can be multiple match directives. A window must match any one
355- // of the rule's match directives.
356- //
357- // If there are no match directives, any window will match the rule.
358- match title="Second App"
359-
360- // You can also add exclude directives which have the same properties.
361- // If a window matches any exclude directive, it won't match this rule.
362- //
363- // Both app-id and title are regular expressions.
364- // Raw KDL strings are helpful here.
365- exclude app-id=r#"\.unwanted\."#
366-
367- // One more way to match is by whether the window is active
368- // (same as when it uses the active border color).
369- match is-active=true
370-
371- // Another way to match is by whether the window has keyboard focus.
372- // This is different from is-active: every workspace on a monitor
373- // has one active window, but only one window can have a keyboard
374- // focus. Also, the keyboard focus can go to a layer-shell surface,
375- // then no window will have the keyboard focus.
376- match is-focused=true
377-
378- // Here are the properties that you can set on a window rule.
379- // These properties apply once, when a window first opens.
380-
381- // You can override the default column width.
382- default-column-width { proportion 0.75; }
383-
384- // You can set the output that this window will initially open on.
385- // If such an output does not exist, it will open on the currently
386- // focused output as usual.
387- open-on-output "eDP-1"
388-
389- // Make this window open as a maximized column.
390- open-maximized true
391-
392- // Make this window open fullscreen.
393- open-fullscreen true
394- // You can also set this to false to prevent a window from opening fullscreen.
395- // open-fullscreen false
396-
397- // The following properties apply dynamically while a window is open.
398-
399- // You can block out windows from xdg-desktop-portal screencasts.
400- // They will be replaced with solid black rectangles.
401- // This can be useful for password managers or messenger windows, etc.
402- // To preview and set up this rule, check the preview-render option
403- // in the debug section of the config.
404- //
405- // WARNING: the window is NOT blocked out from third-party screenshot tools.
406- // If you open some screenshot tool with preview while screencasting,
407- // blocked out windows WILL BE VISIBLE on the screencast.
408- //
409- // The built-in screenshot UI is not affected though, you can use it safely,
410- // and windows will remain blocked out even when screencasting it.
411- block-out-from "screencast"
412-
413- // You can also block out the window out of all screen captures, including
414- // third-party screenshot tools. This way you avoid accidentally showing
415- // the window on a screencast when opening a third-party screenshot preview.
416- //
417- // This setting will still let you use the interactive built-in screenshot UI,
418- // but it will block out the window from the fully automatic screenshot actions,
419- // such as screenshot-screen and screenshot-window.
420- block-out-from "screen-capture"
421-
422- // You can amend the window's minimum and maximum size in logical pixels.
423- // Keep in mind that the window itself always has a final say in its size.
424- // These values instruct niri to never ask the window to be smaller than
425- // the minimum you set, or to be bigger than the maximum you set.
426- min-width 100
427- max-width 200
428- min-height 300
429- // Caveat: max-height will only apply to automatically-sized windows
430- // if it is equal to min-height. Either set this equal to min-height,
431- // or change the window height manually for this to apply.
432- max-height 300
433-
434- // Override whether the border and the focus ring draw with a background.
435- // Set this to `true` to draw them as solid colored rectangles even for
436- // windows which agreed to omit their client-side decorations.
437- // Set this to `false` to draw them as borders around the window even for
438- // windows which use client-side decorations.
439- draw-border-with-background false
440-
441- // Set the opacity of the window.
442- // This is applied on top of the window's own opacity, so semitransparent
443- // windows will become even more transparent.
444- // Opacity is applied to every surface of the window individually, so
445- // subsurfaces and pop-up menus will show window content behind them.
446- // Also, focus ring and border with background will show through
447- // semitransparent windows (see prefer-no-csd and
448- // the draw-border-with-background property above).
449- opacity 0.5
450-}
451 310
452-// Here's a useful example. Work around WezTerm's initial configure bug311+// Work around WezTerm's initial configure bug
453 // by setting an empty default-column-width.312 // by setting an empty default-column-width.
454 window-rule {313 window-rule {
455 // This regular expression is intentionally made as specific as possible,314 // This regular expression is intentionally made as specific as possible,
456 // since this is the default config, and we want no false positives.315 // since this is the default config, and we want no false positives.
457 // You can get away with just app-id="wezterm" if you want.316 // You can get away with just app-id="wezterm" if you want.
458- // The regular expression can match anywhere in the string.
459 match app-id=r#"^org\.wezfurlong\.wezterm$"#317 match app-id=r#"^org\.wezfurlong\.wezterm$"#
460 default-column-width {}318 default-column-width {}
461 }319 }
462 320
463-// Another example: block out two password managers from screen capture.321+// Example: block out two password managers from screen capture.
464 // (This example rule is commented out with a "/-" in front.)322 // (This example rule is commented out with a "/-" in front.)
465 /-window-rule {323 /-window-rule {
466 match app-id=r#"^org\.keepassxc\.KeePassXC$"#324 match app-id=r#"^org\.keepassxc\.KeePassXC$"#