1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
prefer-no-csd

input {
  keyboard {
    xkb {
      layout "us"
    }
  }

  touchpad {
    // off
    tap
  }

  mouse {
    // off
  }

  trackpoint {
    // off
  }
  focus-follows-mouse max-scroll-amount="5%"
}

output "eDP-1" {
  // off

  mode "1920x1080@60.061"
  variable-refresh-rate
  scale 1.4

  transform "normal"

}

layout {
  gaps 0
  center-focused-column "on-overflow"
  always-center-single-column

  preset-column-widths {
    proportion 0.33333
    proportion 0.5
    proportion 0.66667
    proportion 1.0

  }

  preset-window-heights {
    proportion 0.33333
    proportion 0.5
    proportion 0.66667
    proportion 1.0
  }

  default-column-width {  }

  focus-ring {
  //off

    width 1.5

   active-gradient from="#b7bdf8" to="#bbddff" angle=45

    inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
  }

  border {
//  off

    width 1.5
    active-gradient from="#8caaee" to="#f4b8e4" angle=135 relative-to="workspace-view"
    inactive-gradient from="#8e7ab5" to="#756ab6" angle=135 relative-to="workspace-view" in="oklch shorter hue"
  }

  struts {
  }
  shadow {
    on
  }
}


spawn-at-startup "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1"
spawn-at-startup "dbus-update-activation-environment" "--systemd" "WAYLAND_DISPLAY" "XDG_CURRENT_DESKTOP"
spawn-at-startup "/usr/lib/xdg-desktop-portal-gnome"
spawn-at-startup "xwayland-satellite"
spawn-at-startup "bluetoothctl" "power" "on" // Bluetooth
spawn-at-startup "blueman-applet" // Bluetooth
spawn-at-startup "nm-applet" "--indicator" // Network Manager applet
//spawn-at-startup "sudo" "/etc/rc.d/rc.local"
spawn-at-startup "~/.config/niri/scripts/toggle_walls"
//spawn-at-startup "~/.config/niri/scripts/swww_walls"
spawn-at-startup "qs" "-c" "noctalia-shell"
environment {
  DISPLAY ":0"

  XCURSOR_THEME "catppuccin-macchiato-lavender-cursors"
  XCURSOR_SIZE "48"
  HYPRCURSOR_THEME "catppuccin-macchiato-lavender-cursors"
  HYPRCURSOR_SIZE "48"
  QT_CURSOR_THEME "catppuccin-macchiato-lavender-cursors"
  QT_CURSOR_SIZE "48"

  XDG_SESSION_TYPE "wayland"
  GDK_BACKEND "wayland,x11,*"

  QT_QPA_PLATFORM "wayland"
  QT_QPA_PLATFORMTHEME "qt5ct"
  //QT_WAYLAND_DISABLE_WINDOWDECORATION "1"
  QT_STYLE_OVERRIDE "kvantum"
}

cursor {
  xcursor-theme "catppuccin-macchiato-lavender-cursors"
  xcursor-size 48
}


screenshot-path "~/pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"

animations {
  // off

  slowdown 1.2

  workspace-switch {
    spring damping-ratio=1.0 stiffness=1000 epsilon=0.0001
  }
  window-open {
    duration-ms 150
    curve "ease-out-expo"
  }

  window-close {
    duration-ms 150
    curve "ease-out-quad"
  }
}

blur {
  passes 2
  offset 1.5
  noise 0.2
  saturation 2.3
}
window-rule {
  geometry-corner-radius 0
  clip-to-geometry true
}

window-rule{
  background-effect{
    blur true
    xray true
  }
    draw-border-with-background false
}

window-rule {
  match app-id="kitty"
    match app-id="ghostty"

  default-column-width {}
  opacity 0.85
}


window-rule{
  match app-id="nemo"
  opacity 0.9
}


window-rule {
  match app-id="librewolf"
  match app-id="zen-twilight"
  opacity 0.85
}

window-rule {
  match app-id="zen"
  opacity 0.85
}


window-rule{
  match app-id="helium"
  opacity 0.92
}

window-rule{
  match app-id="zed"
  opacity 0.8
}

window-rule {
  match app-id="obsidian"
  opacity 0.87
}

window-rule {
  match title="rofi"
  open-floating true
}

layer-rule{
  match namespace="waybar"
  opacity 0.87
}

