diff --git a/src/dot_config/niri/config.kdl b/src/dot_config/niri/config.kdl index 54f5d02..73e554d 100644 --- a/src/dot_config/niri/config.kdl +++ b/src/dot_config/niri/config.kdl @@ -37,6 +37,13 @@ layout { default-column-width { proportion 0.5; } + preset-window-heights { + proportion 0.0 + proportion 0.33333 + proportion 0.5 + proportion 0.66667 + } + focus-ring { // off @@ -49,7 +56,7 @@ layout { spawn-at-startup "waybar" spawn-at-startup "wallpaper" -spawn-at-startup "swayidle" "-w" "timeout" "600" "swaylock -f & niri msg action power-off-monitors" "before-sleep" "swaylock -f" "lock" "swaylock -f" +spawn-at-startup "swayidle" "-w" "timeout" "550" "notify-send -a lock 'Idle, preparing to lock.'" "timeout" "600" "swaylock -f & niri msg action power-off-monitors" "before-sleep" "swaylock -f" "lock" "swaylock -f" // no client side decoration prefer-no-csd @@ -130,7 +137,37 @@ window-rule { block-out-from "screen-capture" } +workspace "chat" { + open-on-output "HDMI-A-1" +} + +window-rule { + match title="discord" + open-on-workspace "chat" + open-maximized true +} + binds { + Alt+1 { focus-workspace 1; } + Alt+2 { focus-workspace 2; } + Alt+3 { focus-workspace 3; } + Alt+4 { focus-workspace 4; } + Alt+5 { focus-workspace 5; } + Alt+6 { focus-workspace 6; } + Alt+7 { focus-workspace 7; } + Alt+8 { focus-workspace 8; } + Alt+9 { focus-workspace 9; } + Alt+0 { focus-workspace "chat"; } + Alt+Shift+1 { move-column-to-workspace 1; } + Alt+Shift+2 { move-column-to-workspace 2; } + Alt+Shift+3 { move-column-to-workspace 3; } + Alt+Shift+4 { move-column-to-workspace 4; } + Alt+Shift+5 { move-column-to-workspace 5; } + Alt+Shift+6 { move-column-to-workspace 6; } + Alt+Shift+7 { move-column-to-workspace 7; } + Alt+Shift+8 { move-column-to-workspace 8; } + Alt+Shift+9 { move-column-to-workspace 9; } + Alt+Shift+0 { move-column-to-workspace "chat"; } Alt+Shift+Slash { show-hotkey-overlay; } Alt+Shift+Return { spawn "newterm.sh"; } @@ -184,17 +221,17 @@ binds { Alt+Page_Down { focus-workspace-down; } Alt+Page_Up { focus-workspace-up; } - Alt+U { focus-workspace-down; } - Alt+I { focus-workspace-up; } + Alt+U { focus-workspace-up; } + Alt+I { focus-workspace-down; } Alt+Ctrl+Page_Down { move-column-to-workspace-down; } Alt+Ctrl+Page_Up { move-column-to-workspace-up; } - Alt+Ctrl+U { move-column-to-workspace-down; } - Alt+Ctrl+I { move-column-to-workspace-up; } + Alt+Ctrl+U { move-column-to-workspace-up; } + Alt+Ctrl+I { move-column-to-workspace-down; } - Alt+Shift+Page_Down { move-workspace-down; } - Alt+Shift+Page_Up { move-workspace-up; } - Alt+Shift+U { move-workspace-down; } - Alt+Shift+I { move-workspace-up; } + Alt+Shift+Page_Down { move-workspace-to-monitor-right; } + Alt+Shift+Page_Up { move-workspace-to-monitor-left; } + Alt+Shift+I { move-workspace-down; } + Alt+Shift+U { move-workspace-up; } // You can bind mouse wheel scroll ticks using the following syntax. // These binds will change direction based on the natural-scroll setting. @@ -220,27 +257,6 @@ binds { // Mod+TouchpadScrollDown { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.02+"; } // Mod+TouchpadScrollUp { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.02-"; } - Alt+1 { focus-workspace 1; } - Alt+2 { focus-workspace 2; } - Alt+3 { focus-workspace 3; } - Alt+4 { focus-workspace 4; } - Alt+5 { focus-workspace 5; } - Alt+6 { focus-workspace 6; } - Alt+7 { focus-workspace 7; } - Alt+8 { focus-workspace 8; } - Alt+9 { focus-workspace 9; } - Alt+0 { focus-workspace 10; } - Alt+Shift+1 { move-column-to-workspace 1; } - Alt+Shift+2 { move-column-to-workspace 2; } - Alt+Shift+3 { move-column-to-workspace 3; } - Alt+Shift+4 { move-column-to-workspace 4; } - Alt+Shift+5 { move-column-to-workspace 5; } - Alt+Shift+6 { move-column-to-workspace 6; } - Alt+Shift+7 { move-column-to-workspace 7; } - Alt+Shift+8 { move-column-to-workspace 8; } - Alt+Shift+9 { move-column-to-workspace 9; } - Alt+Shift+0 { move-column-to-workspace 10; } - Alt+Tab { focus-workspace-previous; } Alt+Ctrl+Comma { consume-window-into-column; }