niri: open browser focused, and some refactoring

olexsmir.xyz 0be1336b 4a4d063f

verified
Changed files
+6 -17
config
niri
+6 -17
config/niri/config.kdl
··· 82 // disables client-side decorrations if possible 83 prefer-no-csd 84 hotkey-overlay { skip-at-startup; } 85 86 // set to null if u want disable saving to disk behavior 87 screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png" 88 - 89 - // https://github.com/YaLTeR/niri/wiki/Configuration:-Animations 90 - animations { 91 - off 92 - slowdown 1.0 93 - } 94 // }}} 95 // window/workspace rules {{{ 96 // https://github.com/YaLTeR/niri/wiki/Configuration:-Window-Rules 97 // https://github.com/YaLTeR/niri/wiki/Configuration:-move-column-to-workspace 98 99 workspace "tools" { open-on-output "HDMI-A-1"; } 100 - workspace "web"{ open-on-output "HDMI-A-1"; } 101 - workspace "dev"{ open-on-output "HDMI-A-1"; } 102 workspace "laptop" { open-on-output "eDP-1"; } 103 104 window-rule { ··· 114 match app-id="firefox" 115 match app-id="Brave-browser" 116 open-on-workspace "web" 117 - } 118 - 119 - window-rule { 120 - match app-id="Emacs" 121 - match app-id="Code" 122 - match app-id="Zed" 123 - open-on-workspace "dev" 124 } 125 126 window-rule { ··· 242 Mod+Shift+4 { move-column-to-workspace 4; } 243 Mod+Shift+5 { move-column-to-workspace 5; } 244 245 - Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; } 246 - Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; } 247 // }}} 248 } 249 // }}}
··· 82 // disables client-side decorrations if possible 83 prefer-no-csd 84 hotkey-overlay { skip-at-startup; } 85 + animations { off; } 86 87 // set to null if u want disable saving to disk behavior 88 screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png" 89 // }}} 90 // window/workspace rules {{{ 91 // https://github.com/YaLTeR/niri/wiki/Configuration:-Window-Rules 92 // https://github.com/YaLTeR/niri/wiki/Configuration:-move-column-to-workspace 93 94 workspace "tools" { open-on-output "HDMI-A-1"; } 95 + workspace "web" { open-on-output "HDMI-A-1"; } 96 + workspace "dev" { open-on-output "HDMI-A-1"; } 97 workspace "laptop" { open-on-output "eDP-1"; } 98 99 window-rule { ··· 109 match app-id="firefox" 110 match app-id="Brave-browser" 111 open-on-workspace "web" 112 + open-focused true 113 } 114 115 window-rule { ··· 231 Mod+Shift+4 { move-column-to-workspace 4; } 232 Mod+Shift+5 { move-column-to-workspace 5; } 233 234 + Mod+WheelScrollDown cooldown-ms=50 { focus-workspace-down; } 235 + Mod+WheelScrollUp cooldown-ms=50 { focus-workspace-up; } 236 // }}} 237 } 238 // }}}