updated for niri config

This commit is contained in:
danmac
2025-06-08 23:16:14 +09:30
parent d66f51c324
commit 399f3ef876
61 changed files with 1114 additions and 495 deletions

View File

@@ -47,6 +47,7 @@ input {
trackpoint {
// off
// natural-scroll
// accel-speed 0.2
// accel-profile "flat"
@@ -56,11 +57,14 @@ input {
}
// Uncomment this to make the mouse warp to the center of newly focused windows.
// warp-mouse-to-focus
warp-mouse-to-focus
// Focus windows and outputs automatically when moving the mouse into them.
// Setting max-scroll-amount="0%" makes it work only on windows already fully on screen.
// focus-follows-mouse max-scroll-amount="0%"
focus-follows-mouse max-scroll-amount="0%"
// Change the Mod key to Alt
mod-key "Alt"
}
// You can configure outputs by their name, which you can find
@@ -99,6 +103,36 @@ 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 "<width>x<height>" or "<width>x<height>@<refresh rate>".
// 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.
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 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
}
// Settings that influence how windows are positioned and sized.
// Find more information on the wiki:
@@ -256,12 +290,16 @@ layout {
// See the binds section below for more spawn examples.
// This line starts waybar, a commonly used bar for Wayland compositors.
spawn-at-startup "waybar"
spawn-at-startup "swaybg" "-m" "fill" "-i" "/usr/share/backgrounds/pika/yurtle_s_travelling_pot_shop_by_neytirix_dfb2d8o.jpg"
// 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 "xwayland-satellite"
spawn-at-startup "xrdb" "/home/danmac/.Xresources"
spawn-at-startup "flatpak" "run" "com.nextcloud.desktopclient.nextcloud"
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.
@@ -310,8 +348,9 @@ window-rule {
// - Flatpak Firefox (app-id is "org.mozilla.firefox")
match app-id=r#"firefox$"# title="^Picture-in-Picture$"
match app-id=r#"zen$"# title="^Picture-in-Picture$"
match app-id=r#"zen$"# title="Bitwarden"
match app-id=r#"zen$"# title="^Extension:"
match app-id=r#"com.nextcloud.desktopclient.nextcloud$"#
match app-id=r#"mako"#
open-floating true
}
@@ -542,7 +581,7 @@ binds {
Mod+C { center-column; }
// Center all fully visible columns on screen.
Mod+Ctrl+C { center-visible-columns; }
Super+Ctrl+C { center-visible-columns; }
// Finer width adjustments.
// This command can also:
@@ -552,12 +591,12 @@ binds {
// * adjust width as a percentage of screen width: "-10%" or "+10%"
// Pixel sizes use logical, or scaled, pixels. I.e. on an output with scale 2.0,
// set-column-width "100" will make the column occupy 200 physical screen pixels.
Mod+Minus { set-column-width "-10%"; }
Mod+Equal { set-column-width "+10%"; }
Mod+Minus { set-column-width "-2%"; }
Mod+Equal { set-column-width "+2%"; }
// Finer height adjustments when in column with other windows.
Mod+Shift+Minus { set-window-height "-10%"; }
Mod+Shift+Equal { set-window-height "+10%"; }
Mod+Shift+Minus { set-window-height "-2%"; }
Mod+Shift+Equal { set-window-height "+2%"; }
// Move the focused window between the floating and the tiling layout.
Mod+V { toggle-window-floating; }