niri configs

This commit is contained in:
2026-05-01 14:57:48 +03:00
parent 9207a59f52
commit 9115718a4e
5 changed files with 393 additions and 0 deletions

92
.config/niri/config.kdl Normal file
View File

@@ -0,0 +1,92 @@
include "input.kdl"
include "outputs.kdl"
include "binds.kdl"
include "layout.kdl"
spawn-at-startup "waybar"
spawn-sh-at-startup "swaybg -i ~/.config/niri/cafe-at-night_00_3840x2160.png -m fill"
prefer-no-csd
screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
environment {
GDK_BACKEND "wayland,x11,*"
QT_QPA_PLATFORM "wayland:xcb"
// QT_STYLE_OVERRIDE "kvantum"
SDL_VIDEODRIVER "wayland,x11"
MOZ_ENABLE_WAYLAND "1"
ELECTRON_OZONE_PLATFORM_HINT "wayland"
OZONE_PLATFORM "wayland"
// XDG_SESSION_TYPE "wayland"
XDG_CURRENT_DESKTOP "niri"
XDG_SESSION_DESKTOP "niri"
}
cursor {
xcursor-size 24
}
overview {
zoom 0.5
backdrop-color "#24283b"
workspace-shadow {
on
color "#0007"
spread 5
offset x=0 y=5
softness 30
}
}
hotkey-overlay {
skip-at-startup
}
// Work around WezTerm's initial configure bug
// by setting an empty default-column-width.
window-rule {
// This regular expression is intentionally made as specific as possible,
// since this is the default config, and we want no false positives.
// You can get away with just app-id="wezterm" if you want.
match app-id=r#"^org\.wezfurlong\.wezterm$"#
default-column-width {}
}
// Open the Firefox picture-in-picture player as floating by default.
window-rule {
// This app-id regular expression will work for both:
// - host Firefox (app-id is "firefox")
// - Flatpak Firefox (app-id is "org.mozilla.firefox")
match app-id=r#"firefox$"# title="^Picture-in-Picture$"
open-floating true
}
// Example: block out two password managers from screen capture.
// (This example rule is commented out with a "/-" in front.)
window-rule {
match app-id=r#"^org\.keepassxc\.KeePassXC$"#
match app-id=r#"^org\.gnome\.World\.Secrets$"#
block-out-from "screen-capture"
// Use this instead if you want them visible on third-party screenshot tools.
// block-out-from "screencast"
}
// Example: enable rounded corners for all windows.
// (This example rule is commented out with a "/-" in front.)
window-rule {
geometry-corner-radius 16
clip-to-geometry true
}
window-rule {
match app-id="Alacritty"
opacity 0.85
draw-border-with-background false
}