Files
DCGOS/dotfiles/.config/niri/config.kdl
dichgrem 18f0d3840b build:update_flake
Version 368 -> 371:
  X-Reload-Triggers: ∅ → ε
  alacritty: +208.7 KiB
  at-spi2-core: 2.58.0 → 2.58.1
  atuin: +191.5 KiB
  bat: +46.0 KiB
  binwalk: +35.8 KiB
  blink-fuzzy-lib: +70.7 KiB
  bluez: 5.83 → 5.84, +224.4 KiB
  brave: 1.84.139 → 1.84.141, +212.5 KiB
  cargo: 1.90.0 → 1.91.1, -902.7 KiB
  clang: +12.9 KiB
  clippy: 1.90.0 → 1.91.1, +485.2 KiB
  cloud-hypervisor: +43.6 KiB
  cmocka: 1.1.8 → ∅, -149.3 KiB
  cryptsetup: -114.9 KiB
  curl: 8.16.0 → 8.17.0
  dart: 3.10.0 → 3.10.1, +11.1 KiB
  dav1d: 1.5.1 → 1.5.2
  dbeaver-bin: 25.2.4 → 25.2.5, +27.2 KiB
  dconf: 0.40.0 → 0.49.0, +52.7 KiB
  ddcutil: 2.2.1 → 2.2.3, +24.6 KiB
  deno: +1603.9 KiB
  eza: +8.0 KiB
  fastfetch: 2.55.0 → 2.55.1
  fd: +34.3 KiB
  firefox: ∅ → 145.0.1, +1782.3 KiB
  firefox-unwrapped: ∅ → 145.0.1, +334305.8 KiB
  floorp-bin: 12.5.0 → ∅, -1253.9 KiB
  floorp-bin-unwrapped: 12.5.0 → ∅, -306065.4 KiB
  floorp-policies.json: ε → ∅
  fluidsynth: 2.5.0 → 2.5.1, -60.0 KiB
  flutter: 3.38.1 → 3.38.3, +23.6 KiB
  flutter-tools: 3.38.1 → 3.38.3
  flutter-wrapped: 3.38.1, 3.38.1-sdk → 3.38.3, 3.38.3-sdk
  fzf: -433.1 KiB
  gdk-pixbuf: 2.44.3 → 2.44.4
  gh: -6067.8 KiB
  git-credential-keepassxc: +28.8 KiB
  glycin-loaders: -10.5 KiB
  go: 1.25.3 → 1.25.4, -7773.0 KiB
  gofumpt: -421.1 KiB
  golines: -1197.0 KiB
  gopls: -4605.0 KiB
  greetd: -9.5 KiB
  gsettings-desktop-schemas: 49.0 → 49.1
  gst-plugins-rs: +31.5 KiB
  gstreamer: +9.7 KiB
  gtk4: 4.20.2 → 4.20.3, +184.1 KiB
  gui-for-singbox: -1254.3 KiB
  hwdata: 0.400 → 0.401, +37.9 KiB
  hyprgraphics: 0.3.0 → 0.4.0
  hyprlang: 0.6.5 → 0.6.6
  icu4c: ∅ → 77.1, +39185.6 KiB
  initrd: ε → ∅
  initrd-linux: 6.17.8 → 6.17.9, +160.3 KiB
  ipxe: 1.21.1-unstable-2025-11-13 → 1.21.1-unstable-2025-11-19
  iso-codes: 4.18.0 → 4.19.0, +1680.3 KiB
  just: +25.1 KiB
  kazumi: 1.8.8 → 1.9.0, +7952.5 KiB
  kcmutils: +15.2 KiB
  keepassxc: 2.7.10 → 2.7.11, +790.6 KiB
  kimageformats: -11.9 KiB
  kirigami: +41.8 KiB
  kirigami-addons: +540.4 KiB
  libadwaita: 1.8.0 → 1.8.1, +17.4 KiB
  libcap: 2.76 → 2.77, -392.1 KiB
  libcbor: -94.3 KiB
  libdeflate: 1.24 → 1.25
  libdovi: -267.9 KiB
  libdrm: 2.4.127 → 2.4.128
  libfido2: -58.7 KiB
  libplasma: 6.5.2 → 6.5.3, +201.8 KiB
  libpwquality: -45.3 KiB
  libressl: 4.2.0 → 4.2.1
  librsvg: 2.61.2 → 2.61.3, -28.5 KiB
  libseccomp: -97.5 KiB
  libtpms: -44.0 KiB
  liburcu: 0.15.3 → 0.15.5
  libxcrypt: 4.4.38 → 4.5.2, +33.2 KiB
  linux: 6.17.8 → 6.17.9, 6.17.9-modules, +2885.8 KiB
  livekit-libwebrtc: 125-unstable-2025-03-24 → 125-unstable-2025-07-25, +31.3 KiB
  localsend: -13.9 KiB
  lvm2: -135.0 KiB
  materialgram: -39.7 KiB
  mbedtls: 3.6.4 → 3.6.5, +24.6 KiB
  mesa: +29.2 KiB
  nexttrace: -1399.8 KiB
  ngtcp2: 1.15.1 → 1.17.0, +34.5 KiB
  niri: +23.1 KiB
  nixos-system-dos: 25.11.20251117.89c2b23 → 25.11.20251124.5ae3b07
  nixpkgs-fmt: +26.5 KiB
  nspr: 4.37 → 4.38.2
  nss: ∅ → 3.118.1, +4210.4 KiB
  ntpd-rs: +72.9 KiB
  onefetch: +97.6 KiB
  onnxruntime: ∅ → 1.22.2, +47328.0 KiB
  openjdk: -20.4 KiB
  openjdk-headless: +15.2 KiB
  openvswitch: 3.6.0 → 3.6.1
  payload-dumper-go: -484.0 KiB
  pciutils: +19.0 KiB
  pcsclite: -277.2 KiB
  plasma-activities: 6.5.2 → 6.5.3, +22.9 KiB
  pnpm: 10.22.0 → 10.23.0, -126.9 KiB
  protobuf: 33.0 → 32.1, -164.7 KiB
  python3.12-python-lsp-server: 1.13.1 → 1.13.2
  python3.13-brotli: 1.1.0 → 1.2.0, -891.7 KiB
  python3.13-protobuf: 6.33.0 → 6.33.1
  python3.13-pygobject: 3.54.3 → 3.54.5, +14.0 KiB
  qqc2-desktop-style: +9.8 KiB
  qrencode: -65.9 KiB
  qt5compat: 6.10.0 → 6.10.1
  qtbase: 6.10.0, 6.10.0-only-plugins → 6.10.1, 6.10.1-only-plugins, +28.6 KiB
  qtdeclarative: 6.10.0 → 6.10.1, -446.4 KiB
  qtimageformats: 6.10.0 → 6.10.1
  qtmultimedia: 6.10.0 → 6.10.1, +195.7 KiB
  qtquick3d: 6.10.0 → 6.10.1, +114.7 KiB
  qtshadertools: 6.10.0 → 6.10.1
  qtspeech: 6.10.0 → 6.10.1
  qtsvg: 6.10.0 → 6.10.1
  qttools: 6.10.0 → 6.10.1, -35.2 KiB
  qttranslations: 6.10.0 → 6.10.1
  qtwayland: 6.10.0, 6.10.0-only-plugins → 6.10.1, 6.10.1-only-plugins, +15.7 KiB
  readest: 0.9.91 → 0.9.93, +328.0 KiB
  resvg: -150.1 KiB
  ripgrep: +10.6 KiB
  rt5677-firmware: ε → 4.16-10
  rtl8192su: 0-unstable-2016-10-05 → ∅, -310.7 KiB
  rtl8192su-firmware: ∅ → 0-unstable-2016-10-05, +310.7 KiB
  rtl8761b-firmware: ε → ∅, -17.0 KiB
  rtl8761b-firmware-rtk1395: ∅ → ε, +17.0 KiB
  ruby: +8.7 KiB
  ruff: 0.14.4 → 0.14.5, +920.8 KiB
  rust-analyzer-unwrapped: +919.3 KiB
  rust-lib: +345.9 KiB
  rustc: 1.90.0 → 1.91.1, +23550.4 KiB
  rustc-wrapper: 1.90.0 → 1.91.1
  rustfmt: 1.90.0 → 1.91.1, +145.8 KiB
  sarasa-gothic: 1.0.34 → 1.0.35, +2335.4 KiB
  scx_full: -759.8 KiB
  sd-switch: +15.4 KiB
  shfmt: -317.1 KiB
  sord: 0.16.18 → 0.16.20
  source: +264.6 KiB
  spectre_oxi: -11.8 KiB
  sratom: 0.6.18 → 0.6.20
  starship: +203.8 KiB
  strawberry: -12.0 KiB
  stylua: +154.6 KiB
  swayosd: -15.7 KiB
  swww: +174.1 KiB
  syncthing: -2564.0 KiB
  systemd: 258.1 → 258.2, +27.1 KiB
  systemd-minimal: 258.1 → 258.2
  systemd-minimal-libs: 258.1 → 258.2
  taplo: +115.3 KiB
  termshark: -1751.9 KiB
  thin-provisioning-tools: +24.1 KiB
  tpm2-tss: -430.6 KiB
  tree-sitter: +99.3 KiB
  tsukimi: -40.2 KiB
  tuigreet: +9.8 KiB
  unit-script-initrd-nixos-activation: ∅ → ε
  unit-systemd-tmpfiles-setup-sysroot.service: ε → ∅
  utf8proc: 2.11.0 → 2.11.1
  v4l2loopback: 0.15.1-6.17.8 → 0.15.1-6.17.9
  vimplugin-LazyVim: 2025-11-06 → 2025-11-11
  vimplugin-conform.nvim: 2025-11-05 → 2025-11-17
  vimplugin-luajit2.1-fzf-lua: 0.0.2296-1-unstable-0.0.2296-1 → 0.0.2308-1-unstable-0.0.2308-1
  vimplugin-luajit2.1-grug-far.nvim: 1.6.52-1-unstable-1.6.52-1 → 1.6.53-1-unstable-1.6.53-1
  vimplugin-markview.nvim: 2025-11-06 → 2025-11-16, -15.6 KiB
  vimplugin-mini.nvim: 2025-11-07 → 2025-11-20
  vimplugin-neo-tree.nvim: 2025-11-04 → 2025-11-19
  vimplugin-neoconf.nvim: 2025-11-07 → 2025-11-21
  vimplugin-nvim-lint: 2025-11-06 → 2025-11-21
  vimplugin-nvim-lspconfig: 2025-11-03 → 2025-11-20, +139.7 KiB
  vimplugin-nvim-treesitter-context: 2025-10-21 → 2025-11-10, +8.5 KiB
  vimplugin-snacks.nvim: 2025-11-07 → 2025-11-18
  vimplugin-todo-comments.nvim: 2025-10-28 → 2025-11-10
  webkitgtk: 2.50.1+abi=4.1 → 2.50.2+abi=4.1, +74.6 KiB
  wl-clipboard-rs: -31.7 KiB
  wl-gammarelay-rs: +21.5 KiB
  xkeyboard-config: 2.45 → 2.46, +48.1 KiB
  xwayland-satellite: +68.1 KiB
  yamlfmt: -431.8 KiB
  yazi: +219.2 KiB
  zed-editor: 0.212.6 → 0.213.3, -456.0 KiB
  zellij: +789.3 KiB
  zfs-user: 2.3.4 → 2.3.5
  zoxide: +12.5 KiB
