diff --git a/niri/config.kdl b/niri/config.kdl index 0791150..d6b731b 100644 --- a/niri/config.kdl +++ b/niri/config.kdl @@ -3,6 +3,10 @@ // Check the wiki for a full description of the configuration: // https://github.com/YaLTeR/niri/wiki/Configuration:-Introduction +hotkey-overlay { + skip-at-startup +} + // Input device configuration. // Find the full list of options on the wiki: // https://github.com/YaLTeR/niri/wiki/Configuration:-Input @@ -103,35 +107,19 @@ input { // automatically. position x=1280 y=0 } -output "HDMI-A-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 "2560x1440@74.924" - - // You can use integer or fractional scale, for example use 1.5 for 150% scale. +output "Acer Technologies KG272U TP1SA002851C" { + mode "2560x1440" scale 1 - - // Transform allows to rotate the output counter-clockwise, valid values are: - // normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270. transform "90" + position x=0 y=0 +} - // 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=0 y=-730 +output "ViewSonic Corporation VX2758-Series VVF190100000" { + mode "2560x1440" + scale 1 + transform "normal" + position x=1440 y=755 + focus-at-startup } // Settings that influence how windows are positioned and sized. @@ -291,15 +279,12 @@ layout { // This line starts waybar, a commonly used bar for Wayland compositors. // spawn-at-startup "waybar" -spawn-at-startup "/home/danmac/.local/bin/sway_startup" "/usr/share/backgrounds/pika/yurtle_s_travelling_pot_shop_by_neytirix_dfb2d8o.jpg" +spawn-at-startup "swaybg" "-m" "fill" "-i" "/usr/share/backgrounds/gnome/swoosh-l.jxl" spawn-at-startup "xwayland-satellite" -spawn-at-startup "xrdb" "/home/danmac/.Xresources" -spawn-at-startup "flatpak" "run" "com.nextcloud.desktopclient.nextcloud" +spawn-at-startup "swayidle" "-w" "timeout" "601" "niri msg action power-off-monitors" "timeout" "600" "swaylock -f -i /usr/share/backgrounds/gnome/swoosh-l.jxl" "before-sleep" "swaylock -f -i /usr/share/backgrounds/gnome/swoosh-l.jxl" environment { DISPLAY ":0" - XCURSOR_THEME "Pop" - XCURSOR_SIZE "24" } // Uncomment this line to ask the clients to omit their client-side decorations if possible. // If the client will specifically ask for CSD, the request will be honored. @@ -333,13 +318,13 @@ animations { // Work around WezTerm's initial configure bug // by setting an empty default-column-width. -window-rule { +// 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 {} -} + // match app-id=r#"^org\.wezfurlong\.wezterm$"# + // default-column-width {} +// } // Open the Firefox picture-in-picture player as floating by default. window-rule { @@ -355,6 +340,14 @@ window-rule { open-floating true } +window-rule { + // Zed and Zen should be 66% wide + match app-id="dev.zed.Zed" + match app-id="zen" + + default-column-width { proportion 0.66667; } +} + // Example: block out two password managers from screen capture. // (This example rule is commented out with a "/-" in front.) /-window-rule { @@ -391,10 +384,12 @@ binds { // Suggested binds for running programs: terminal, app launcher, screen locker. Mod+T hotkey-overlay-title="Open a Terminal: wezterm" { spawn "wezterm"; } - Mod+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; } + Mod+D hotkey-overlay-title="Run an Application: cosmic-apps" { spawn "cosmic-app-library"; } Mod+B hotkey-overlay-title="Open the Default Browser" { spawn "xdg-open" "http://"; } - Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; } + Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock" "-f" "-i" "/usr/share/backgrounds/gnome/swoosh-l.jxl"; } + // toggle notification panel + Mod+Shift+N hotkey-overlay-title="Toggle notification window" { spawn "swaync-client" "-t"; } // 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. // Mod+T { spawn "bash" "-c" "notify-send hello && exec alacritty"; } @@ -572,6 +567,7 @@ binds { Mod+Shift+R { switch-preset-window-height; } Mod+Ctrl+R { reset-window-height; } Mod+F { maximize-column; } + Mod+G { reset-window-height; } Mod+Shift+F { fullscreen-window; } // Expand the focused column to space not taken up by other fully visible columns.