Commit graph

297 commits

Author SHA1 Message Date
Ottatop
5fbb3e51e9 Add scale to output properties 2024-03-23 16:55:06 -05:00
Ottatop
1907381d99 Add scale setting to Rust API 2024-03-23 16:08:51 -05:00
Ottatop
dfc7a1351e Add scale setting to API, fix fractional scaling 2024-03-23 15:23:00 -05:00
Ottatop
8d3bbf28f8 Add Pinnacle.run and use for tests 2024-03-23 01:39:07 -05:00
Ottatop
535b441887 Return from ping loop if it's the only coroutine
FIXME: this is a bandaid fix to get tests working again. Most tests will have to wait through one ping loop before exiting, causing tests to take like 10 minutes.
2024-03-23 00:43:29 -05:00
Ottatop
6adb560e81 Add set mode 2024-03-22 18:58:31 -05:00
Ottatop
2fd98301e6 Add output modes to API 2024-03-22 18:37:27 -05:00
Ottatop
869a2223f5 Add keepalive pings to clients
This should clients to die if the compositor was killed but they weren't dropped
2024-03-22 16:40:06 -05:00
Ottatop
0ae090bba5 Add window raising to api 2024-03-21 18:39:27 -05:00
Ottatop
fcd549c947 Move stuff around and attempt to fix the docs
Futile attempt btw, what I need to do is rewrite the whole Lua doc gen thing
2024-03-16 21:48:40 -05:00
Ottatop
0bd64ee3aa Add Rust default config comments, batch tag calls 2024-03-16 21:03:01 -05:00
Ottatop
2538ef5b74 Add example config comments 2024-03-16 20:40:39 -05:00
Ottatop
4b63dc0830 Duplicate doc comments
Don't like that I have to do this but there's no way to have both a non-null and nullable class definition without some duplication
2024-03-16 20:12:18 -05:00
Ottatop
88988701e6 Change Lua builtin layouts to classes 2024-03-16 19:58:38 -05:00
Ottatop
17d0760e43 Add deep copy to copy Lua layouts
This is probably not going to be in the final iteration; I think I might convert all Lua layouts to classes instead of having users deep copy them to change settings
2024-03-16 16:40:47 -05:00
Ottatop
79291d1cd9 Add rust layout docs, adhere to nonexclusive zone 2024-03-15 22:09:27 -05:00
Ottatop
75852551e2 Remove old layout system completely 2024-03-15 21:12:16 -05:00
Ottatop
a98777c11e Add Rust layouts 2024-03-15 20:51:12 -05:00
Ottatop
ab2b3ee13b Add fair layout 2024-03-15 14:02:28 -05:00
Ottatop
a8ec13d7d2 Add spiral layout 2024-03-14 21:13:26 -05:00
Ottatop
b2dd05fd1e Dedup layout logic 2024-03-14 21:06:09 -05:00
Ottatop
94cd2e53aa Add corner layout 2024-03-14 20:44:08 -05:00
Ottatop
e86f242330 Impl Layout.request_layout 2024-03-14 19:42:08 -05:00
Ottatop
e1f2706428 Add layout cycling, dwindle, remove old layout stuff 2024-03-14 19:21:51 -05:00
Ottatop
b3ba9f9393 Add new master stack layout
Currently only this layout for the Lua client works, and there's no cycling layouts yet
2024-03-14 17:31:32 -05:00
Ottatop
e3830e9c26 Fix compile errors 2024-03-12 18:40:12 -05:00
Ottatop
77a3ae85a5 Add layout proto defs 2024-03-12 18:20:13 -05:00
Ottatop
4b509b5bc1 Recurse through lua window rule cond to extract id 2024-03-11 19:57:06 -05:00
Ottatop
140b0200aa Add some tests
First ever squash no clue what I'm doing
2024-03-11 19:39:41 -05:00
Ottatop
24696595af Finish better CLI 2024-03-03 02:25:19 -06:00
Ottatop
2e5853eabe Return from batch if requests is empty
Fixes a hang if you tried to close a window with the keybind with no windows open
2024-02-24 15:23:42 -06:00
Ottatop
14a36b9738 Rework focus and add Window.set_focused
This has to be one of the most unreviewable commits I think I've created yet
2024-02-24 14:41:52 -06:00
Ottatop
67ee5021bd Port Lua client fix 2024-02-23 18:10:28 -06:00
Ottatop
b7c60a9e79 Fixup Lua docs again 2024-02-23 17:54:53 -06:00
Ottatop
3959a87019 Fixup Lua docs 2024-02-23 17:49:09 -06:00
Ottatop
d1e7c92774 Add Lua docs 2024-02-23 17:36:55 -06:00
Ottatop
1abc17b5b4 Add docs 2024-02-23 17:15:55 -06:00
Ottatop
2427ba620e Yield after running signal callbacks 2024-02-23 16:51:56 -06:00
Ottatop
5db8b1c54d Merge main deadlock fix 2024-02-23 16:30:59 -06:00
Ottatop
2e0a8b940a ong I don't remember 2024-02-23 16:24:43 -06:00
Ottatop
01a9874ecd Fix deadlock again (maybe)
This took like 4 hours to figure out, async sucks wtf
2024-02-23 16:17:22 -06:00
Ottatop
d76777a633 Add window pointer enter and leave signals 2024-02-21 23:56:19 -06:00
Ottatop
6b2b7066ac Make connect_for_all use signals 2024-02-21 23:30:28 -06:00
Ottatop
7d94fc4362 Add output connect signal
untested
2024-02-21 22:48:09 -06:00
Ottatop
1539f73e45 Get a signal to work 2024-02-21 19:40:11 -06:00
Ottatop
729ad66429 Merge branch 'main' into signal_minimal 2024-02-21 18:09:25 -06:00
Ottatop
563bf7d92a Scaffold signals 2024-02-21 18:08:23 -06:00
Ottatop
a70e686bdf Fix docs 2024-02-20 21:50:59 -06:00
Ottatop
b8c5ec751b Add basic API batching for Rust
Function coloring is fun
2024-02-20 21:35:51 -06:00
Ottatop
20af3a116c Add basic API batching for Lua 2024-02-20 15:59:04 -06:00
Ottatop
9b5eac55d1 Fixup Cargo workspace 2024-02-17 23:50:36 -06:00
Ottatop
fa2eed1adc Change config objects to modules 2024-02-07 21:39:56 -06:00
Ottatop
a41517101e Replace all futures::executor::block_on with tokio equivalent 2024-01-25 20:14:20 -06:00
Ottatop
dae790f54c Update Smithay, add MPL licenses to API libs 2024-01-22 21:04:08 -06:00
Ottatop
236f40b364 Add comments, improve macro error msgs 2024-01-22 20:27:22 -06:00
Ottatop
8356f99d84 Split tag.get, impl PartialEq, Eq, Hash for handles 2024-01-22 18:36:04 -06:00
Ottatop
9f067a0996 Fix wording 2024-01-22 00:12:32 -06:00
Ottatop
ba1b3feefb Fix typo 2024-01-22 00:09:11 -06:00
Ottatop
1cdeb59a38 Nuke the old Rust API form orbit 2024-01-21 23:45:09 -06:00
Ottatop
9acd0e5ce3 Add finishing touches 2024-01-21 23:07:10 -06:00
Ottatop
111cc76fa5 Add more docs 2024-01-21 22:54:32 -06:00
Ottatop
a8ffecab2f Improve config macro 2024-01-21 22:34:17 -06:00
Ottatop
c742807a34 Add window rules
And a lot of docs
2024-01-21 21:01:41 -06:00
Ottatop
ac5b5c939f Add the rest of the docs 2024-01-20 23:19:01 -06:00
Ottatop
82ef55024c Add process docs, set_env 2024-01-20 23:05:50 -06:00
Ottatop
1192512230 Add window docs 2024-01-20 22:48:44 -06:00
Ottatop
b55c9e7813 Add output docs 2024-01-20 22:14:49 -06:00
Ottatop
b262f11f4d Add layout cycler 2024-01-20 21:27:22 -06:00
Ottatop
af1c3148f1 Add tag docs 2024-01-20 20:13:38 -06:00
Ottatop
575201e316 Add input docs 2024-01-20 17:37:54 -06:00
Ottatop
e08c653ab4 Add convenience methods 2024-01-20 16:30:52 -06:00
Ottatop
8a469fb525 Make things work 2024-01-20 15:31:45 -06:00
Ottatop
80edacd6e2 Remove nested block_on 2024-01-20 12:37:22 -06:00
Ottatop
ac56abf549 Losing my mind 2024-01-19 19:37:00 -06:00
Ottatop
2eea7bf71b Add a bunch more functions 2024-01-18 23:11:25 -06:00
Ottatop
2bf8e25e21 Add a bunch of functions 2024-01-17 21:55:34 -06:00
Ottatop
2c5c500786 Start rewriting Rust API 2024-01-16 18:46:54 -06:00
Ottatop
048835837d Add note 2024-01-16 16:24:34 -06:00
Ottatop
643f694478 Remove stuff that shouldn't be in docs 2024-01-16 16:21:38 -06:00
Ottatop
2dd170cf10 Rename all lua_grpc to lua 2024-01-16 14:23:18 -06:00
Ottatop
c444ae9585 Remove old Lua API 2024-01-15 23:37:17 -06:00
Ottatop
e18b2a12d3 Add rockspec, remove graceful shutdown stuff 2024-01-15 20:30:59 -06:00
Ottatop
b67867c066 Move grpc socket to XDG_RUNTIME_DIR 2024-01-15 17:46:08 -06:00
Ottatop
7841ea3422 Add libinput to new API
I forgor 💀
2024-01-14 23:38:05 -06:00
Ottatop
3f87784248 Debug stuff 2024-01-14 22:28:02 -06:00
Ottatop
f7068a1146 Get mousebinds to work 2024-01-14 20:25:57 -06:00
Ottatop
8ae7f44580 Clean up docs 2024-01-14 20:03:58 -06:00
Ottatop
fbef4007ea Add doc-gen comment stuff
Somehow the doc-gen tool still works, kinda crazy
2024-01-14 19:53:43 -06:00
Ottatop
35e7b73646 Attempt to salvage guaranteed-to-fail workflow 2024-01-14 19:35:54 -06:00
Ottatop
a8239f171e Add docs to new Lua API
1000% sure I'm gonna have to rewrite my LDoc generation tool to actually work
2024-01-14 18:01:41 -06:00
Ottatop
7fe56ed949 Gracefully shutdown after ctrl-c 2024-01-14 13:34:00 -06:00
Ottatop
1cdc6fe42d No clue
I'm sick and my brain is fried rn no clue what's in this commit
2024-01-13 23:15:14 -06:00
Ottatop
efa846d40b Remove re-exports 2024-01-13 15:42:15 -06:00
Ottatop
0c4fc3ad1d Start on new example config
TODO: write the docs, fix input keysym reading, make a luarocks module
2024-01-12 21:48:07 -06:00
Ottatop
f10bd933ca Write rest of new Lua API 2024-01-12 20:15:58 -06:00
Ottatop
97f9cf82d6 Write half of new Lua API 2024-01-12 17:20:34 -06:00
Ottatop
3b88b3ff11 Add working Lua gRPC client 2024-01-11 21:58:35 -06:00
Ottatop
3236f455b9 Impl remaining services 2024-01-11 13:40:17 -06:00
Ottatop
31d3ffc10d Impl services for input, tag, and process 2024-01-10 20:21:59 -06:00
Ottatop
46ba7d9ad0 Extract proto into crate, start impl'ing services 2024-01-09 19:25:51 -06:00