all repos

dotfiles @ f44cdfe

i use rach linux btw
1 files changed, 44 insertions(+), 38 deletions(-)
niri: disable animations; update window rules; update some keymaps
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2025-06-13 14:36:57 +0300
Parent: 8de2ccc
M config/niri/config.kdl
···
        4
        4
         spawn-at-startup "~/.config/niri/waybar"

      
        5
        5
         spawn-at-startup "dunst";

      
        6
        6
         spawn-at-startup "xwayland-satellite"

      
        7
        
        -spawn-at-startup "wlsunset" "-S" "9:00" "-s" "21:00";

      
        8
        7
         // }}}

      
        9
        8
         // env {{{

      
        10
        9
         environment {

      ···
        23
        22
               options "grp:win_space_toggle,compose:ralt,ctrl:nocaps"

      
        24
        23
             }

      
        25
        24
           }

      
        26
        
        -  focus-follows-mouse

      
        27
        25
           touchpad {

      
        28
        26
             tap

      
        29
        27
             dwt

      ···
        90
        88
         

      
        91
        89
         // https://github.com/YaLTeR/niri/wiki/Configuration:-Animations

      
        92
        90
         animations {

      
        93
        
        -  // off

      
        
        91
        +  off

      
        94
        92
           slowdown 1.0

      
        95
        93
         }

      
        96
        94
         // }}}

      ···
        105
        103
         workspace "media" { open-on-output "HDMI-A-1"; }

      
        106
        104
         

      
        107
        105
         window-rule {

      
        108
        
        -  match app-id=r#"anki$"#

      
        109
        
        -  match app-id=r#"obsidian$"#

      
        110
        
        -  match app-id=r#"thunderbird$"#

      
        111
        
        -  match app-id=r#"^org\.keepassxc\.KeePassXC$"#

      
        112
        
        -  match app-id=r#"^org\.telegram\.desktop$"#

      
        
        106
        +  match app-id="anki"

      
        
        107
        +  match app-id="obsidian"

      
        
        108
        +  match app-id="thunderbird"

      
        
        109
        +  match app-id="org.keepassxc.KeePassXC"

      
        
        110
        +  match app-id="org.telegram.desktop"

      
        
        111
        +  match app-id="io.gitlab.news_flash.NewsFlash"

      
        113
        112
           open-on-workspace "tools"

      
        114
        113
         }

      
        115
        114
         

      
        116
        115
         window-rule {

      
        117
        
        -  match app-id=r#"zen$"#

      
        118
        
        -  match app-id=r#"brave$"#

      
        
        116
        +  match app-id="zen"

      
        
        117
        +  match app-id="brave"

      
        119
        118
           open-on-workspace "web"

      
        120
        119
         }

      
        121
        120
         

      
        122
        121
         window-rule {

      
        123
        
        -  match app-id=r#"Emacs$"#

      
        124
        
        -  match app-id=r#"Code$"#

      
        
        122
        +  match app-id="Emacs"

      
        
        123
        +  match app-id="Code"

      
        125
        124
           open-on-workspace "dev"

      
        126
        125
         }

      
        127
        126
         

      
        128
        127
         window-rule {

      
        129
        
        -  match app-id=r#"Spotify$"#

      
        130
        
        -  match app-id=r#"^org.gnome.Snapshot$"#

      
        131
        
        -  match app-id=r#"sleek$"#

      
        
        128
        +  match app-id="Spotify"

      
        
        129
        +  match app-id="org.gnome.Snapshot"

      
        
        130
        +  match app-id="sleek"

      
        132
        131
           open-on-workspace "laptop"

      
        133
        132
         }

      
        134
        133
         

      
        135
        134
         window-rule {

      
        136
        
        -  match app-id=r#"Spotify$"#

      
        137
        
        -  match app-id=r#"zen$"#

      
        138
        
        -  match app-id=r#"brave$"#

      
        139
        
        -  match app-id=r#"kitty$"#

      
        140
        
        -  match app-id=r#"anki$"#

      
        141
        
        -  match app-id=r#"obsidian$"#

      
        
        135
        +  match app-id="org.gnome.Solanum"

      
        
        136
        +  exclude app-id="zen"

      
        
        137
        +  open-on-workspace "laptop"

      
        
        138
        +}

      
        
        139
        +

      
        
        140
        +window-rule {

      
        
        141
        +  match app-id="Spotify"

      
        
        142
        +  match app-id="zen"

      
        
        143
        +  match app-id="brave"

      
        
        144
        +  match app-id="kitty"

      
        
        145
        +  match app-id="anki"

      
        
        146
        +  match app-id="obsidian"

      
        142
        147
           open-maximized true

      
        143
        148
         }

      
        144
        149
         

      
        145
        150
         window-rule {

      
        146
        
        -  match app-id=r#"pavucontrol$"#

      
        
        151
        +  match app-id="pavucontrol"

      
        
        152
        +  match app-id="org.gnome.Solanum"

      
        147
        153
           open-floating true

      
        148
        154
         }

      
        149
        155
         

      ···
        176
        182
           Super+Alt+L { spawn "swaylock"; } // TODO: change to hyprlock

      
        177
        183
         

      
        178
        184
           // programs {{{

      
        179
        
        -  Mod+Ctrl+a { spawn "anki"; }

      
        180
        
        -  Mod+Ctrl+d { spawn "obsidian"; }

      
        
        185
        +  Mod+Shift+a { spawn "anki"; }

      
        
        186
        +  Mod+Shift+d { spawn "obsidian"; }

      
        181
        187
           // Mod+Shift+f { spawn "newsflash"; } // TODO: fix conflict

      
        182
        
        -  Mod+Ctrl+s { spawn "spotify"; }

      
        183
        
        -  Mod+Ctrl+t { spawn "telegram-desktop"; }

      
        184
        
        -  Mod+Ctrl+w { spawn "zen-browser"; }

      
        
        188
        +  Mod+Shift+s { spawn "spotify"; }

      
        
        189
        +  Mod+Shift+t { spawn "telegram-desktop"; }

      
        
        190
        +  Mod+Shift+w { spawn "zen-browser"; }

      
        185
        191
           // }}}

      
        186
        192
           // func keys {{{

      
        187
        193
           // audio

      ···
        207
        213
           // window management {{{

      
        208
        214
           Mod+r { switch-preset-column-width; }

      
        209
        215
           Mod+t { maximize-column; }

      
        210
        
        -  Mod+e { fullscreen-window; }

      
        
        216
        +  Mod+f { fullscreen-window; }

      
        211
        217
         

      
        212
        218
           Mod+Ctrl+f { toggle-window-floating; }

      
        213
        219
         

      ···
        230
        236
           Mod+Shift+Period { move-column-to-monitor-right; }

      
        231
        237
           // }}}

      
        232
        238
           // workspaces {{{

      
        233
        
        -  Mod+a { focus-workspace 1; }

      
        234
        
        -  Mod+s { focus-workspace 2; }

      
        235
        
        -  Mod+d { focus-workspace 3; }

      
        236
        
        -  Mod+f { focus-workspace 4; }

      
        237
        
        -  Mod+g { focus-workspace 5; }

      
        238
        
        -  Mod+Shift+a { move-column-to-workspace 1; }

      
        239
        
        -  Mod+Shift+s { move-column-to-workspace 2; }

      
        240
        
        -  Mod+Shift+d { move-column-to-workspace 3; }

      
        241
        
        -  Mod+Shift+f { move-column-to-workspace 4; }

      
        242
        
        -  Mod+Shift+g { move-column-to-workspace 5; }

      
        
        239
        +  Mod+1 { focus-workspace 1; }

      
        
        240
        +  Mod+2 { focus-workspace 2; }

      
        
        241
        +  Mod+3 { focus-workspace 3; }

      
        
        242
        +  Mod+4 { focus-workspace 4; }

      
        
        243
        +  Mod+5 { focus-workspace 5; }

      
        
        244
        +  Mod+Shift+1 { move-column-to-workspace 1; }

      
        
        245
        +  Mod+Shift+2 { move-column-to-workspace 2; }

      
        
        246
        +  Mod+Shift+3 { move-column-to-workspace 3; }

      
        
        247
        +  Mod+Shift+4 { move-column-to-workspace 4; }

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

      
        243
        249
         

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

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