Xinhao Yuan
497d076903
Skip cleanup when the tag has no screen. Also connect -> disconnect.
2022-11-07 11:36:59 -05:00
Xinhao Yuan
7a9c2d15df
instance.tag_data -> instance.nested_tags; td -> nt
2022-11-07 11:36:10 -05:00
Xinhao Yuan
d15b877fb5
Use the original move handler when in a nested layout.
2022-06-29 09:22:41 -04:00
Xinhao Yuan
3b3fcd82d7
Patch awful.layout to avoid swapping client order in machi layouts, which causes flooding of client signals.
...
This should fix #18 .
2022-06-15 23:35:36 -04:00
Xinhao Yuan
958f989e58
Do not cache the tag name.
2022-06-15 23:33:31 -04:00
Xinhao Yuan
7b472770ee
Try to reduce size changes when arranging clients, but allow clipping in switcher.
2022-06-06 22:32:15 -04:00
Xinhao Yuan
e413822ae1
Avoid null error when screen configuration is changed.
2022-01-09 16:38:39 -05:00
Xinhao Yuan
540519f026
Code nits.
2021-06-21 22:56:08 -04:00
Xinhao Yuan
deffde6873
Emulate signals in virtual tags for nested layouts. Call arrange on empty nested layouts.
2021-04-18 13:18:44 -04:00
Xinhao Yuan
bf2151475f
Keep instance data when adjusting.
2021-04-18 13:18:44 -04:00
Xinhao Yuan
946494ecf0
Let default name function depend on the icon name.
2021-04-18 13:18:44 -04:00
Xinhao Yuan
f3c5535aa7
Add a placement to try empty area only. Minor bug fixing.
2021-04-18 13:18:44 -04:00
Xinhao Yuan
8f3261d9da
Revise the placement example.
2021-04-18 13:18:44 -04:00
Xinhao Yuan
4099e6fde6
English is hard again. inhabitable -> habitable and use the right meaning.
2021-04-18 13:18:44 -04:00
Xinhao Yuan
07adcbdad0
API changes for new_placement_cb and bug fixes.
2021-04-18 13:18:44 -04:00
Xinhao Yuan
c8fa41f367
Document the new placement callback with some tweaks.
2021-04-18 13:18:44 -04:00
Xinhao Yuan
88148f0dee
Minor adjustment. Moving a window does not change its draft mode.
2021-04-18 13:18:44 -04:00
Xinhao Yuan
2b8ee4abd6
Deprecate per-layout draft mode. Add placement callback.
2021-04-18 13:18:44 -04:00
Xinhao Yuan
47b3f6a96f
More automatic drafting status.
2021-04-18 13:18:44 -04:00
Xinhao Yuan
76d2aa5776
Unify style and indentation.
2021-04-18 13:18:44 -04:00
Xinhao Yuan
ee08eecb49
Per-window setting of draft mode.
2021-04-18 13:18:44 -04:00
Xinhao Yuan
8a304d7c5a
Fix an error in areas_to_command; Tweaks.
2021-04-18 13:18:44 -04:00
Xinhao Yuan
40a20f08d2
Refactor the engine out of editor. Support adjustment with various tweaks. Need to reduce the diff...
2021-04-18 13:18:42 -04:00
Xinhao Yuan
971edae6aa
Apply better gaps handling for nested layouts.
2021-03-28 18:25:37 -04:00
Xinhao Yuan
fccc051737
Reset tag data on command change.
2021-02-15 12:48:51 -05:00
Xinhao Yuan
79cae17233
Feed in region dependent tag data for nested layouts.
2021-02-15 10:33:41 -05:00
Xinhao Yuan
a651f5528e
Nested layout.
2021-02-14 23:05:19 -05:00
Xinhao Yuan
9fa3d500c3
Use per-layout default_cmd if set. (Issue #5 )
2020-11-22 15:01:46 -05:00
Xinhao Yuan
b6c96e8338
Do not arrange immobilized clients.
2020-08-30 21:23:46 -04:00
Xinhao Yuan
00e3e0aba5
Provided default value of editor; Changed document.
2020-03-21 17:03:27 -04:00
Xinhao Yuan
a1378403c7
change layout.create prototype
2020-03-21 16:51:50 -04:00
Xinhao Yuan
964244d693
Added per layout default command; Fixed README.md.
2020-03-21 10:09:35 -04:00
Xinhao Yuan
9d87edec24
minor fixes; added flags to switch behaviors when moving clients with mouse
2019-10-14 23:42:45 -04:00
Simon Siegler
0409b4e068
Fix `attempt to concatenate a nil value`
...
Stumbled over this with termite:
New termite windows seem to lack a name.
2019-10-10 15:09:10 +02:00
Xinhao Yuan
15e3ca0a2b
Mouse move handler: try to avoid shrinking the client
2019-10-05 18:01:10 -04:00
Xinhao Yuan
93c64f0fd4
better debug output
2019-10-02 21:45:07 -04:00
Xinhao Yuan
bc84e7b537
default layout
2019-09-14 15:21:28 -04:00
Xinhao Yuan
98e09cbdb3
minor visual in switcher
2019-09-08 23:28:35 -04:00
Xinhao Yuan
726dd0b992
respect the clients' weight/height more when fitting them into the layout
2019-09-07 10:51:23 -04:00
Xinhao Yuan
4632b29e92
better logging
2019-08-19 23:46:49 -04:00
Xinhao Yuan
7e15746759
make switcher more natural in draft mode
2019-08-19 23:26:27 -04:00
Xinhao Yuan
df4fe38c66
resize_handler
2019-08-02 17:45:21 -04:00
Xinhao Yuan
752539bba5
Draft mode
2019-07-31 21:00:38 -04:00
Xinhao Yuan
009cbb0d83
oops typo
2019-07-21 23:57:44 -04:00
Xinhao Yuan
a1b6eef873
make useless_gap usage more friendly; minor fix
2019-07-21 12:03:55 -04:00
Xinhao Yuan
dfb0f19512
revise the naming function
2019-07-14 13:34:54 -04:00
Xinhao Yuan
8b48e9582f
allow non-persistent layout
2019-07-14 13:26:13 -04:00
Xinhao Yuan
6ea5f035ed
Incorporating reddit comments from u/sigprof. Thanks!
...
1. Instead of setting beautiful.layout_machi. Provide `machi.get_icon()` to generate the icon.
2. Make `layout.create(name, editor)` take `name` as a function to customize tag-dependent naming.
3. Editor/switch now grabs theme settings before starting instead of loading.
2019-07-13 18:45:38 -04:00
Xinhao Yuan
40437871d3
make layout dependent on tags
2019-07-12 20:01:41 -04:00
Xinhao Yuan
2436da4c89
internal refactoring
2019-07-12 16:21:35 -04:00