niri config minimizing
This commit is contained in:
@@ -8,5 +8,6 @@
|
|||||||
"workbench.iconTheme": "material-icon-theme",
|
"workbench.iconTheme": "material-icon-theme",
|
||||||
"mesonbuild.downloadLanguageServer": true,
|
"mesonbuild.downloadLanguageServer": true,
|
||||||
"telemetry.feedback.enabled": false,
|
"telemetry.feedback.enabled": false,
|
||||||
"update.mode": "none"
|
"update.mode": "none",
|
||||||
}
|
"explorer.confirmDelete": false
|
||||||
|
}
|
||||||
|
|||||||
+1
-109
@@ -77,21 +77,6 @@ layout {
|
|||||||
|
|
||||||
// You can change the default width of the new windows.
|
// You can change the default width of the new windows.
|
||||||
default-column-width { proportion 1.0; }
|
default-column-width { proportion 1.0; }
|
||||||
// If you leave the brackets empty, the windows themselves will decide their initial width.
|
|
||||||
// default-column-width {}
|
|
||||||
|
|
||||||
// By default focus ring and border are rendered as a solid background rectangle
|
|
||||||
// behind windows. That is, they will show up through semitransparent windows.
|
|
||||||
// This is because windows using client-side decorations can have an arbitrary shape.
|
|
||||||
//
|
|
||||||
// If you don't like that, you should uncomment `prefer-no-csd` below.
|
|
||||||
// Niri will draw focus ring and border *around* windows that agree to omit their
|
|
||||||
// client-side decorations.
|
|
||||||
//
|
|
||||||
// Alternatively, you can override it with a window rule called
|
|
||||||
// `draw-border-with-background`.
|
|
||||||
|
|
||||||
// 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
|
||||||
@@ -113,20 +98,6 @@ layout {
|
|||||||
// where you can see its inactive-color is on other monitors.
|
// where you can see its inactive-color is on other monitors.
|
||||||
inactive-color "#505050"
|
inactive-color "#505050"
|
||||||
|
|
||||||
// You can also use gradients. They take precedence over solid colors.
|
|
||||||
// Gradients are rendered the same as CSS linear-gradient(angle, from, to).
|
|
||||||
// The angle is the same as in linear-gradient, and is optional,
|
|
||||||
// defaulting to 180 (top-to-bottom gradient).
|
|
||||||
// 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.
|
|
||||||
//
|
|
||||||
// active-gradient from="#80c8ff" to="#c7ff7f" angle=45
|
|
||||||
|
|
||||||
// You can also color the gradient relative to the entire view
|
|
||||||
// of the workspace, rather than relative to just the window itself.
|
|
||||||
// To do that, set relative-to="workspace-view".
|
|
||||||
//
|
|
||||||
// inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// You can also add a border. It's similar to the focus ring, but always visible.
|
// You can also add a border. It's similar to the focus ring, but always visible.
|
||||||
@@ -152,28 +123,6 @@ layout {
|
|||||||
|
|
||||||
// You can enable drop shadows for windows.
|
// You can enable drop shadows for windows.
|
||||||
shadow {
|
shadow {
|
||||||
// Uncomment the next line to enable shadows.
|
|
||||||
// on
|
|
||||||
|
|
||||||
// By default, the shadow draws only around its window, and not behind it.
|
|
||||||
// Uncomment this setting to make the shadow draw behind its window.
|
|
||||||
//
|
|
||||||
// Note that niri has no way of knowing about the CSD window corner
|
|
||||||
// radius. It has to assume that windows have square corners, leading to
|
|
||||||
// shadow artifacts inside the CSD rounded corners. This setting fixes
|
|
||||||
// those artifacts.
|
|
||||||
//
|
|
||||||
// However, instead you may want to set prefer-no-csd and/or
|
|
||||||
// geometry-corner-radius. Then, niri will know the corner radius and
|
|
||||||
// draw the shadow correctly, without having to draw it behind the
|
|
||||||
// window. These will also remove client-side shadows if the window
|
|
||||||
// draws any.
|
|
||||||
//
|
|
||||||
// draw-behind-window true
|
|
||||||
|
|
||||||
// You can change how shadows look. The values below are in logical
|
|
||||||
// pixels and match the CSS box-shadow properties.
|
|
||||||
|
|
||||||
// Softness controls the shadow blur radius.
|
// Softness controls the shadow blur radius.
|
||||||
softness 30
|
softness 30
|
||||||
|
|
||||||
@@ -187,11 +136,6 @@ layout {
|
|||||||
color "#0007"
|
color "#0007"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Struts shrink the area occupied by windows, similarly to layer-shell panels.
|
|
||||||
// You can think of them as a kind of outer gaps. They are set in logical pixels.
|
|
||||||
// Left and right struts will cause the next window to the side to always be visible.
|
|
||||||
// Top and bottom struts will simply add outer gaps in addition to the area occupied by
|
|
||||||
// layer-shell panels and regular gaps.
|
|
||||||
struts {
|
struts {
|
||||||
// left 64
|
// left 64
|
||||||
// right 64
|
// right 64
|
||||||
@@ -246,21 +190,10 @@ window-rule {
|
|||||||
window-rule {
|
window-rule {
|
||||||
geometry-corner-radius 8
|
geometry-corner-radius 8
|
||||||
clip-to-geometry true
|
clip-to-geometry true
|
||||||
|
open-maximized-to-edges true
|
||||||
}
|
}
|
||||||
|
|
||||||
binds {
|
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
|
|
||||||
// like wev.
|
|
||||||
//
|
|
||||||
// "Mod" is a special modifier equal to Super when running on a TTY, and to Alt
|
|
||||||
// when running as a winit window.
|
|
||||||
//
|
|
||||||
// Most actions that you can bind here can also be invoked programmatically with
|
|
||||||
// `niri msg action do-something`.
|
|
||||||
|
|
||||||
// Mod-Shift-/, which is usually the same as Mod-?,
|
|
||||||
// shows a list of important hotkeys.
|
|
||||||
Mod+Shift+Slash { show-hotkey-overlay; }
|
Mod+Shift+Slash { show-hotkey-overlay; }
|
||||||
|
|
||||||
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
||||||
@@ -268,15 +201,8 @@ binds {
|
|||||||
Mod+R hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; }
|
Mod+R hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; }
|
||||||
Mod+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
|
Mod+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
|
||||||
|
|
||||||
// Use spawn-sh to run a shell command. Do this if you need pipes, multiple commands, etc.
|
|
||||||
// Note: the entire command goes as a single argument. It's passed verbatim to `sh -c`.
|
|
||||||
// For example, this is a standard bind to toggle the screen reader (orca).
|
|
||||||
Super+Alt+S allow-when-locked=true hotkey-overlay-title=null { spawn-sh "pkill orca || exec orca"; }
|
Super+Alt+S allow-when-locked=true hotkey-overlay-title=null { spawn-sh "pkill orca || exec orca"; }
|
||||||
|
|
||||||
// Example volume keys mappings for PipeWire & WirePlumber.
|
|
||||||
// The allow-when-locked=true property makes them work even when the session is locked.
|
|
||||||
// Using spawn-sh allows to pass multiple arguments together with the command.
|
|
||||||
// "-l 1.0" limits the volume to 100%.
|
|
||||||
XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1+ -l 1.0"; }
|
XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1+ -l 1.0"; }
|
||||||
XF86AudioLowerVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1-"; }
|
XF86AudioLowerVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1-"; }
|
||||||
XF86AudioMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; }
|
XF86AudioMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; }
|
||||||
@@ -320,13 +246,6 @@ binds {
|
|||||||
Mod+Ctrl+K { move-window-up; }
|
Mod+Ctrl+K { move-window-up; }
|
||||||
Mod+Ctrl+L { move-column-right; }
|
Mod+Ctrl+L { move-column-right; }
|
||||||
|
|
||||||
// Alternative commands that move across workspaces when reaching
|
|
||||||
// the first or last window in a column.
|
|
||||||
// Mod+J { focus-window-or-workspace-down; }
|
|
||||||
// Mod+K { focus-window-or-workspace-up; }
|
|
||||||
// Mod+Ctrl+J { move-window-down-or-to-workspace-down; }
|
|
||||||
// Mod+Ctrl+K { move-window-up-or-to-workspace-up; }
|
|
||||||
|
|
||||||
Mod+Home { focus-column-first; }
|
Mod+Home { focus-column-first; }
|
||||||
Mod+End { focus-column-last; }
|
Mod+End { focus-column-last; }
|
||||||
Mod+Ctrl+Home { move-column-to-first; }
|
Mod+Ctrl+Home { move-column-to-first; }
|
||||||
@@ -350,13 +269,6 @@ binds {
|
|||||||
Mod+Shift+Ctrl+K { move-column-to-monitor-up; }
|
Mod+Shift+Ctrl+K { move-column-to-monitor-up; }
|
||||||
Mod+Shift+Ctrl+L { move-column-to-monitor-right; }
|
Mod+Shift+Ctrl+L { move-column-to-monitor-right; }
|
||||||
|
|
||||||
// Alternatively, there are commands to move just a single window:
|
|
||||||
// Mod+Shift+Ctrl+Left { move-window-to-monitor-left; }
|
|
||||||
// ...
|
|
||||||
|
|
||||||
// And you can also move a whole workspace to another monitor:
|
|
||||||
// Mod+Shift+Ctrl+Left { move-workspace-to-monitor-left; }
|
|
||||||
// ...
|
|
||||||
|
|
||||||
Mod+Page_Down { focus-workspace-down; }
|
Mod+Page_Down { focus-workspace-down; }
|
||||||
Mod+Page_Up { focus-workspace-up; }
|
Mod+Page_Up { focus-workspace-up; }
|
||||||
@@ -435,26 +347,12 @@ binds {
|
|||||||
Mod+Ctrl+8 { move-column-to-workspace 8; }
|
Mod+Ctrl+8 { move-column-to-workspace 8; }
|
||||||
Mod+Ctrl+9 { move-column-to-workspace 9; }
|
Mod+Ctrl+9 { move-column-to-workspace 9; }
|
||||||
|
|
||||||
// Alternatively, there are commands to move just a single window:
|
|
||||||
// Mod+Ctrl+1 { move-window-to-workspace 1; }
|
|
||||||
|
|
||||||
// Switches focus between the current and the previous workspace.
|
|
||||||
// Mod+Tab { focus-workspace-previous; }
|
|
||||||
|
|
||||||
// The following binds move the focused window in and out of a column.
|
|
||||||
// If the window is alone, they will consume it into the nearby column to the side.
|
|
||||||
// If the window is already in a column, they will expel it out.
|
|
||||||
Mod+BracketLeft { consume-or-expel-window-left; }
|
Mod+BracketLeft { consume-or-expel-window-left; }
|
||||||
Mod+BracketRight { consume-or-expel-window-right; }
|
Mod+BracketRight { consume-or-expel-window-right; }
|
||||||
|
|
||||||
// Consume one window from the right to the bottom of the focused column.
|
|
||||||
Mod+Comma { consume-window-into-column; }
|
Mod+Comma { consume-window-into-column; }
|
||||||
// Expel the bottom window from the focused column to the right.
|
|
||||||
Mod+Period { expel-window-from-column; }
|
Mod+Period { expel-window-from-column; }
|
||||||
|
|
||||||
// Cycle through widths set in preset-column-widths.
|
|
||||||
// Mod+R { switch-preset-column-width; }
|
|
||||||
// Cycling through the presets in reverse order is also possible.
|
|
||||||
Mod+Shift+R { switch-preset-column-width-back; }
|
Mod+Shift+R { switch-preset-column-width-back; }
|
||||||
|
|
||||||
Mod+Ctrl+Shift+R { switch-preset-window-height; }
|
Mod+Ctrl+Shift+R { switch-preset-window-height; }
|
||||||
@@ -463,14 +361,8 @@ binds {
|
|||||||
Mod+F { maximize-column; }
|
Mod+F { maximize-column; }
|
||||||
Mod+Shift+F { fullscreen-window; }
|
Mod+Shift+F { fullscreen-window; }
|
||||||
|
|
||||||
// While maximize-column leaves gaps and borders around the window,
|
|
||||||
// maximize-window-to-edges doesn't: the window expands to the edges of the screen.
|
|
||||||
// This bind corresponds to normal window maximizing,
|
|
||||||
// e.g. by double-clicking on the titlebar.
|
|
||||||
Mod+M { maximize-window-to-edges; }
|
Mod+M { maximize-window-to-edges; }
|
||||||
|
|
||||||
// Expand the focused column to space not taken up by other fully visible columns.
|
|
||||||
// Makes the column "fill the rest of the space".
|
|
||||||
Mod+Ctrl+F { expand-column-to-available-width; }
|
Mod+Ctrl+F { expand-column-to-available-width; }
|
||||||
|
|
||||||
// Center all fully visible columns on screen.
|
// Center all fully visible columns on screen.
|
||||||
|
|||||||
Reference in New Issue
Block a user