all repos

dotfiles @ 0be1336b764a7ddcda3a5752d78e32a8921e6d61

i use rach linux btw
1 files changed, 6 insertions(+), 17 deletions(-)
niri: open browser focused, and some refactoring
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2025-11-04 15:00:57 +0200
Parent: 4a4d063
M config/niri/config.kdl
···
        82
        82
         // disables client-side decorrations if possible

      
        83
        83
         prefer-no-csd

      
        84
        84
         hotkey-overlay { skip-at-startup; }

      
        
        85
        +animations { off; }

      
        85
        86
         

      
        86
        87
         // set to null if u want disable saving to disk behavior

      
        87
        88
         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
        89
         // }}}

      
        95
        90
         // window/workspace rules {{{

      
        96
        91
         // https://github.com/YaLTeR/niri/wiki/Configuration:-Window-Rules

      
        97
        92
         // https://github.com/YaLTeR/niri/wiki/Configuration:-move-column-to-workspace

      
        98
        93
         

      
        99
        94
         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"; }

      
        
        95
        +workspace "web" { open-on-output "HDMI-A-1"; }

      
        
        96
        +workspace "dev" { open-on-output "HDMI-A-1"; }

      
        102
        97
         workspace "laptop" { open-on-output "eDP-1"; }

      
        103
        98
         

      
        104
        99
         window-rule {

      ···
        114
        109
           match app-id="firefox"

      
        115
        110
           match app-id="Brave-browser"

      
        116
        111
           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"

      
        
        112
        +  open-focused true

      
        124
        113
         }

      
        125
        114
         

      
        126
        115
         window-rule {

      ···
        242
        231
           Mod+Shift+4 { move-column-to-workspace 4; }

      
        243
        232
           Mod+Shift+5 { move-column-to-workspace 5; }

      
        244
        233
         

      
        245
        
        -  Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }

      
        246
        
        -  Mod+WheelScrollUp   cooldown-ms=150 { focus-workspace-up; }

      
        
        234
        +  Mod+WheelScrollDown cooldown-ms=50 { focus-workspace-down; }

      
        
        235
        +  Mod+WheelScrollUp   cooldown-ms=50 { focus-workspace-up; }

      
        247
        236
           // }}}

      
        248
        237
         }

      
        249
        238
         // }}}