window-rule{
  match app-id="codium"
  opacity 0.86
}
window-rule{
  match app-id="zathura"
  opacity 0.9
}


layer-rule{
  match namespace="swaync"
  opacity 0.85
}
layer-rule{
  match namespace="^noctalia-overview*"
  place-within-backdrop true
}

hotkey-overlay {
     skip-at-startup
 }

binds {
  Mod+Shift+Slash { show-hotkey-overlay; }

  Mod+A { spawn "rofi" "-show" "drun"; }
  Mod+Return { spawn "kitty"; }
  Mod+Shift+Return { spawn "nemo"; }
  Mod+W { spawn "zen-twilight"; }
  Mod+T { spawn "ghostty"; }
  Mod+Shift+T { spawn "shortwave"; }
  Mod+Shift+P { spawn "librewolf"; }
  Mod+Shift+L { spawn "lutris"; }
  //Mod+B { spawn "~/.config/niri/scripts/toggle_bar"; }
  Mod+Shift+C { spawn "qalculate-gtk"; }
  Mod+E { spawn "kitty" "-e" "yazi";}
  //Ctrl+Alt+W {spawn "~/.config/hypr/scripts/random_wallpaper";}
  Mod+G { spawn "hyprpicker" "-ra"; }
  Mod+O { spawn "obsidian"; }
  Mod+N { spawn "pavucontrol"; }
  Mod+Shift+N { spawn "blueman-manager"; }
  //Mod+A {spawn-sh "qs -c noctalia-shell ipc call launcher toggle";}
  Mod+L { spawn "hyprlock";}

  XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+"; }
  XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-"; }
  XF86AudioMute        allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
  XF86AudioMicMute     allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }

  XF86AudioNext  allow-when-locked=true { spawn "playerctl" "next"; }
  XF86AudioPrev  allow-when-locked=true { spawn "playerctl" "previous"; }
  XF86AudioPlay  allow-when-locked=true { spawn "playerctl" "play-pause"; }
  XF86AudioPause allow-when-locked=true { spawn "playerctl" "play-pause"; }
  XF86AudioStop  allow-when-locked=true { spawn "playerctl" "stop"; }

  Mod+Q { close-window; }

  Mod+Left    { focus-column-left; }
  Mod+Right   { focus-column-right; }
  Mod+Down { focus-window-down; }
  Mod+Up   { focus-window-up; }

  Mod+Shift+Left  { move-column-left; }
  Mod+Shift+Down  { move-window-down; }
  Mod+Shift+Up    { move-window-up; }
  Mod+Shift+Right { move-column-right; }


  Mod+Home { focus-column-first; }
  Mod+End  { focus-column-last; }
  Mod+Shift+Home { move-column-to-first; }
  Mod+Shift+End  { move-column-to-last; }

  Mod+Ctrl+Left  { focus-monitor-left; }
  Mod+Ctrl+Down  { focus-monitor-down; }
  Mod+Ctrl+Up    { focus-monitor-up; }
  Mod+Ctrl+Right { focus-monitor-right; }

  Mod+Alt+Left  { move-column-to-monitor-left; }
  Mod+Alt+Right { move-column-to-monitor-right; }

  Mod+Page_Down    { focus-workspace-down; }
  Mod+Page_Up      { focus-workspace-up; }
  Mod+I        { focus-workspace-down; }
  Mod+U        { focus-workspace-up; }
  Mod+Shift+Page_Down { move-column-to-workspace-down; }
  Mod+Shift+Page_Up   { move-column-to-workspace-up; }
  Mod+Shift+I     { move-column-to-workspace-down; }
  Mod+Shift+U     { move-column-to-workspace-up; }


  // workspace Overview
  Mod+Space {toggle-overview;}
  Mod+Ctrl+Page_Down { move-workspace-down; }
  Mod+Ctrl+Page_Up   { move-workspace-up; }
  Mod+Ctrl+I     { move-workspace-down; }
  Mod+Ctrl+U     { move-workspace-up; }

  // You can bind mouse wheel scroll ticks using the following syntax.
  // These binds will change direction based on the natural-scroll setting.
  //
  // To avoid scrolling through workspaces really fast, you can use
  // the cooldown-ms property. The bind will be rate-limited to this value.
  // You can set a cooldown on any bind, but it's most useful for the wheel.
  Mod+WheelScrollDown    cooldown-ms=150 { focus-workspace-down; }
  Mod+WheelScrollUp      cooldown-ms=150 { focus-workspace-up; }
  Mod+Ctrl+WheelScrollDown    { focus-column-right; }
  Mod+Ctrl+WheelScrollUp      { focus-column-left; }

  Mod+Alt+WheelScrollDown  cooldown-ms=150 { move-column-to-workspace-down; }
  Mod+Alt+WheelScrollUp    cooldown-ms=150 { move-column-to-workspace-up; }
  Mod+Ctrl+WheelScrollRight { move-column-right; }
  Mod+Ctrl+WheelScrollLeft  { move-column-left; }

  // Usually scrolling up and down with Shift in applications results in
  // horizontal scrolling; these binds replicate that.
  Mod+Shift+WheelScrollDown    { focus-column-right; }
  Mod+Shift+WheelScrollUp      { focus-column-left; }
  Mod+Ctrl+Shift+WheelScrollDown { move-column-right; }
  Mod+Ctrl+Shift+WheelScrollUp   { move-column-left; }

  Mod+1 { focus-workspace 1; }
  Mod+2 { focus-workspace 2; }
  Mod+3 { focus-workspace 3; }
  Mod+4 { focus-workspace 4; }
  Mod+5 { focus-workspace 5; }
  Mod+6 { focus-workspace 6; }
  Mod+7 { focus-workspace 7; }
  Mod+8 { focus-workspace 8; }
  Mod+9 { focus-workspace 9; }
  Mod+0 { focus-workspace 10; }
  Mod+Shift+1 { move-column-to-workspace 1; }
  Mod+Shift+2 { move-column-to-workspace 2; }
  Mod+Shift+3 { move-column-to-workspace 3; }
  Mod+Shift+4 { move-column-to-workspace 4; }
  Mod+Shift+5 { move-column-to-workspace 5; }
  Mod+Shift+6 { move-column-to-workspace 6; }
  Mod+Shift+7 { move-column-to-workspace 7; }
  Mod+Shift+8 { move-column-to-workspace 8; }
  Mod+Shift+9 { move-column-to-workspace 9; }
  Mod+Shift+0 { move-column-to-workspace 0; }

  Mod+Tab { focus-workspace-previous; }

  Mod+BracketLeft  { consume-or-expel-window-left; }
  Mod+BracketRight { consume-or-expel-window-right; }

  Mod+Comma  { consume-window-into-column; }
  Mod+Period { expel-window-from-column; }
  Mod+D      { switch-preset-column-width; }
  Mod+Ctrl+D { maximize-column; }
  Mod+Shift+D      { switch-preset-window-height; }
  Mod+Ctrl+Shift+D { reset-window-height; }
  Mod+Shift+F { fullscreen-window; }
  Mod+C { center-column; }

  Mod+Minus { set-column-width "-10%"; }
  Mod+Equal { set-column-width "+10%"; }

  Mod+Shift+Minus { set-window-height "-10%"; }
  Mod+Shift+Equal { set-window-height "+10%"; }

  Mod+F { toggle-window-floating; }
  Mod+Shift+V { switch-focus-between-floating-and-tiling; }

  Print { screenshot; }
  Alt+Print { screenshot-screen; }
  Shift+Print { screenshot-window; }

  Mod+Shift+E { quit; }
  Ctrl+Alt+Delete { quit; }
  Mod+Alt+L { power-off-monitors; }

  Mod+K { toggle-column-tabbed-display; }


}

recent-windows {
    // off
    debounce-ms 750

    open-delay-ms 150

    highlight {
        active-color "#b7bdf8ff"
        urgent-color "#ff9999ff"
        padding 0
        corner-radius 0
    }

    previews {
        max-height 480
        max-scale 0.6
    }

    binds {
        Alt+Tab         { next-window; }
        Alt+Shift+Tab   { previous-window; }
        Alt+grave       { next-window     filter="app-id"; }
        Alt+Shift+grave { previous-window filter="app-id"; }

        Mod+Tab         { next-window; }
        Mod+Shift+Tab   { previous-window; }
        Mod+grave       { next-window     filter="app-id"; }
        Mod+Shift+grave { previous-window filter="app-id"; }
    }
}