diff --git a/.config/niri/config.kdl b/.config/niri/config.kdl index a2dc8c9..aec0561 100644 --- a/.config/niri/config.kdl +++ b/.config/niri/config.kdl @@ -13,7 +13,7 @@ input { // For more information, see xkeyboard-config(7). // For example: - layout "us,ru,ua" + layout "us,ua,ru" options "grp:win_space_toggle" // If this section is empty, niri will fetch xkb settings @@ -46,7 +46,7 @@ input { // off // natural-scroll // accel-speed 0.2 - // accel-profile "flat" + accel-profile "flat" // scroll-method "no-scroll" } @@ -76,38 +76,10 @@ input { // https://yalter.github.io/niri/Configuration:-Outputs // Remember to uncomment the node by removing "/-"! output "eDP-1" { - // Uncomment this line to disable this output. // off - // Resolution and, optionally, refresh rate of the output. - // The format is "x" or "x@". - // If the refresh rate is omitted, niri will pick the highest refresh rate - // 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 "1920x1200@60" - - // You can use integer or fractional scale, for example use 1.5 for 150% scale. scale 1.25 - - // Transform allows to rotate the output counter-clockwise, valid values are: - // normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270. - transform "normal" - - // Position of the output in the global coordinate space. - // This affects directional monitor actions like "focus-monitor-left", and cursor movement. - // The cursor can only move between directly adjacent outputs. - // Output scale and rotation has to be taken into account for positioning: - // outputs are sized in logical, or scaled, pixels. - // For example, a 3840×2160 output with scale 2.0 will have a logical size of 1920×1080, - // so to put another output directly adjacent to it on the right, set its x to 1920. - // If the position is unset or results in an overlap, the output is instead placed - // automatically. - // position x=1280 y=0 -} - -output "HDMI-A-1" { - mode "1920x1080@100" } // Settings that influence how windows are positioned and sized. @@ -115,7 +87,9 @@ output "HDMI-A-1" { // https://yalter.github.io/niri/Configuration:-Layout layout { // Set gaps around windows in logical pixels. - gaps 17 + gaps 10 + + background-color "transparent" // When to center a column when changing focus, options are: // - "never", default behavior, focusing an off-screen column will keep at the left @@ -163,7 +137,7 @@ layout { off // How many logical pixels the ring extends out from the windows. - width 3 + width 4 // Colors can be set in a variety of ways: // - CSS named colors: "red" @@ -199,10 +173,10 @@ layout { border { // The settings are the same as for the focus ring. // If you enable the border, you probably want to disable the focus ring. - // off + // off - width 3 - active-color "#CBA6F7" + width 4 + active-color "#ffc87f" inactive-color "#505050" // Color of the border around windows that request your attention. @@ -272,14 +246,14 @@ layout { // See the binds section below for more spawn examples. // This line starts waybar, a commonly used bar for Wayland compositors. -// spawn-at-startup "qs" "-c" "noctalia-shell" +spawn-at-startup "waybar" // To run a shell command (with variables, pipes, etc.), use spawn-sh-at-startup: // spawn-sh-at-startup "qs -c ~/source/qs/MyAwesomeShell" hotkey-overlay { // Uncomment this line to disable the "Important Hotkeys" pop-up at startup. - skip-at-startup + // skip-at-startup } // Uncomment this line to ask the clients to omit their client-side decorations if possible. @@ -289,8 +263,13 @@ hotkey-overlay { // After enabling or disabling this, you need to restart the apps for this to take effect. prefer-no-csd -// Disable saving screenshots to disk -screenshot-path null +// You can change the path where screenshots are saved. +// 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. +screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png" + +// You can also set this to null to disable saving screenshots to disk. +// screenshot-path null // Animation settings. // The wiki explains how to configure individual animations: @@ -313,8 +292,8 @@ 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.telegram.desktop$"# - default-column-width { proportion 0.33333; } + match app-id=r#"^org\.wezfurlong\.wezterm$"# + default-column-width {} } // Open the Firefox picture-in-picture player as floating by default. @@ -341,7 +320,7 @@ window-rule { // Example: enable rounded corners for all windows. // (This example rule is commented out with a "/-" in front.) window-rule { - geometry-corner-radius 13 + geometry-corner-radius 10 clip-to-geometry true } @@ -362,7 +341,7 @@ binds { // Suggested binds for running programs: terminal, app launcher, screen locker. Mod+Return hotkey-overlay-title="Open a Terminal: alacritty" { spawn "alacritty"; } - Mod+D hotkey-overlay-title="Run an Application Launcher" { spawn-sh "qs -c noctalia-shell ipc call launcher toggle"; } + Mod+D hotkey-overlay-title="Run an Application: Noctalia Launcher" { spawn-sh "qs -c noctalia-shell ipc call launcher toggle"; } Super+Alt+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. @@ -389,8 +368,8 @@ binds { // Example brightness key mappings for brightnessctl. // You can use regular spawn with multiple arguments too (to avoid going through "sh"), // but you need to manually put each argument in separate "" quotes. - XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "+5%"; } - XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "5%-"; } + XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "+10%"; } + XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "10%-"; } // Open/close the Overview: a zoomed-out view of workspaces and windows. // You can also move the mouse into the top-left hot corner, @@ -598,9 +577,9 @@ binds { // Mod+Space { switch-layout "next"; } // Mod+Shift+Space { switch-layout "prev"; } - Mod+Shift+S { screenshot; } - Print { screenshot-screen; } - Mod+Shift+W { screenshot-window; } + Print { screenshot; } + Ctrl+Print { screenshot-screen; } + Alt+Print { screenshot-window; } // Applications such as remote-desktop clients and software KVM switches may // request that niri stops processing the keyboard shortcuts defined here @@ -625,3 +604,16 @@ debug { // Allows notification actions and window activation from Noctalia. honor-xdg-activation-with-invalid-serial } + +// Set the regular wallpaper on the backdrop. +layer-rule { + match namespace="^noctalia-wallpaper*" + place-within-backdrop true +} + +// Optionally, disable the workspace shadows in the overview. +overview { + workspace-shadow { + off + } +}