|
307 | 307 | active.color = "#${config.colors.blue}"; |
308 | 308 | inactive.color = "#${config.colors.light_bg}"; |
309 | 309 | }; |
310 | | - default-column-width.proportion = 0.3333; |
| 310 | + default-column-width.proportion = 0.333; |
311 | 311 | preset-column-widths = [ |
312 | | - {proportion = 0.3333;} |
| 312 | + {proportion = 0.333;} |
313 | 313 | {proportion = 0.5;} |
314 | | - {proportion = 0.6667;} |
| 314 | + {proportion = 0.667;} |
315 | 315 | ]; |
316 | 316 | preset-window-heights = [ |
317 | | - {proportion = 0.2;} |
318 | | - {proportion = 0.4;} |
319 | | - {proportion = 0.6;} |
320 | | - {proportion = 0.8;} |
| 317 | + {proportion = 0.333;} |
| 318 | + {proportion = 0.5;} |
| 319 | + {proportion = 0.667;} |
321 | 320 | ]; |
322 | 321 | tab-indicator = { |
323 | 322 | position = "right"; |
|
347 | 346 | ]; |
348 | 347 | block-out-from = "screencast"; |
349 | 348 | } |
| 349 | + { |
| 350 | + matches = [ |
| 351 | + { |
| 352 | + title = "Picture-in-Picture"; |
| 353 | + app-id = "firefox"; |
| 354 | + } |
| 355 | + ]; |
| 356 | + open-floating = true; |
| 357 | + } |
350 | 358 | { |
351 | 359 | matches = [ |
352 | 360 | {is-window-cast-target = true;} |
|
425 | 433 |
|
426 | 434 | # window width |
427 | 435 | "Mod+R".action = switch-preset-column-width; |
428 | | - "Mod+Comma".action = set-column-width "33.33%"; |
429 | | - "Mod+Period".action = set-column-width "66.67%"; |
| 436 | + "Mod+Comma".action = set-column-width "33.3%"; |
| 437 | + "Mod+Period".action = set-column-width "66.7%"; |
430 | 438 | "Mod+Slash".action = set-column-width "50%"; |
431 | 439 | "Mod+M".action = maximize-column; |
432 | 440 | "Mod+Ctrl+M".action = expand-column-to-available-width; |
|
452 | 460 | "Ctrl+Print".action = screenshot-window; |
453 | 461 |
|
454 | 462 | # focus |
455 | | - "Mod+H".action = focus-column-left-or-last; |
| 463 | + # "Mod+H".action = focus-column-left-or-last; |
| 464 | + # "Mod+L".action = focus-column-right-or-first; |
| 465 | + "Mod+H".action = focus-column-or-monitor-left; |
456 | 466 | "Mod+J".action = focus-window-or-workspace-down; |
457 | 467 | "Mod+K".action = focus-window-or-workspace-up; |
458 | | - "Mod+L".action = focus-column-right-or-first; |
| 468 | + "Mod+L".action = focus-column-or-monitor-right; |
459 | 469 |
|
460 | 470 | # small move |
461 | 471 | "Mod+Shift+H".action = consume-or-expel-window-left; |
462 | 472 | "Mod+Shift+L".action = consume-or-expel-window-right; |
463 | | - "Mod+Shift+J".action = move-window-down-or-to-workspace-down; |
464 | | - "Mod+Shift+K".action = move-window-up-or-to-workspace-up; |
| 473 | + "Mod+Shift+J".action = spawn "fish" "-c" "niri msg -j windows | jq -er '.[]|select(.is_focused==true)|.is_floating' && niri msg action move-window-to-workspace-down || niri msg action move-window-down-or-to-workspace-down"; |
| 474 | + "Mod+Shift+K".action = spawn "fish" "-c" "niri msg -j windows | jq -er '.[]|select(.is_focused==true)|.is_floating' && niri msg action move-window-to-workspace-up || niri msg action move-window-up-or-to-workspace-up"; |
465 | 475 |
|
466 | 476 | # large move |
467 | | - "Mod+Ctrl+H".action = move-column-left; |
| 477 | + # "Mod+Ctrl+H".action = move-column-left-or-to-monitor-left; |
468 | 478 | "Mod+Ctrl+J".action = move-workspace-down; |
469 | 479 | "Mod+Ctrl+K".action = move-workspace-up; |
470 | | - "Mod+Ctrl+L".action = move-column-right; |
| 480 | + # "Mod+Ctrl+L".action = move-column-right-or-to-monitor-right; |
| 481 | + "Mod+Ctrl+H".action = spawn "fish" "-c" "niri msg -j windows | jq -er '.[]|select(.is_focused==true)|.is_floating' && niri msg action move-window-to-monitor-left || niri msg action move-column-left-or-to-monitor-left"; |
| 482 | + "Mod+Ctrl+L".action = spawn "fish" "-c" "niri msg -j windows | jq -er '.[]|select(.is_focused==true)|.is_floating' && niri msg action move-window-to-monitor-right || niri msg action move-column-right-or-to-monitor-right"; |
471 | 483 |
|
472 | 484 | # swaylike workspace focus with wrapping |
473 | 485 | # "Mod+Ctrl+J".action = spawn "fish" "-c" "niri msg -j workspaces | jq -r 'sort_by(.idx).[-2].is_focused' | grep true; and niri msg action focus-workspace (niri msg -j workspaces | jq -r 'sort_by(.idx).[0].idx'); or niri msg action focus-workspace-down"; |
|
0 commit comments