niri: open browser focused, and some refactoring

This commit is contained in:
Oleksandr Smirnov 2025-11-04 15:00:57 +02:00
parent 4a4d063f99
commit 0be1336b76
No known key found for this signature in database

View file

@ -82,15 +82,10 @@ layout {
// disables client-side decorrations if possible
prefer-no-csd
hotkey-overlay { skip-at-startup; }
animations { off; }
// set to null if u want disable saving to disk behavior
screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
// https://github.com/YaLTeR/niri/wiki/Configuration:-Animations
animations {
off
slowdown 1.0
}
// }}}
// window/workspace rules {{{
// https://github.com/YaLTeR/niri/wiki/Configuration:-Window-Rules
@ -114,13 +109,7 @@ window-rule {
match app-id="firefox"
match app-id="Brave-browser"
open-on-workspace "web"
}
window-rule {
match app-id="Emacs"
match app-id="Code"
match app-id="Zed"
open-on-workspace "dev"
open-focused true
}
window-rule {
@ -242,8 +231,8 @@ binds {
Mod+Shift+4 { move-column-to-workspace 4; }
Mod+Shift+5 { move-column-to-workspace 5; }
Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
Mod+WheelScrollDown cooldown-ms=50 { focus-workspace-down; }
Mod+WheelScrollUp cooldown-ms=50 { focus-workspace-up; }
// }}}
}
// }}}