Files
nix-flake/dotfiles/takamaki/niri.kdl
T

108 lines
2.7 KiB
KDL

include "./shared.kdl"
input {
keyboard {
repeat-delay 600
repeat-rate 25
}
mouse {
accel-speed 0.25
accel-profile "flat"
}
}
output "DP-2" {
mode "2560x1440"
}
output "HDMI-A-2" {
mode "1920x1080@60"
transform "270"
position x=-1080 y=-250
}
output "HDMI-A-1" {
mode "1920x1080@60"
transform "270"
position x=-1080 y=-250
}
overview { zoom 0.67; }
layout {
gaps 16
struts {
left 24
right 24
top -12
bottom -4
}
focus-ring {
width 1.5
}
default-column-width
center-focused-column "never"
always-center-single-column
empty-workspace-above-first
}
binds {
Mod+B { spawn "zen-browser"; }
Mod+C { spawn "kcalc"; }
Mod+E { spawn "dolphin"; }
ISO_Level3_Shift+Comma { spawn "equibop" "--toggle-mic"; }
ISO_Level3_Shift+Period { spawn "equibop" "--toggle-deafen"; }
Mod+A { spawn "toggle-easyeffects"; }
Mod+WheelScrollUp { focus-column-left; }
Mod+WheelScrollDown { focus-column-right; }
Mod+Shift+WheelScrollUp { focus-workspace-up; }
Mod+Shift+WheelScrollDown { focus-workspace-down; }
Mod+equal { set-column-width "+5%"; }
Mod+minus { set-column-width "-5%"; }
Mod+Control+Left { focus-monitor-left; }
Mod+Control+Right { focus-monitor-right; }
Mod+Shift+Control+Up { move-workspace-up; }
Mod+Shift+Control+Down { move-workspace-down; }
Mod+Shift+Control+Left { move-window-to-monitor-left; }
Mod+Shift+Control+Right { move-window-to-monitor-right; }
Mod+XF86AudioRaiseVolume cooldown-ms=250 { spawn "increase-brightness" "/dev/i2c-10"; }
Mod+XF86AudioLowerVolume cooldown-ms=250 { spawn "decrease-brightness" "/dev/i2c-10"; }
Mod+Shift+XF86AudioRaiseVolume cooldown-ms=250 { spawn "increase-brightness" "/dev/i2c-6"; }
Mod+Shift+XF86AudioLowerVolume cooldown-ms=250 { spawn "decrease-brightness" "/dev/i2c-6"; }
}
window-rule {
geometry-corner-radius 4
}
window-rule { // Maximized on vertical monitor
match at-startup=true app-id="^equibop$"
open-maximized-to-edges true
open-on-output "HDMI-A-1"
}
window-rule { // Maximized on main monitor
match at-startup=true app-id="^steam$" title="^Steam$"
open-maximized-to-edges true
open-on-output "DP-2"
}
window-rule { // Fullscreen on main monitor
match app-id="^steam_app_\\d+$"
open-fullscreen true
open-on-output "DP-2"
}
window-rule { // Maximized on any monitor
match app-id="^code$"
open-maximized-to-edges true
}
window-rule {
match app-id="^kitty$"
default-column-width { proportion 0.4; }
open-on-output "DP-2"
}
window-rule {
match app-id="^org\\.prismlauncher\\.PrismLauncher$"
default-window-height { fixed 750; }
}