diff options
| author | Rubén Beltrán del Río <jj@r.bdr.sh> | 2025-12-26 21:27:18 +0100 |
|---|---|---|
| committer | Rubén Beltrán del Río <jj@r.bdr.sh> | 2026-03-04 23:09:31 +0100 |
| commit | 53f1dc6d88225d1e95a94202d64d47f6560b9b96 (patch) | |
| tree | 2608431c0e2e0e55130d5fa26ab7c74a359bdd0b /config/niri/config.kdl | |
| parent | 79f1a457511017c9ad68e4b0aa206f58b6b3a47f (diff) | |
Soften corners in linux for 2026 theme
Diffstat (limited to 'config/niri/config.kdl')
| -rw-r--r-- | config/niri/config.kdl | 46 |
1 files changed, 34 insertions, 12 deletions
diff --git a/config/niri/config.kdl b/config/niri/config.kdl index 454db2f..4410218 100644 --- a/config/niri/config.kdl +++ b/config/niri/config.kdl @@ -9,6 +9,7 @@ environment { QT_QPA_PLATFORM "wayland-egl" SDL_VIDEODRIVER "wayland" _JAVA_AWT_WM_NONREPARENTING "1" + ELECTRON_OZONE_PLATFORM_HINT "auto" } // Input device configuration. @@ -21,7 +22,8 @@ input { // For more information, see xkeyboard-config(7). options "caps:ctrl_modifier,compose:ralt" // For example: - // layout "us,ru" + layout "us" + // variant "colemak_dh_iso" // options "grp:win_space_toggle,compose:ralt,ctrl:nocaps" } } @@ -83,7 +85,7 @@ output "eDP-1" { // for the resolution. // If the mode is omitted altogether or is invalid, niri will pick one automatically. // Run `niri msg outputs` while inside a niri instance to list all outputs and their modes. - mode "3024x1964@60.000" + mode "3024x1890@60.000" // You can use integer or fractional scale, for example use 1.5 for 150% scale. scale 1.68 @@ -124,6 +126,7 @@ layout { // Proportion sets the width as a fraction of the output width, taking gaps into account. // For example, you can perfectly fit four windows sized "proportion 0.25" on an output. // The default preset widths are 1/3, 1/2 and 2/3 of the output. + proportion 0.25 proportion 0.33333 proportion 0.5 proportion 0.66667 @@ -157,16 +160,17 @@ layout { // off // How many logical pixels the ring extends out from the windows. - width 10 + width 2 // Colors can be set in a variety of ways: // - CSS named colors: "red" // - RGB hex: "#rgb", "#rgba", "#rrggbb", "#rrggbbaa" // - CSS-like notation: "rgb(255, 127, 0)", rgba(), hsl() and a few others. - active-color "#23C17C" - inactive-color "#0F261F" - urgent-color "#FA2B00" + // active-color "#23C17C" + // inactive-color "#0F261F" + // urgent-color "#FA2B00" + active-color "#FFFFFF" // You can also use gradients. They take precedence over solid colors. // Gradients are rendered the same as CSS linear-gradient(angle, from, to). @@ -185,7 +189,11 @@ layout { } border { - off + on + width 2 + active-color "#0F261F" + inactive-color "#CCCCCC" + urgent-color "#FA2B00" } // You can enable drop shadows for windows. @@ -231,8 +239,8 @@ layout { // Top and bottom struts will simply add outer gaps in addition to the area occupied by // layer-shell panels and regular gaps. struts { - // left 64 - // right 64 + left 12 + right 12 // top 64 // bottom 64 } @@ -288,7 +296,13 @@ window-rule { window-rule { match is-focused=false - opacity 0.8 + shadow { + on + softness 15 + spread 5 + offset x=0 y=5 + color "#0003" + } } // Open the Firefox picture-in-picture player as floating by default. @@ -300,6 +314,11 @@ window-rule { open-floating true } +window-rule { + match app-id=r#"it.mijorus.smile"# + open-floating true +} + layer-rule { match namespace="^wallpaper$" place-within-backdrop true @@ -310,6 +329,8 @@ window-rule { // - host Firefox (app-id is "firefox") // - Flatpak Firefox (app-id is "org.mozilla.firefox") match app-id=r#"firefox$"# title="^Extension: (Bitwarden Password Manager)" + match app-id=r#"^Bitwarden$"# + match app-id=r#"^signal$"# block-out-from "screen-capture" } @@ -327,8 +348,8 @@ window-rule { // Example: enable rounded corners for all windows. // (This example rule is commented out with a "/-" in front.) -/-window-rule { - geometry-corner-radius 12 +window-rule { + geometry-corner-radius 4 clip-to-geometry true } @@ -352,6 +373,7 @@ binds { Mod+Space hotkey-overlay-title="Open Launcher (Desktop)" { spawn "j4-dmenu-desktop" "-d" "bemenu --single-instance -i -n -H 26 --hp 10 --fn 'InputSansCompressed Light 10' -p '>' --ff '#0f261F' --tf '#23C17C' --nf '#0f261F' --cf '#23C17C2' --af '#00140d' --hb '#23C17C' --hf '#0f261F' --hf '#DAE6E3' --nb '#DAE6E3' --tb '#DAE6E3' --fb '#DAE6E3' --cb '#DAE6E3' --ab '#DAE6E3'";} Mod+Shift+Space hotkey-overlay-title="Open Launcher (Terminal)" { spawn "bemenu-run" "--single-instance" "-i" "-n" "-H" "26" "--hp" "10" "--fn" "InputSansCompressed Light 10" "-p" ">" "--ff" "#0f261F" "--tf" "#23C17C" "--nf" "#0f261F" "--cf" "#23C17C2" "--af" "#00140d" "--hb" "#23C17C" "--hf" "#0f261F" "--hf" "#DAE6E3" "--nb" "#DAE6E3" "--tb" "#DAE6E3" "--fb" "#DAE6E3" "--cb" "#DAE6E3" "--ab" "#DAE6E3";} Mod+Alt+L hotkey-overlay-title="Lock Screen" { spawn "swaylock"; } + Mod+Ctrl+Space hotkey-overlay-title="Emoji Picker (smile)" { spawn "flatpak" "run" "it.mijorus.smile"; } // You can also use a shell. Do this if you need pipes, multiple commands, etc. // Note: the entire command goes as a single argument in the end. |