2025-11-28 20:08:02 +08:00

297 lines
9.2 KiB
Plaintext
Vendored

input {
disable-power-key-handling
focus-follows-mouse max-scroll-amount="0%"
warp-mouse-to-focus
mouse {
accel-profile "flat"
scroll-factor 0.5
}
touchpad {
accel-profile "flat"
dwt
natural-scroll
scroll-factor 0.5
tap
}
}
binds {
// App Launcher
Super+Space { spawn "fuzzel"; }
// Shortcuts
Super+Shift+Slash { show-hotkey-overlay; }
Super+E { spawn "nemo"; }
Super+B { spawn "firefox";}
Super+L { spawn "hyprlock";}
Super+M { spawn-sh "$HOME/.config/niri/switch_monitors.sh"; }
Ctrl+Super+Q { spawn "wlogout"; }
Super+Return { spawn "alacritty"; }
Super+S { screenshot; }
Super+Ctrl+S { screenshot-window; }
Super+Ctrl+Alt+Print { screenshot-screen; }
// Window actions
Super+F { fullscreen-window; }
Super+Q { close-window; }
// Workspace jumping
Super+1 { focus-workspace 1; }
Super+2 { focus-workspace 2; }
Super+3 { focus-workspace 3; }
Super+4 { focus-workspace 4; }
Super+5 { focus-workspace 5; }
Super+6 { focus-workspace 6; }
Super+7 { focus-workspace 7; }
Super+8 { focus-workspace 8; }
Super+9 { focus-workspace 9; }
Super+0 { focus-workspace 10; }
// Window movement between Workspace
Super+Shift+1 { move-window-to-workspace 1; }
Super+Shift+2 { move-window-to-workspace 2; }
Super+Shift+3 { move-window-to-workspace 3; }
Super+Shift+4 { move-window-to-workspace 4; }
Super+Shift+5 { move-window-to-workspace 5; }
Super+Shift+6 { move-window-to-workspace 6; }
Super+Shift+7 { move-window-to-workspace 7; }
Super+Shift+8 { move-window-to-workspace 8; }
Super+Shift+9 { move-window-to-workspace 9; }
Super+Shift+0 { move-window-to-workspace 10; }
// Window focus movement
/// Using familier keys
Alt+Tab { focus-column-right; }
Alt+Shift+Tab { focus-column-left; }
/// Using Arrow keys
Super+Left { focus-column-left; }
Super+Down { focus-window-down; }
Super+Up { focus-window-up; }
Super+Right { focus-column-right; }
/// Using Vim-like keys
Super+Shift+H { focus-column-left; }
Super+Shift+J { focus-window-down; }
Super+Shift+K { focus-window-up; }
Super+Shift+L { focus-column-right; }
// Window direction movement
/// Using Arrow keys
Super+Shift+Left { move-column-left; }
Super+Shift+Down { move-window-down; }
Super+Shift+Up { move-window-up; }
Super+Shift+Right { move-column-right; }
Super+Home { focus-column-first; }
Super+End { focus-column-last; }
Super+Ctrl+Home { move-column-to-first; }
Super+Ctrl+End { move-column-to-last; }
Super+Shift+Alt+Left { focus-monitor-left; }
Super+Shift+Alt+Down { focus-monitor-down; }
Super+Shift+Alt+Up { focus-monitor-up; }
Super+Shift+Alt+Right { focus-monitor-right; }
Super+Shift+Ctrl+Left { move-column-to-monitor-left; }
Super+Shift+Ctrl+Down { move-column-to-monitor-down; }
Super+Shift+Ctrl+Up { move-column-to-monitor-up; }
Super+Shift+Ctrl+Right { move-column-to-monitor-right; }
Super+Page_Down { focus-workspace-down; }
Super+Page_Up { focus-workspace-up; }
Super+U { focus-workspace-down; }
Super+I { focus-workspace-up; }
Super+Ctrl+Page_Down { move-column-to-workspace-down; }
Super+Ctrl+Page_Up { move-column-to-workspace-up; }
Super+Ctrl+U { move-column-to-workspace-down; }
Super+Ctrl+I { move-column-to-workspace-up; }
Super+Shift+Page_Down { move-workspace-down; }
Super+Shift+Page_Up { move-workspace-up; }
Super+Shift+U { move-workspace-down; }
Super+Shift+I { move-workspace-up; }
Super+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
Super+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
Super+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; }
Super+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; }
Super+WheelScrollRight { focus-column-right; }
Super+WheelScrollLeft { focus-column-left; }
Super+Ctrl+WheelScrollRight { move-column-right; }
Super+Ctrl+WheelScrollLeft { move-column-left; }
Super+Shift+WheelScrollDown { focus-column-right; }
Super+Shift+WheelScrollUp { focus-column-left; }
Super+Ctrl+Shift+WheelScrollDown { move-column-right; }
Super+Ctrl+Shift+WheelScrollUp { move-column-left; }
// Alternatively, there are commands to move just a single window:
// Super+Ctrl+1 { move-window-to-workspace 1; }
// Switches focus between the current and the previous workspace.
// Super+Tab { focus-workspace-previous; }
Super+Comma { consume-window-into-column; }
Super+Period { expel-window-from-column; }
Super+R { switch-preset-column-width; }
Super+Shift+R { reset-window-height; }
Super+Shift+F { maximize-column; }
Super+C { center-column; }
Super+Minus { set-column-width "-10%"; }
Super+Equal { set-column-width "+10%"; }
// Finer height adjustments when in column with other windows.
Super+Shift+Minus { set-window-height "-10%"; }
Super+Shift+Equal { set-window-height "+10%"; }
// Actions to switch layouts.
// Note: if you uncomment these, make sure you do NOT have
// a matching layout switch hotkey configured in xkb options above.
// Having both at once on the same hotkey will break the switching,
// since it will switch twice upon pressing the hotkey (once by xkb, once by niri).
// Super+Space { switch-layout "next"; }
// Super+Shift+Space { switch-layout "prev"; }
// The quit action will show a confirmation dialog to avoid accidental exits.
Super+Shift+E { quit; }
// Powers off the monitors. To turn them back on, do any input like
// moving the mouse or pressing any other key.
Super+Shift+P { power-off-monitors; }
// Volume control
XF86AudioLowerVolume allow-when-locked=true { spawn "swayosd-client" "--output-volume" "-2"; }
XF86AudioMute allow-when-locked=true { spawn "swayosd-client" "--output-volume" "mute-toggle"; }
XF86AudioRaiseVolume allow-when-locked=true { spawn "swayosd-client" "--output-volume" "+2"; }
XF86MonBrightnessDown allow-when-locked=true { spawn "swayosd-client" "--brightness" "-5"; }
XF86MonBrightnessUp allow-when-locked=true { spawn "swayosd-client" "--brightness" "+5"; }
// Volume control (bonus)
Ctrl+Alt+Down allow-when-locked=true { spawn "swayosd-client" "--output-volume" "-2"; }
Ctrl+Alt+Up allow-when-locked=true { spawn "swayosd-client" "--output-volume" "+2"; }
}
environment {
CURRENT_COMPOSITOR "niri"
DISPLAY ":0"
XDG_CURRENT_DESKTOP "niri"
XDG_SESSION_DESKTOP "niri"
}
hotkey-overlay {
skip-at-startup
}
prefer-no-csd
screenshot-path "~/Pictures/Screenshots/SCREENSHOT-%Y-%m-%d-%H:%M:%S.png"
spawn-at-startup "fcitx5" "-d" "-r"
spawn-at-startup "nm-applet"
spawn-at-startup "blueman-applet"
spawn-at-startup "sh" "-c" "dbus-update-activation-environment --systemd --all && systemctl --user stop niri-session.target && systemctl --user start niri-session.target"
spawn-at-startup "swayosd-server"
spawn-at-startup "swww-daemon"
spawn-at-startup "sh" "-c" "sleep 1 && swww img $HOME/Git/DCGOS/dotfiles/.local/share/wallpapers/yohoho.jpg"
spawn-at-startup "swww" "restore"
spawn-at-startup "waybar"
spawn-at-startup "lxqt-policykit-agent"
window-rule {
block-out-from "screen-capture"
match app-id=r#"^org\.keepassxc\.KeePassXC$"#
match app-id=r#"^org\.gnome\.World\.Secrets$"#
// Use this instead if you want them visible on third-party screenshot tools.
// block-out-from "screencast"
}
window-rule {
clip-to-geometry true
geometry-corner-radius 10
}
animations {
// Uncomment to turn off all animations.
// You can also put "off" into each individual animation to disable it.
// off
// Slow down all animations by this factor. Values below 1 speed them up instead.
// slowdown 3.0
// Individual animations.
workspace-switch {
spring damping-ratio=1.0 stiffness=1000 epsilon=0.0001
}
window-open {
duration-ms 150
curve "ease-out-expo"
}
window-close {
duration-ms 150
curve "ease-out-quad"
}
horizontal-view-movement {
spring damping-ratio=1.0 stiffness=800 epsilon=0.0001
}
window-movement {
spring damping-ratio=1.0 stiffness=800 epsilon=0.0001
}
window-resize {
spring damping-ratio=1.0 stiffness=800 epsilon=0.0001
}
config-notification-open-close {
spring damping-ratio=0.6 stiffness=1000 epsilon=0.001
}
screenshot-ui-open {
duration-ms 200
curve "ease-out-quad"
}
}
layout {
center-focused-column "on-overflow"
border {
width 1
active-color "#313244FF"
inactive-color "#1e1e2eFF"
}
default-column-width { proportion 1.00; }
focus-ring {
off
active-color "#31324400"
inactive-color "#31324400"
width 3
}
gaps 2
preset-column-widths {
proportion 0.33333
proportion 0.5
proportion 0.66667
}
struts {
left 0.1
right 0.1
top 0
bottom 0
}
}