-
Notifications
You must be signed in to change notification settings - Fork 1
/
674.html
436 lines (421 loc) · 20.5 KB
/
674.html
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
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
#674 (Applying "default_orientation auto" to all containers)
– i3 window manager
</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!--[if IE]><script type="text/javascript">
if (/^#__msie303:/.test(window.location.hash))
window.location.replace(window.location.hash.replace(/^#__msie303:/, '#'));
</script><![endif]-->
<link rel="search" href="/report/search" />
<link rel="prev" href="/report/ticket/672" title="Ticket #672" />
<link rel="last" href="/report/ticket/1444" title="Ticket #1444" />
<link rel="help" href="/report/wiki/TracGuide" />
<link rel="alternate" href="/report/ticket/674?format=csv" type="text/csv" class="csv" title="Comma-delimited Text" /><link rel="alternate" href="/report/ticket/674?format=tab" type="text/tab-separated-values" class="tab" title="Tab-delimited Text" /><link rel="alternate" href="/report/ticket/674?format=rss" type="application/rss+xml" class="rss" title="RSS Feed" />
<link rel="next" href="/report/ticket/675" title="Ticket #675" />
<link rel="start" href="/report/wiki" />
<link rel="stylesheet" href="/report/chrome/common/css/trac.css" type="text/css" /><link rel="stylesheet" href="/report/chrome/common/css/ticket.css" type="text/css" />
<link rel="first" href="/report/ticket/1" title="Ticket #1" />
<link rel="shortcut icon" href="/report/chrome/common/favicon.png" type="image/png" />
<link rel="icon" href="/report/chrome/common/favicon.png" type="image/png" />
<link type="application/opensearchdescription+xml" rel="search" href="/report/search/opensearch" title="Search i3 window manager" />
<script type="text/javascript">
var auto_preview_timeout=2.0;
var form_token="baeaad795da612975f3e2b99";
var comments_prefs={"comments_only":"false","comments_order":"oldest"};
</script>
<script type="text/javascript" charset="utf-8" src="/report/chrome/common/js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="/report/chrome/common/js/babel.js"></script>
<script type="text/javascript" charset="utf-8" src="/report/chrome/common/js/trac.js"></script>
<script type="text/javascript" charset="utf-8" src="/report/chrome/common/js/search.js"></script>
<script type="text/javascript" charset="utf-8" src="/report/chrome/common/js/folding.js"></script>
<script type="text/javascript" charset="utf-8" src="/report/chrome/common/js/wikitoolbar.js"></script>
<script type="text/javascript" charset="utf-8" src="/report/chrome/common/js/resizer.js"></script>
<script type="text/javascript" charset="utf-8" src="/report/chrome/common/js/auto_preview.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$(".trac-autofocus").focus();
$(".trac-target-new").attr("target", "_blank");
setTimeout(function() { $(".trac-scroll").scrollToTop() }, 1);
$(".trac-disable-on-submit").disableOnSubmit();
});
</script>
<script type="text/javascript" src="/report/chrome/common/js/threaded_comments.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$("div.description").find("h1,h2,h3,h4,h5,h6").addAnchor(_("Link to this section"));
$(".foldable").enableFolding(false, true);
/*<![CDATA[*/
$("#attachments").toggleClass("collapsed");
$("#trac-up-attachments").click(function () {
$("#attachments").removeClass("collapsed");
return true;
});
$("#modify").parent().toggleClass("collapsed");
$(".trac-topnav a").click(function() { $("#modify").parent().removeClass("collapsed"); });
/* only enable control elements for the currently selected action */
var actions = $("#action input[name='action']");
function updateActionFields() {
actions.each(function () {
$(this).siblings().find("*[id]").enable($(this).checked());
$(this).siblings().filter("*[id]").enable($(this).checked());
});
}
actions.click(updateActionFields);
updateActionFields();
function setRevertHandler() {
$("button.trac-revert").click(function() {
var div = $("div", this);
var field_name = div[0].id.substr(7);
var field_value = div.text();
var input = $("#propertyform *[name=field_" + field_name + "]");
if (input.length > 0) {
if (input.filter("input[type=radio]").length > 0) {
input.val([field_value]);
} else if (input.filter("input[type=checkbox]").length > 0) {
input.val(field_value == "1" ? [field_value] : []);
} else {
input.val(field_value);
}
} else { // Special case for CC checkbox
input = $("#propertyform input[name=cc_update]").val([]);
}
input.change();
$(this).closest("li").remove();
return false;
});
}
setRevertHandler();
var comment_focused = false;
$("#comment").focus(function() { comment_focused = true; })
.blur(function() { comment_focused = false; });
$("#propertyform").autoSubmit({preview: '1'}, function(data, reply) {
var items = $(reply);
// Update ticket box
$("#ticket").replaceWith(items.filter('#ticket'));
// Unthread, unrevert and update changelog
if (!$('#trac-comments-oldest').checked())
$('#trac-comments-oldest').click().change();
$("#changelog").replaceWith(items.filter("#changelog"));
if ($('#trac-comments-only-toggle').attr('checked'))
$('#trac-comments-only-toggle').click().attr('checked', true);
// Show warning
var new_changes = $("#changelog .trac-new");
$("#trac-edit-warning").toggle(new_changes.length != 0);
if (new_changes.length != 0)
$("#changelog").parent().show().removeClass("collapsed");
// Update view time
$("#propertyform input[name='view_time']").replaceWith(items.filter("input[name='view_time']"));
// Update preview
var preview = $("#ticketchange").html(items.filter('#preview').children());
var show_preview = preview.children().length != 0;
$("#ticketchange").toggle(show_preview);
setRevertHandler();
// Collapse property form if comment editor has focus
if (show_preview && comment_focused)
$("#modify").parent().addClass("collapsed");
}, "#ticketchange .trac-loading");
$("#trac-comment-editor").autoSubmit({preview_comment: '1'}, function(data, reply) {
var comment = $("#trac-comment-editor").next("div.comment").html(reply);
comment.toggle(comment.children().length != 0);
}, "#changelog .trac-loading");
/*]]>*/
});
</script>
</head>
<body>
<div id="banner">
<div id="header">
<a id="logo" href="/report/wiki/TracIni#header_logo-section"><img src="/chrome/common/logo_bugs.png" alt="(i3 logo)" height="62" width="65" /></a>
</div>
<form id="search" action="/report/search" method="get">
<div>
<label for="proj-search">Search:</label>
<input type="text" id="proj-search" name="q" size="18" value="" />
<input type="submit" value="Search" />
</div>
</form>
<div id="metanav" class="nav">
<ul>
<li class="first"><a href="/report/login">Login</a></li><li><a href="/report/prefs">Preferences</a></li><li class="last"><a href="/report/about">About Trac</a></li>
</ul>
</div>
</div>
<div id="mainnav" class="nav">
<ul>
<li class="first"><a href="/report/timeline">Timeline</a></li><li class="active"><a href="/report/report">View Tickets</a></li><li class="last"><a href="/report/search">Search</a></li>
</ul>
</div>
<div id="main">
<div id="ctxtnav" class="nav">
<h2>Context Navigation</h2>
<ul>
<li class="first"><span>← <a class="prev" href="/report/ticket/672" title="Ticket #672">Previous Ticket</a></span></li><li class="last"><span><a class="next" href="/report/ticket/675" title="Ticket #675">Next Ticket</a> →</span></li>
</ul>
<hr />
</div>
<div id="content" class="ticket">
<div id="ticket" class="trac-content ">
<div class="date">
<p>Opened <a class="timeline" href="/report/timeline?from=2012-03-20T09%3A38%3A01%2B01%3A00&precision=second" title="See timeline at 03/20/12 09:38:01">3 years ago</a></p>
<p>Closed <a class="timeline" href="/report/timeline?from=2012-03-21T21%3A05%3A48%2B01%3A00&precision=second" title="See timeline at 03/21/12 21:05:48">3 years ago</a></p>
<p>Last modified <a class="timeline" href="/report/timeline?from=2012-03-22T09%3A09%3A50%2B01%3A00&precision=second" title="See timeline at 03/22/12 09:09:50">3 years ago</a></p>
</div>
<h2>
<a href="/report/ticket/674" class="trac-id">#674</a>
<span class="trac-status">
<a href="/report/query?status=closed">closed</a>
</span>
<span class="trac-type">
<a href="/report/query?status=!closed&type=enhancement">enhancement</a>
</span>
<span class="trac-resolution">
(<a href="/report/query?status=closed&resolution=wontfix">wontfix</a>)
</span>
</h2>
<h1 id="trac-ticket-title" class="searchable">
<span class="summary">Applying "default_orientation auto" to all containers</span>
</h1>
<table class="properties">
<tr>
<th id="h_reporter">Reported by:</th>
<td headers="h_reporter" class="searchable">tassilo@…</td>
<th id="h_owner">Owned by:</th>
<td headers="h_owner"><a href="/report/query?status=!closed&owner=michael">michael</a></td>
</tr>
<tr>
<th id="h_priority">
Priority:
</th>
<td headers="h_priority">
<a href="/report/query?status=!closed&priority=major">major</a>
</td>
<th id="h_component">
Component:
</th>
<td headers="h_component">
<a href="/report/query?status=!closed&component=general">general</a>
</td>
</tr><tr>
<th id="h_version">
Version:
</th>
<td headers="h_version">
<a href="/report/query?status=!closed&version=4.2">4.2</a>
</td>
<th id="h_keywords" class="missing">
Keywords:
</th>
<td headers="h_keywords" class="searchable">
</td>
</tr><tr>
<th id="h_cc" class="missing">
Cc:
</th>
<td headers="h_cc" class="searchable">
</td>
<th id="h_reprod">
Is it reproducible?:
</th>
<td headers="h_reprod">
<a href="/report/query?status=!closed&reprod=Always">Always</a>
</td>
</tr><tr>
<th id="h_gitversion">
git version:
</th>
<td headers="h_gitversion">
607ba6fcde36a710c08202c7155b7b64a6c99819
</td>
<th id="h_os">
Operating system:
</th>
<td headers="h_os">
<a href="/report/query?status=!closed&os=Affects+all">Affects all</a>
</td>
</tr><tr>
<th id="h_app" class="missing">
X11 program:
</th>
<td headers="h_app">
</td>
<th id="h_distri">
Distribution / flavor:
</th>
<td headers="h_distri">
Gentoo
</td>
</tr><tr>
<th id="h_ircnick">
Your IRC nick:
</th>
<td headers="h_ircnick">
tsdh
</td>
<th class="missing">
</th>
<td>
</td>
</tr>
</table>
<div class="description">
<h3 id="comment:description">
Description
</h3>
<div class="searchable">
<p>
I like the <tt>default_orientation auto</tt> config option, which splits workspaces either horizontal or vertical depending on if it's wider than high. However, for my daily use (and habits), that option doesn't go far enough. I'd love if that applies to any container. I.e., when a new window appears, the current focused container is split horizontally or vertically depending on it's width/height.<br />
</p>
<p>
Here's an example what I'd like to have starting with a fresh workspace and hitting Mod-RET 4 times in a row opening 4 terminals, when the focus is always on the container whose window was mapped last:<br />
</p>
<pre class="wiki">+--------------+---------------+
| | |
| | |
| | |
| | |
| +-------+-------+
| | | |
| | | |
| | | |
| | | |
+--------------+-------+-------+
</pre><p>
Right now, the <tt>default_orientation auto</tt> configuration applies to workspaces only, so I get this layout instead:<br />
</p>
<pre class="wiki">+--------------+-----+----+----+
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
+--------------+-----+----+----+
</pre><p>
Right now, my current habit is to directly hit Mod-v (which is <tt>split v</tt>) after the second container has been created, which is pretty inconvenient.<br />
</p>
<p>
I tried to follow the code from handling new windows thru mapping them until starting the rendering, but I'm not too proficient in C in general and i3 in particular to implement that myself. But I'm happy to try if someone gives me a pointer.<br />
</p>
</div>
</div>
</div>
<div>
<div style="position: relative">
<form id="prefs" method="get" action="/report/prefs" style="position: absolute; right: 0">
<div id="trac-comments-order">
<input type="radio" id="trac-comments-oldest" name="trac-comments-order" value="oldest" checked="checked" />
<label for="trac-comments-oldest">Oldest first</label>
<input type="radio" id="trac-comments-newest" name="trac-comments-order" value="newest" />
<label for="trac-comments-newest">Newest first</label>
<span id="trac-threaded-toggle" style="display: none">
<input type="radio" id="trac-comments-threaded" name="trac-comments-order" value="threaded" />
<label for="trac-comments-threaded">Threaded</label>
</span>
</div>
<div>
<input id="trac-comments-only-toggle" type="checkbox" />
<label for="trac-comments-only-toggle">Comments only</label>
</div>
</form>
</div>
<h3 class="foldable">Change History <span class="trac-count">(2)</span></h3>
<div id="changelog">
<div class="change" id="trac-change-1-1332360348513666">
<h3 class="change">
<span class="threading">
<span id="comment:1" class="cnum">
<a href="#comment:1">comment:1</a>
</span>
</span>
Changed <a class="timeline" href="/report/timeline?from=2012-03-21T21%3A05%3A48%2B01%3A00&precision=second" title="See timeline at 03/21/12 21:05:48">3 years ago</a> by michael
</h3>
<div class="trac-ticket-buttons">
</div>
<ul class="changes">
<li class="trac-field-resolution">
<strong class="trac-field-resolution">Resolution</strong>
set to <em>wontfix</em>
</li><li class="trac-field-status">
<strong class="trac-field-status">Status</strong>
changed from <em>new</em> to <em>closed</em>
</li>
</ul>
<div class="comment searchable">
<p>
Actually, now that I think of it, what you describe is how automatic tiling WMs work (like DWM, awesome, etc.). If you really need that, you might be better off using one of these. i3 is (and will stay) a manual tiling WM.<br />
</p>
<p>
If you frequently require such a layout (not the algorithm, but a fixed layout), maybe layout restoring will provide a mechanism for doing that. That’s not quite there yet, though.<br />
</p>
<p>
In conclusion: closing as wontfix. Either future features will provide that, or you need to switch to a different WM :).<br />
</p>
</div>
</div>
<div class="change" id="trac-change-2-1332403790198926">
<h3 class="change">
<span class="threading">
<span id="comment:2" class="cnum">
<a href="#comment:2">comment:2</a>
</span>
</span>
Changed <a class="timeline" href="/report/timeline?from=2012-03-22T09%3A09%3A50%2B01%3A00&precision=second" title="See timeline at 03/22/12 09:09:50">3 years ago</a> by tassilo@…
</h3>
<div class="trac-ticket-buttons">
</div>
<div class="comment searchable">
<p>
Sorry, Michael, I won't settle to that argument that quickly. ;-)<br />
</p>
<p>
I've already used dynamic/automatic tiling WMs, and as I result I can say that I want to be the master of my tiles, i.e., I want manual tiling. The main difference is that in a dynamic tiling WM, new windows are automatically handled by the layout algorithm, whereas in a manual tiling WM like i3, I can be sure that creating a new window will split the currently focused container. That's a very important point to me.<br />
</p>
<p>
But that doesn't mean that a manual tiling WM isn't allowed to have (optional) sane (non-surprising) defaults. In my opinion <tt>default_orientation auto</tt> is what most users would expect, and it's the i3 default, so it seems you agree.<br />
</p>
<p>
But why are workspaces that special that they deserve such a special behavior while other containers don't? I mean, on the monitor I'm sitting in front of right now, every of the 2 tiles on my current workspace is more than twice as large than the resolution on a usual netbook.<br />
</p>
<p>
WRT the layout restoring: That wouldn't help me. My usual mostly-static layout is half-half split horizontally (<a class="forbidden wiki" title="no permission to view this wiki page">SomeApp</a>|Terminal). However, frequently I fire up another terminal to do some quick operation and close it instantly afterwards. Or <a class="forbidden wiki" title="no permission to view this wiki page">SomeApp</a> spawns some new temporary window. In those cases, I always want that the focused container is split depending on its height/width ratio. Now, I work around that by doing <tt>split v</tt> on both containers created by spawning the 2 initial apps on a workspace. Or if I forgot that, I have to shuffle windows. Both are one-time operations, but still...<br />
</p>
<p>
Long story short: IMO, applying <tt>default_orientation auto</tt> to any kind of container would probably DTRT for most users (how about a poll on the list?). Of course, if that feature totally doesn't fit into i3's implementation, then I'll shut up immediately.<br />
</p>
</div>
</div>
</div>
</div>
<div id="help"><strong>Note:</strong> See
<a href="/report/wiki/TracTickets">TracTickets</a> for help on using
tickets.</div>
</div>
<div id="altlinks">
<h3>Download in other formats:</h3>
<ul>
<li class="first">
<a rel="nofollow" href="/report/ticket/674?format=csv" class="csv">Comma-delimited Text</a>
</li><li>
<a rel="nofollow" href="/report/ticket/674?format=tab" class="tab">Tab-delimited Text</a>
</li><li class="last">
<a rel="nofollow" href="/report/ticket/674?format=rss" class="rss">RSS Feed</a>
</li>
</ul>
</div>
</div>
<div id="footer" lang="en" xml:lang="en"><hr />
<a id="tracpowered" href="http://trac.edgewall.org/"><img src="/report/chrome/common/trac_logo_mini.png" height="30" width="107" alt="Trac Powered" /></a>
<p class="left">Powered by <a href="/report/about"><strong>Trac 1.0.2</strong></a><br />
By <a href="http://www.edgewall.org/">Edgewall Software</a>.</p>
<p class="right"><a href="http://i3wm.org/">http://i3wm.org</a></p>
</div>
</body>
</html>