Ivan Molodetskikh
cb5d97f600
Fix new Clippy warning
...
This was stabilized in 1.76 so we can use it now.
2024-09-05 20:40:11 +03:00
Ivan Molodetskikh
608ab7d8b1
Change output sorting to match make/model/serial first
...
We can do this now that we have libdisplay-info.
2024-09-05 20:10:01 +03:00
elkowar
fd8ebb9d06
implement always_center_single_column layout option
2024-09-05 01:01:41 -07:00
Ivan Molodetskikh
952916fd1c
layout: Prevent view gesture snap beyond first/last column
2024-09-04 21:46:08 +03:00
Ivan Molodetskikh
a0592e8f53
layout: Extract snap_points()
2024-09-04 21:45:47 +03:00
Ivan Molodetskikh
5460c792bd
Fix missing KeyboardLayoutSwitched event on XKB switch
2024-09-04 20:54:11 +03:00
sodiboo
e5ecd27bbe
flake: add libdisplay-info to buildInputs
2024-09-04 09:39:22 -07:00
Ivan Molodetskikh
4543873dae
wiki/IPC: Link to the online rustdoc
2024-09-04 13:15:43 +03:00
Ivan Molodetskikh
a2c855315c
ci: Add niri-ipc rustdoc generation
2024-09-04 12:39:23 +03:00
Ivan Molodetskikh
6c4e4b374a
ipc: Write some more docs
2024-09-04 12:29:26 +03:00
Ivan Molodetskikh
9ab887bec8
ipc: Don't re-export socket types
2024-09-04 12:03:13 +03:00
Ivan Molodetskikh
268591f343
wiki: Add Since note to other open-on-output properties
2024-09-03 14:36:23 +03:00
Ivan Molodetskikh
a42717bcac
wiki/Xwayland: Mention adding DISPLAY to config environment
2024-09-03 14:12:28 +03:00
Ivan Molodetskikh
6b013a08fc
wiki: Update package list
2024-09-03 13:51:24 +03:00
Ivan Molodetskikh
b65a243fc9
Remove warning about missing output config
2024-09-03 13:48:08 +03:00
Ivan Molodetskikh
f0157e03e7
Use libdisplay-info for make/model/serial parsing, implement throughout
2024-09-03 13:48:08 +03:00
Ivan Molodetskikh
4b7c16b04a
Read config from /etc/niri/config.kdl too
2024-09-02 13:10:45 +03:00
Ivan Molodetskikh
aafd5ab70f
wiki: Use $NIRI_SOCKET in example
2024-09-02 12:38:33 +03:00
Ivan Molodetskikh
d8d6b5a5e0
wiki: Fix niri-ipc links
2024-09-02 10:05:59 +03:00
Ivan Molodetskikh
a1fd4b396f
wiki: Fix code block formatting
2024-09-02 10:04:43 +03:00
Ivan Molodetskikh
5521cdda63
wiki: Add the word IPC to the sidebar
2024-09-02 10:03:44 +03:00
Ivan Molodetskikh
12b16a9d7e
wiki: Document IPC programmatic access
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
f7181fb066
Implement by-id workspace action addressing
...
It's not added to clap because there's no convenient mutually-exclusive
argument enum derive yet (to have either the current <REFERENCE> or an
--id <ID>). It's not added to config parsing because I don't see how it
could be useful there. As such, it's only accessible through raw IPC.
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
17ac52e1d4
Fix spelling mistake
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
64a9351921
Add niri msg windows
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
332af8b062
Rearrange some CLI and IPC enum values
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
b7901579d5
Change IdCounter to be backed by an AtomicU64
...
Let's see if anyone complains.
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
138c2a3bfd
Change OutputId::get() to return u64
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
446a9f1e06
Make WorkspaceId inner field private
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
52265e2e19
utils/id: Use a Relaxed atomic op
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
0f522f209b
Change MappedIt::get() to return u64
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
30b213601a
Implement the event stream IPC
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
8eb34b2e18
Animate focus-workspace by idx/back and forth/previous
...
Deleting the test because it only made sense when no-animation was
special cased.
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
74d1b1f406
layout: Cache monitor output name
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
2b3d196876
Remove unused function
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
397b7e4bb9
ipc: Read only a single line on the client
...
Allow extensibility.
2024-09-01 23:47:19 -07:00
Ivan Molodetskikh
598b27f83c
flake: Remove maintainer comment
...
Effectively other contributors maintain it now.
2024-08-26 18:15:39 +03:00
Ivan Molodetskikh
da53e79d07
wiki: Add hotkey overlay skip to FAQ
2024-08-26 10:35:00 +03:00
Ivan Molodetskikh
2907d5af3e
wiki: Mark FAQ snippet as KDL
2024-08-26 10:35:00 +03:00
sodiboo
dd919fe01b
fix cargo run on nixos
...
this boils down to adding some extra dependencies to the shell
environment. they're also inherited from craneArgs because the ones from
the package are actually transformed into the WRONG outputs of the
packages. also refactors to use craneLib.devShell because it's somewhat
cleaner.
2024-08-25 15:42:25 +03:00
Ivan Molodetskikh
f86a9bed1a
layout: Break out early on min size
2024-08-25 11:46:04 +03:00
Ivan Molodetskikh
cfa87d508e
layout: Fix rounding in height distribution
...
Rounding before checking min height could artificially increase the
window height that we check, leading to an incorrectly satisfied min
constraint.
2024-08-25 10:16:37 +03:00
Ivan Molodetskikh
f19e1711a7
Add niri msg keyboard-layouts
2024-08-25 09:38:45 +03:00
Ivan Molodetskikh
20cd4f5d04
layout: Clamp window height to max available in column
...
When the window is alone in its column this logic intentionally isn't
triggered. Until we have a floating layer, there's no other way to get a
window larger than the screen, which I need.
2024-08-25 08:46:34 +03:00
Ivan Molodetskikh
b2c7d3ad40
Rework PW screencast frame timing
...
- Remove the 0.5 ms hack.
- Add redraw scheduling to fix stuck frame if the last redrawn frame
happened too soon.
2024-08-24 10:49:32 +03:00
Ivan Molodetskikh
4832924483
Update Smithay (layer-shell popup fix)
2024-08-24 07:22:57 +03:00
Ivan Molodetskikh
28a8a9ace2
Register deadline timer for closing transaction
2024-08-23 19:09:18 +03:00
Ivan Molodetskikh
a4f1caab1d
wiki: Update transaction list
2024-08-23 15:53:01 +03:00
Ivan Molodetskikh
c8839f7658
Implement window close transaction
...
Mainly visible with disabled animations.
2024-08-23 15:41:06 +03:00
Ivan Molodetskikh
dfe3580607
animation: Use saturating_sub in value()
2024-08-23 15:39:57 +03:00