-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
371 lines (355 loc) · 22.5 KB
/
index.html
File metadata and controls
371 lines (355 loc) · 22.5 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>hyprconf-gen</title>
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap" rel="stylesheet">
<link rel="icon" href="img/favicon.png">
</head>
<body>
<header>
<h1>hyprconf-gen</h1>
</header>
<div class="main-layout">
<nav id="sidebar">
<h2>Categories</h2>
<ul>
<li data-category="general" class="active">General & Appearance</li>
<li data-category="monitors">Monitors</li>
<li data-category="input">Input Devices</li>
<li data-category="keybinds">Keybinds</li>
<li data-category="windowrules">Window Rules</li>
<li data-category="autostart">Autostart (exec-once)</li>
<li data-category="animations">Animations</li>
<li data-category="decoration">Decoration</li>
<li data-category="layouts">Layouts</li>
<li data-category="misc">Miscellaneous</li>
<li data-category="variables">Variables (soon?)</li>
</ul>
</nav>
<main id="main-content">
<div id="settings-forms">
<div id="form-general" class="settings-form active-form">
<h3>General Settings</h3>
<div class="form-group">
<label for="general-border_size">Border Size:</label>
<div class="form-input-wrapper">
<input type="number" id="general-border_size" data-config-key="general.border_size" min="0">
<span>Window border thickness (px).</span>
</div>
</div>
<div class="form-group">
<label for="general-gaps_in">Gaps In:</label>
<div class="form-input-wrapper">
<input type="number" id="general-gaps_in" data-config-key="general.gaps_in" min="0">
<span>Inner gaps between windows (px).</span>
</div>
</div>
<div class="form-group">
<label for="general-gaps_out">Gaps Out:</label>
<div class="form-input-wrapper">
<input type="number" id="general-gaps_out" data-config-key="general.gaps_out">
<span>Outer gaps to monitor edges (px, can be negative).</span>
</div>
</div>
<div class="form-group">
<label for="general-col_active_border">Active Border Color:</label>
<div class="form-input-wrapper" style="flex-direction: row; align-items: center;">
<input type="color" id="general-col_active_border" data-config-key="general.col.active_border">
<input type="text" class="color-text-display" data-config-key="general.col.active_border" placeholder="rgba(...) or gradient...">
</div>
<span>Can be single color (rgba/rgb hex) or gradient. Picker only shows first color. Use text field for gradients.</span>
</div>
<div class="form-group">
<label for="general-col_inactive_border">Inactive Border Color:</label>
<div class="form-input-wrapper" style="flex-direction: row; align-items: center;">
<input type="color" id="general-col_inactive_border" data-config-key="general.col.inactive_border">
<input type="text" class="color-text-display" data-config-key="general.col.inactive_border" placeholder="rgba(...)">
</div>
<span>Usually a single rgba/rgb hex color.</span>
</div>
<div class="form-group">
<label for="general-layout">Default Layout:</label>
<div class="form-input-wrapper">
<select id="general-layout" data-config-key="general.layout">
<option value="dwindle">Dwindle</option>
<option value="master">Master</option>
</select>
<span>Default tiling layout.</span>
</div>
</div>
<div class="form-group">
<label for="general-resize_on_border">Resize on Border:</label>
<div class="form-input-wrapper" style="flex-direction: row; align-items: center;">
<input type="checkbox" id="general-resize_on_border" data-config-key="general.resize_on_border">
<label for="general-resize_on_border">Enable resizing by dragging borders/gaps.</label>
</div>
</div>
<div class="form-group">
<label for="general-allow_tearing">Allow Tearing:</label>
<div class="form-input-wrapper" style="flex-direction: row; align-items: center;">
<input type="checkbox" id="general-allow_tearing" data-config-key="general.allow_tearing">
<label for="general-allow_tearing">Allow screen tearing (see wiki first).</label>
</div>
</div>
</div>
<div id="form-monitors" class="settings-form">
<h3>Monitor Configuration</h3>
<p>Define your monitor setup. Leave Name blank for any. Use `preferred` for resolution/refresh rate to use native mode. Scale `auto` usually means 1.</p>
<div id="monitor-list">
</div>
<button type="button" id="add-monitor-btn">Add Monitor</button>
</div>
<div id="form-input" class="settings-form">
<h3>Input Devices</h3>
<p>Configure keyboard, mouse, and touchpad settings.</p>
<h4>Keyboard</h4>
<div class="form-group">
<label for="input-kb_layout">Layout:</label>
<div class="form-input-wrapper">
<input type="text" id="input-kb_layout" data-config-key="input.kb_layout" placeholder="us">
<span>e.g., us, gb, de</span>
</div>
</div>
<div class="form-group">
<label for="input-kb_variant">Variant:</label>
<div class="form-input-wrapper"> <input type="text" id="input-kb_variant" data-config-key="input.kb_variant" placeholder=""> </div>
</div>
<div class="form-group">
<label for="input-kb_options">Options:</label>
<div class="form-input-wrapper">
<input type="text" id="input-kb_options" data-config-key="input.kb_options" placeholder="caps:escape">
<span>Comma-separated list, e.g., grp:alt_shift_toggle,caps:escape</span>
</div>
</div>
<div class="form-group">
<label for="input-kb_rules">Rules:</label>
<div class="form-input-wrapper"> <input type="text" id="input-kb_rules" data-config-key="input.kb_rules" placeholder=""> </div>
</div>
<div class="form-group">
<label for="input-numlock_by_default">Numlock On:</label>
<div class="form-input-wrapper" style="flex-direction: row; align-items: center;">
<input type="checkbox" id="input-numlock_by_default" data-config-key="input.numlock_by_default">
<label for="input-numlock_by_default">Enable numlock on startup.</label>
</div>
</div>
<h4>Mouse</h4>
<div class="form-group">
<label for="input-follow_mouse">Follow Mouse Focus:</label>
<div class="form-input-wrapper">
<select id="input-follow_mouse" data-config-key="input.follow_mouse">
<option value="0">Disabled</option>
<option value="1">Enabled (Focus follows mouse)</option>
<option value="2">Full (Focus + Raise follows mouse)</option>
<option value="3">Loose (Focus follows mouse loosely)</option>
</select>
</div>
</div>
<div class="form-group">
<label for="input-sensitivity">Sensitivity:</label>
<div class="form-input-wrapper">
<input type="number" id="input-sensitivity" data-config-key="input.sensitivity" step="0.1" min="-1" max="1">
<span>Mouse sensitivity (-1.0 to 1.0, 0 = default).</span>
</div>
</div>
<h4>Touchpad</h4>
<div class="form-group">
<label for="input-touchpad-natural_scroll">Natural Scroll:</label>
<div class="form-input-wrapper" style="flex-direction: row; align-items: center;">
<input type="checkbox" id="input-touchpad-natural_scroll" data-config-key="input.touchpad.natural_scroll">
<label for="input-touchpad-natural_scroll">Enable natural (reverse) scrolling.</label>
</div>
</div>
</div>
<div id="form-keybinds" class="settings-form">
<h3>Keybinds</h3>
<p>Define your keyboard and mouse shortcuts. Use `$mainMod` for your primary modifier (usually Super/Win key). Specify mouse buttons like `mouse:272` (left), `mouse:273` (right), `mouse:274` (middle).</p>
<div id="keybind-list"></div>
<button type="button" id="add-keybind-btn">Add Keybind</button>
</div>
<div id="form-windowrules" class="settings-form">
<h3>Window Rules</h3>
<p>Define rules for specific windows based on class, title, etc. Use RegEx for matching (e.g., `class:^(kitty)$`).</p>
<div id="windowrule-list"></div>
<button type="button" id="add-windowrule-btn">Add Window Rule</button>
</div>
<div id="form-autostart" class="settings-form">
<h3>Autostart Programs (exec-once)</h3>
<p>Commands to run once when Hyprland starts. Add `&` at the end for background processes.</p>
<div id="autostart-list"></div>
<button type="button" id="add-autostart-btn">Add Command</button>
</div>
<div id="form-animations" class="settings-form">
<h3>Animations</h3>
<div class="form-group">
<label for="animations-enabled">Enable Animations:</label>
<div class="form-input-wrapper" style="flex-direction: row; align-items: center;">
<input type="checkbox" id="animations-enabled" data-config-key="animations.enabled">
<label for="animations-enabled">Globally enable/disable animations.</label>
</div>
</div>
<h4>Define Bezier Curves</h4>
<p>Define custom bezier curve names for use in assignments.</p>
<div id="bezier-list"></div>
<button type="button" id="add-bezier-btn">Add Bezier Curve</button>
<h4>Assign Animation Styles</h4>
<p>Assign specific animation styles, speeds, and curves to different elements.</p>
<div id="animation-assignment-list"></div>
<button type="button" id="add-animation-assignment-btn">Add Animation Assignment</button>
</div>
<div id="form-decoration" class="settings-form">
<h3>Decoration</h3>
<div class="form-group">
<label for="decoration-rounding">Rounding:</label>
<div class="form-input-wrapper">
<input type="number" id="decoration-rounding" data-config-key="decoration.rounding" min="0">
<span>Window corner rounding radius (px).</span>
</div>
</div>
<div class="form-group">
<label for="decoration-active_opacity">Active Opacity:</label>
<div class="form-input-wrapper">
<input type="number" id="decoration-active_opacity" data-config-key="decoration.active_opacity" min="0" max="1" step="0.05">
<span>Opacity for the active window (0.0 - 1.0).</span>
</div>
</div>
<div class="form-group">
<label for="decoration-inactive_opacity">Inactive Opacity:</label>
<div class="form-input-wrapper">
<input type="number" id="decoration-inactive_opacity" data-config-key="decoration.inactive_opacity" min="0" max="1" step="0.05">
<span>Opacity for inactive windows (0.0 - 1.0).</span>
</div>
</div>
<h4>Blur</h4>
<div class="form-group">
<label for="decoration-blur-enabled">Enable Blur:</label>
<div class="form-input-wrapper" style="flex-direction: row; align-items: center;">
<input type="checkbox" id="decoration-blur-enabled" data-config-key="decoration.blur.enabled">
<label for="decoration-blur-enabled">Enable background blur for transparent windows.</label>
</div>
</div>
<div class="form-group">
<label for="decoration-blur-size">Blur Size:</label>
<div class="form-input-wrapper">
<input type="number" id="decoration-blur-size" data-config-key="decoration.blur.size" min="1">
<span>Blur kernel size.</span>
</div>
</div>
<div class="form-group">
<label for="decoration-blur-passes">Blur Passes:</label>
<div class="form-input-wrapper">
<input type="number" id="decoration-blur-passes" data-config-key="decoration.blur.passes" min="1">
<span>Number of blur passes (more passes = smoother but slower).</span>
</div>
</div>
<div class="form-group">
<label for="decoration-blur-vibrancy">Vibrancy:</label>
<div class="form-input-wrapper">
<input type="number" id="decoration-blur-vibrancy" data-config-key="decoration.blur.vibrancy" min="0" max="1" step="0.01">
<span>Increase saturation of blurred areas (0.0 - 1.0).</span>
</div>
</div>
<h4>Shadow</h4>
<div class="form-group">
<label for="decoration-shadow-enabled">Enable Shadow:</label>
<div class="form-input-wrapper" style="flex-direction: row; align-items: center;">
<input type="checkbox" id="decoration-shadow-enabled" data-config-key="decoration.shadow.enabled">
<label for="decoration-shadow-enabled">Enable window drop shadows.</label>
</div>
</div>
<div class="form-group">
<label for="decoration-shadow-range">Shadow Range:</label>
<div class="form-input-wrapper">
<input type="number" id="decoration-shadow-range" data-config-key="decoration.shadow.range" min="0">
<span>Shadow size/spread (px).</span>
</div>
</div>
<div class="form-group">
<label for="decoration-shadow-render_power">Render Power:</label>
<div class="form-input-wrapper">
<input type="number" id="decoration-shadow-render_power" data-config-key="decoration.shadow.render_power" min="1" max="4">
<span>Shadow quality (1=low, 4=high). Higher uses more GPU.</span>
</div>
</div>
<div class="form-group">
<label for="decoration-shadow-color">Shadow Color:</label>
<div class="form-input-wrapper" style="flex-direction: row; align-items: center;">
<input type="color" id="decoration-shadow-color" data-config-key="decoration.shadow.color">
<input type="text" class="color-text-display" data-config-key="decoration.shadow.color" placeholder="rgba(...)">
</div>
<span>Shadow color including alpha (e.g., `rgba(000000aa)`).</span>
</div>
</div>
<div id="form-layouts" class="settings-form">
<h3>Layout Specific Settings</h3>
<p>These settings only apply if the corresponding layout (Dwindle/Master) is selected in General Settings.</p>
<h4>Dwindle Layout</h4>
<div class="form-group">
<label for="dwindle-pseudotile">Pseudotile:</label>
<div class="form-input-wrapper" style="flex-direction: row; align-items: center;">
<input type="checkbox" id="dwindle-pseudotile" data-config-key="dwindle.pseudotile">
<label for="dwindle-pseudotile">Master window is always split.</label>
</div>
</div>
<div class="form-group">
<label for="dwindle-preserve_split">Preserve Split:</label>
<div class="form-input-wrapper" style="flex-direction: row; align-items: center;">
<input type="checkbox" id="dwindle-preserve_split" data-config-key="dwindle.preserve_split">
<label for="dwindle-preserve_split">Maintain split ratio when window closes.</label>
</div>
</div>
<div class="form-group">
<label for="dwindle-force_split">Force Split:</label>
<div class="form-input-wrapper">
<select id="dwindle-force_split" data-config-key="dwindle.force_split">
<option value="0">Disabled</option>
<option value="1">Always split vertically first</option>
<option value="2">Always split horizontally first</option>
</select>
</div>
</div>
<h4>Master Layout</h4>
<div class="form-group">
<label for="master-new_status">New Window Status:</label>
<div class="form-input-wrapper">
<select id="master-new_status" data-config-key="master.new_status">
<option value="master">Master</option>
<option value="slave">Slave</option>
</select>
<span>Where new windows appear in the master layout.</span>
</div>
</div>
</div>
<div id="form-misc" class="settings-form">
<h3>Miscellaneous Settings</h3>
<div class="form-group">
<label for="misc-force_default_wallpaper">Force Wallpaper:</label>
<div class="form-input-wrapper">
<input type="number" id="misc-force_default_wallpaper" data-config-key="misc.force_default_wallpaper">
<span>Force a specific default wallpaper (-1 = default, 0 = first, 1 = second, etc.).</span>
</div>
</div>
<div class="form-group">
<label for="misc-disable_hyprland_logo">Disable Logo:</label>
<div class="form-input-wrapper" style="flex-direction: row; align-items: center;">
<input type="checkbox" id="misc-disable_hyprland_logo" data-config-key="misc.disable_hyprland_logo">
<label for="misc-disable_hyprland_logo">Disable the random Hyprland logo background.</label>
</div>
</div>
</div>
</div>
</main>
</div>
<section id="output-section">
<h2>Generated hyprland.conf (Review the configuration before use.)</h2>
<pre><code id="generated-config"># Config will appear here...</code></pre>
<button id="copy-button">Copy to Clipboard</button>
<button id="download-button">Download .conf File</button>
</section>
<script src="script.js" defer></script>
</body>
</html>