Commit Graph

39 Commits

Author SHA1 Message Date
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
Xinhao Yuan c1ab5bc81b internal refactoring 2019-07-12 16:17:34 -04:00
Xinhao Yuan 2ca22c2cc1 Incorporating comments from reddit. Thanks u/sigprof.
1. Removed unintended global names
2. The default history file changed to `gfs.get_cache_dir() .. "/history_machi"`
3. `editor` will detect if the layout is machi before start
4. Added `machi_` prefix for machi fields in the layout objects.
2019-07-12 10:05:58 -04:00
Xinhao Yuan c578140bef fix 2019-07-11 11:36:39 -04:00
Xinhao Yuan dfb3e8f365 move region calculation to arrangement 2019-07-11 11:25:20 -04:00
Xinhao Yuan 16a6f77ea4 save last command based on layout name 2019-07-08 16:58:09 -04:00
Xinhao Yuan 75e42f33e2 fix 2019-07-07 16:43:54 -04:00
Xinhao Yuan f93e2e7f9b fix 2019-07-07 16:20:16 -04:00
Xinhao Yuan c2f8691b9c refactoring 2019-07-07 16:19:18 -04:00
Xinhao Yuan 8891f371a8 set layout directly by command. restore the last layout 2019-07-05 21:57:27 -04:00
Xinhao Yuan 358c2cee18 . 2019-07-05 18:42:56 -04:00
Xinhao Yuan e7f4b96b93 resize handling 2019-07-05 17:04:18 -04:00
Xinhao Yuan 98a2e8093e order the areas by size (and x + y) 2019-07-05 15:08:45 -04:00
Xinhao Yuan c1c6a759f4 initial 2019-07-04 17:32:05 -04:00