-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrappers.nix
More file actions
338 lines (289 loc) · 9.58 KB
/
wrappers.nix
File metadata and controls
338 lines (289 loc) · 9.58 KB
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
{ pkgs, lib, ... }:
{
ghostty = {
settings = {
background = "272822";
foreground = "ffffff";
cursor-color = "ffffff";
cursor-text = "000000";
palette = [
"0=#272822"
"1=#F92672"
"2=#82B414"
"3=#FD971F"
"4=#268BD2"
"5=#8C54FE"
"6=#56C2D5"
"7=#FFFFFF"
"8=#5C5C5C"
"9=#FF5995"
"10=#A6E22E"
"11=#E6DB74"
"12=#62ADE3"
"13=#AE81FF"
"14=#66D9EF"
"15=#CCCCCC"
];
bold-is-bright = true;
confirm-close-surface = false;
font-family = "Terminus (TTF)";
font-size = 9;
font-style-italic = "Bold";
adjust-cell-height = -2;
window-width = 80;
window-height = 24;
window-padding-x = 2;
window-padding-y = 2;
mouse-scroll-multiplier = 3;
};
};
mako = {
config.path = ./config/mako/config;
};
fuzzel = {
settings = {
main = {
font = "terminus:size=13,monospace";
};
};
};
alacritty.settings = {
bell = {
animation = "EaseOutExpo";
duration = 0;
};
colors = {
draw_bold_text_with_bright_colors = true;
};
colors.bright = {
black = "0x5C5C5C";
blue = "0x62ADE3";
cyan = "0x66D9EF";
green = "0xA6E22E";
magenta = "0xAE81FF";
red = "0xFF5995";
white = "0xCCCCCC";
yellow = "0xE6DB74";
};
colors.cursor = {
cursor = "0xffffff";
text = "0x000000";
};
colors.normal = {
black = "0x272822";
blue = "0x268BD2";
cyan = "0x56C2D5";
green = "0x82B414";
magenta = "0x8C54FE";
red = "0xF92672";
white = "0xffffff";
yellow = "0xFD971F";
};
colors.primary = {
background = "0x272822";
foreground = "0xffffff";
};
font.size = 7;
font.bold = {
family = "Terminus";
style = "Bold";
};
font.glyph_offset = {
x = 0;
y = 0;
};
font.italic = {
family = "Terminus";
style = "Bold";
};
font.normal = {
family = "Terminus";
style = "normal";
};
font.offset = {
x = 0;
y = 0;
};
mouse.bindings = [
{
action = "PasteSelection";
mouse = "Middle";
}
];
selection = {
semantic_escape_chars = '',?`|:"' ()[]{}<>'';
};
window.dimensions = {
columns = 80;
lines = 24;
};
window.padding = {
x = 2;
y = 2;
};
scrolling.multiplier = 4;
};
waybar = {
settings = import ./waybar.nix { inherit pkgs lib; };
style.path = ./config/waybar/style.css;
};
niri = {
"config.kdl".content = ''
input {
touchpad {
tap
click-method "clickfinger"
}
focus-follows-mouse max-scroll-amount="10%"
}
output "eDP-1" {
scale 1.0
}
layout {
gaps 10
center-focused-column "never"
shadow {
on
}
struts {
left 20
right 20
}
preset-column-widths {
proportion 0.33333
proportion 0.5
proportion 0.66667
}
default-column-width { proportion 0.5; }
border {
width 2
active-color "#7fc8ff"
inactive-color "#505050"
}
focus-ring {
off
}
}
prefer-no-csd
screenshot-path null
animations {
slowdown 0.5
}
window-rule {
open-floating true
geometry-corner-radius 6
clip-to-geometry true
}
window-rule {
match title="Syncthing Tray"
open-floating true
default-floating-position x=10 y=10 relative-to="top-right"
}
binds {
Mod+Shift+Slash { show-hotkey-overlay; }
Mod+Return { spawn "${lib.getExe pkgs.alacritty}"; }
Mod+Space { spawn "${lib.getExe pkgs.fuzzel}"; }
XF86AudioRaiseVolume allow-when-locked=true { spawn "${pkgs.wireplumber}/bin/wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+"; }
XF86AudioLowerVolume allow-when-locked=true { spawn "${pkgs.wireplumber}/bin/wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-"; }
XF86AudioMute allow-when-locked=true { spawn "${pkgs.wireplumber}/bin/wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
XF86AudioMicMute allow-when-locked=true { spawn "${pkgs.wireplumber}/bin/wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
XF86AudioPlay allow-when-locked=true { spawn "${lib.getExe pkgs.playerctl}" "play-pause"; }
XF86AudioNext allow-when-locked=true { spawn "${lib.getExe pkgs.playerctl}" "next"; }
XF86AudioPrev allow-when-locked=true { spawn "${lib.getExe pkgs.playerctl}" "previous"; }
Mod+Q { close-window; }
Mod+H { focus-column-left; }
Mod+J { focus-window-or-workspace-down; }
Mod+K { focus-window-or-workspace-up; }
Mod+L { focus-column-right; }
Mod+Shift+H { move-column-left; }
Mod+Shift+J { move-window-down-or-to-workspace-down; }
Mod+Shift+K { move-window-up-or-to-workspace-up; }
Mod+Shift+L { move-column-right; }
Mod+Home { focus-column-first; }
Mod+End { focus-column-last; }
Mod+Ctrl+Home { move-column-to-first; }
Mod+Ctrl+End { move-column-to-last; }
Mod+Ctrl+H { focus-monitor-left; }
Mod+Ctrl+J { focus-monitor-down; }
Mod+Ctrl+K { focus-monitor-up; }
Mod+Ctrl+L { focus-monitor-right; }
Mod+Shift+Ctrl+Left { move-column-to-monitor-left; }
Mod+Shift+Ctrl+Down { move-column-to-monitor-down; }
Mod+Shift+Ctrl+Up { move-column-to-monitor-up; }
Mod+Shift+Ctrl+Right { move-column-to-monitor-right; }
Mod+Shift+Ctrl+H { move-column-to-monitor-left; }
Mod+Shift+Ctrl+J { move-column-to-monitor-down; }
Mod+Shift+Ctrl+K { move-column-to-monitor-up; }
Mod+Shift+Ctrl+L { move-column-to-monitor-right; }
Mod+O { focus-workspace-down; }
Mod+I { focus-workspace-up; }
Mod+Shift+O { move-workspace-down; }
Mod+Shift+I { move-workspace-up; }
Mod+Ctrl+Shift+O { move-workspace-to-monitor-right; }
Mod+Ctrl+Shift+I { move-workspace-to-monitor-left; }
Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; }
Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; }
Mod+WheelScrollRight { focus-column-right; }
Mod+WheelScrollLeft { focus-column-left; }
Mod+Ctrl+WheelScrollRight { move-column-right; }
Mod+Ctrl+WheelScrollLeft { move-column-left; }
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+T { move-window-to-tiling; }
Mod+S { move-window-to-floating; }
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+Ctrl+1 { move-column-to-workspace 1; }
Mod+Ctrl+2 { move-column-to-workspace 2; }
Mod+Ctrl+3 { move-column-to-workspace 3; }
Mod+Ctrl+4 { move-column-to-workspace 4; }
Mod+Ctrl+5 { move-column-to-workspace 5; }
Mod+Ctrl+6 { move-column-to-workspace 6; }
Mod+Ctrl+7 { move-column-to-workspace 7; }
Mod+Ctrl+8 { move-column-to-workspace 8; }
Mod+Ctrl+9 { move-column-to-workspace 9; }
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+R { switch-preset-column-width; }
Mod+Shift+R { switch-preset-window-height; }
Mod+Ctrl+R { reset-window-height; }
Mod+F { maximize-column; }
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+Slash {
spawn "${./bin/niri-rename-workspace}";
}
}
spawn-at-startup "${lib.getExe pkgs.waybar}"
spawn-at-startup "${lib.getExe pkgs.mako}"
spawn-at-startup "${lib.getExe pkgs.xwayland-satellite}"
spawn-at-startup "${lib.getExe pkgs.swaybg}" "-i" ".config/wallpaper"
spawn-at-startup "${lib.getExe pkgs.swayidle}" "-w" "timeout" "300" "niri msg action power-off-monitors"
environment {
QT_QPA_PLATFORM "wayland"
DISPLAY ":0"
}
layer-rule {
match namespace="^notifications$"
block-out-from "screencast"
}
'';
};
}