nix/graphical/desktop/niri-config.kdl
2025-08-14 13:39:48 +10:00

108 lines
3.5 KiB
Text
Executable file

input {
keyboard {
xkb {
layout ""
model ""
rules ""
variant ""
}
repeat-delay 600
repeat-rate 25
track-layout "global"
}
warp-mouse-to-focus
}
output "DP-1" {
scale 1
transform "90"
}
output "DP-2" {
scale 1
transform "normal"
variable-refresh-rate on-demand=false
}
screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
prefer-no-csd
layout {
gaps 64
struts {
left 0
right 0
top 0
bottom 0
}
focus-ring {
width 4
active-color "#FFAB5B"
inactive-color "#272A2A"
}
border { off; }
default-column-width { proportion 0.500000; }
preset-column-widths {
proportion 0.666667
proportion 0.500000
proportion 0.333333
}
center-focused-column "never"
always-center-single-column
}
cursor {
xcursor-theme "Afterglow-Recolored-Dracula-Orange"
xcursor-size 16
hide-when-typing
hide-after-inactive-ms 5000
}
hotkey-overlay { skip-at-startup; }
binds {
Mod+1 { spawn "tagctl" "toggle-tag" "1"; }
Mod+2 { spawn "tagctl" "toggle-tag" "2"; }
Mod+3 { spawn "tagctl" "toggle-tag" "3"; }
Mod+4 { spawn "tagctl" "toggle-tag" "4"; }
Mod+5 { spawn "tagctl" "toggle-tag" "5"; }
Mod+6 { spawn "tagctl" "toggle-tag" "6"; }
Mod+Ctrl+1 { spawn "tagctl" "exclusive-tag" "1"; }
Mod+Ctrl+2 { spawn "tagctl" "exclusive-tag" "2"; }
Mod+Ctrl+3 { spawn "tagctl" "exclusive-tag" "3"; }
Mod+Ctrl+4 { spawn "tagctl" "exclusive-tag" "4"; }
Mod+Ctrl+5 { spawn "tagctl" "exclusive-tag" "5"; }
Mod+Ctrl+6 { spawn "tagctl" "exclusive-tag" "6"; }
Mod+Ctrl+H { consume-or-expel-window-left; }
Mod+Ctrl+J { move-window-down; }
Mod+Ctrl+K { move-window-up; }
Mod+Ctrl+L { consume-or-expel-window-right; }
Mod+D { spawn "qs" "ipc" "call" "launch" "toggle"; }
Mod+E { spawn "nautilus"; }
Mod+Equal { spawn "bitwarden"; }
Mod+F { spawn "chromium"; }
Mod+H { focus-column-or-monitor-left; }
Mod+J { focus-window-down; }
Mod+K { focus-window-up; }
Mod+L { focus-column-or-monitor-right; }
Mod+R { switch-preset-column-width; }
Mod+Return { spawn "foot"; }
Mod+Shift+1 { spawn "tagctl" "toggle" "1"; }
Mod+Shift+2 { spawn "tagctl" "toggle" "2"; }
Mod+Shift+3 { spawn "tagctl" "toggle" "3"; }
Mod+Shift+4 { spawn "tagctl" "toggle" "4"; }
Mod+Shift+5 { spawn "tagctl" "toggle" "5"; }
Mod+Shift+6 { spawn "tagctl" "toggle" "6"; }
Mod+Shift+E { spawn "qs" "ipc" "call" "logout" "toggle"; }
Mod+Shift+H { move-column-left-or-to-monitor-left; }
Mod+Shift+L { move-column-right-or-to-monitor-right; }
Mod+Shift+Q { close-window; }
Mod+Shift+R { maximize-column; }
Mod+Shift+S { screenshot; }
Mod+Space { toggle-window-floating; }
XF86AudioLowerVolume { spawn "volumectl" "-u" "down"; }
XF86AudioMute { spawn "volumectl" "toggle-mute"; }
XF86AudioNext { spawn "playerctl" "next"; }
XF86AudioPlay { spawn "playerctl" "play-pause"; }
XF86AudioPrev { spawn "playerctl" "previous"; }
XF86AudioRaiseVolume { spawn "volumectl" "-u" "up"; }
XF86AudioStop { spawn "playerctl" "stop"; }
}
window-rule {
geometry-corner-radius 0.000000 10.000000 0.000000 10.000000
clip-to-geometry true
}
xwayland-satellite { path "/nix/store/dqljjf1m5h6jscfgvc7q9kkn00mx0myj-xwayland-satellite-unstable-2025-08-07-e0d1dad/bin/xwayland-satellite"; }