first niri config edit

This commit is contained in:
2025-10-05 00:35:37 +02:00
parent e428e1c9fb
commit 28f93cb796

View File

@@ -111,7 +111,7 @@ input {
// https://yalter.github.io/niri/Configuration:-Layout // https://yalter.github.io/niri/Configuration:-Layout
layout { layout {
// Set gaps around windows in logical pixels. // Set gaps around windows in logical pixels.
gaps 16 gaps 8
// When to center a column when changing focus, options are: // When to center a column when changing focus, options are:
// - "never", default behavior, focusing an off-screen column will keep at the left // - "never", default behavior, focusing an off-screen column will keep at the left
@@ -159,7 +159,7 @@ layout {
// off // off
// How many logical pixels the ring extends out from the windows. // How many logical pixels the ring extends out from the windows.
width 4 width 3
// Colors can be set in a variety of ways: // Colors can be set in a variety of ways:
// - CSS named colors: "red" // - CSS named colors: "red"
@@ -288,7 +288,7 @@ hotkey-overlay {
// You can change the path where screenshots are saved. // You can change the path where screenshots are saved.
// A ~ at the front will be expanded to the home directory. // A ~ at the front will be expanded to the home directory.
// The path is formatted with strftime(3) to give you the screenshot date and time. // The path is formatted with strftime(3) to give you the screenshot date and time.
screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png" screenshot-path "~/Pictures/Screenshots/screenshot_%Y-%m-%d %H-%M-%S.png"
// You can also set this to null to disable saving screenshots to disk. // You can also set this to null to disable saving screenshots to disk.
// screenshot-path null // screenshot-path null
@@ -301,7 +301,7 @@ animations {
// off // off
// Slow down all animations by this factor. Values below 1 speed them up instead. // Slow down all animations by this factor. Values below 1 speed them up instead.
// slowdown 3.0 slowdown 0.3
} }
// Window rules let you adjust behavior for individual windows. // Window rules let you adjust behavior for individual windows.
@@ -329,9 +329,8 @@ window-rule {
// Example: block out two password managers from screen capture. // Example: block out two password managers from screen capture.
// (This example rule is commented out with a "/-" in front.) // (This example rule is commented out with a "/-" in front.)
/-window-rule { window-rule {
match app-id=r#"^org\.keepassxc\.KeePassXC$"# match app-id=r#"^org\.keepassxc\.KeePassXC$"#
match app-id=r#"^org\.gnome\.World\.Secrets$"#
block-out-from "screen-capture" block-out-from "screen-capture"
@@ -341,8 +340,8 @@ window-rule {
// Example: enable rounded corners for all windows. // Example: enable rounded corners for all windows.
// (This example rule is commented out with a "/-" in front.) // (This example rule is commented out with a "/-" in front.)
/-window-rule { window-rule {
geometry-corner-radius 12 geometry-corner-radius 8
clip-to-geometry true clip-to-geometry true
} }
@@ -363,8 +362,10 @@ binds {
// Suggested binds for running programs: terminal, app launcher, screen locker. // Suggested binds for running programs: terminal, app launcher, screen locker.
Mod+T hotkey-overlay-title="Open a Terminal: alacritty" { spawn "alacritty"; } Mod+T hotkey-overlay-title="Open a Terminal: alacritty" { spawn "alacritty"; }
Mod+Return hotkey-overlay-title="Open a Terminal: alacritty" { spawn "alacritty"; }
Mod+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; } Mod+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; }
Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; } Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
Mod+B { spawn-sh "brave"; }
// Use spawn-sh to run a shell command. Do this if you need pipes, multiple commands, etc. // 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`. // Note: the entire command goes as a single argument. It's passed verbatim to `sh -c`.
@@ -390,7 +391,7 @@ binds {
// or do a four-finger swipe up on a touchpad. // or do a four-finger swipe up on a touchpad.
Mod+O repeat=false { toggle-overview; } Mod+O repeat=false { toggle-overview; }
Mod+Q repeat=false { close-window; } Mod+Shift+Q repeat=false { close-window; }
Mod+Left { focus-column-left; } Mod+Left { focus-column-left; }
Mod+Down { focus-window-down; } Mod+Down { focus-window-down; }
@@ -515,15 +516,15 @@ binds {
Mod+7 { focus-workspace 7; } Mod+7 { focus-workspace 7; }
Mod+8 { focus-workspace 8; } Mod+8 { focus-workspace 8; }
Mod+9 { focus-workspace 9; } Mod+9 { focus-workspace 9; }
Mod+Ctrl+1 { move-column-to-workspace 1; } Mod+Shift+1 { move-column-to-workspace 1; }
Mod+Ctrl+2 { move-column-to-workspace 2; } Mod+Shift+2 { move-column-to-workspace 2; }
Mod+Ctrl+3 { move-column-to-workspace 3; } Mod+Shift+3 { move-column-to-workspace 3; }
Mod+Ctrl+4 { move-column-to-workspace 4; } Mod+Shift+4 { move-column-to-workspace 4; }
Mod+Ctrl+5 { move-column-to-workspace 5; } Mod+Shift+5 { move-column-to-workspace 5; }
Mod+Ctrl+6 { move-column-to-workspace 6; } Mod+Shift+6 { move-column-to-workspace 6; }
Mod+Ctrl+7 { move-column-to-workspace 7; } Mod+Shift+7 { move-column-to-workspace 7; }
Mod+Ctrl+8 { move-column-to-workspace 8; } Mod+Shift+8 { move-column-to-workspace 8; }
Mod+Ctrl+9 { move-column-to-workspace 9; } Mod+Shift+9 { move-column-to-workspace 9; }
// Alternatively, there are commands to move just a single window: // Alternatively, there are commands to move just a single window:
// Mod+Ctrl+1 { move-window-to-workspace 1; } // Mod+Ctrl+1 { move-window-to-workspace 1; }
@@ -583,6 +584,8 @@ binds {
// rather than stacked on top of each other. // rather than stacked on top of each other.
Mod+W { toggle-column-tabbed-display; } Mod+W { toggle-column-tabbed-display; }
Mod+Shift+W { spawn-sh "wal -i /usr/share/endeavouros/backgrounds/eos_wallpapers_classic/ -i /usr/share/endeavouros/backgrounds/eos_wallpapers_community/ -i /usr/share/endeavouros/backgrounds/; swaybg -i $(cat $HOME/.cache/wal/wal)"; }
// Actions to switch layouts. // Actions to switch layouts.
// Note: if you uncomment these, make sure you do NOT have // Note: if you uncomment these, make sure you do NOT have
// a matching layout switch hotkey configured in xkb options above. // a matching layout switch hotkey configured in xkb options above.