Ivan Molodetskikh
cedfd4944c
Adjust comments
2024-03-06 21:01:00 +04:00
metent
431f070481
Add dinit support ( #246 )
...
* Add dinit support
- Add --notify-fd cli flag for ready notifications
- Set dinit activation environment when "dinit" feature flag is enabled
* Make systemd and dinit environment activation additive
* Use NOTIFY_FD env variable instead of --notify-fd cli flag for sending ready notifications
* Format with rustfmt
2024-03-06 08:57:43 -08:00
Ivan Molodetskikh
9cbbffc23c
Improve spring comments in default config
2024-03-05 19:06:21 +04:00
Ivan Molodetskikh
c6a1398d51
Add fuzzel to generate-rpm requires
2024-03-05 13:40:57 +04:00
Ivan Molodetskikh
f9127616b0
Implement rubber banding for the vertical gesture
2024-03-05 13:32:57 +04:00
Ivan Molodetskikh
ae89b2e514
Implement spring animations
2024-03-05 13:32:52 +04:00
Ivan Molodetskikh
732f7f6f33
animation: Apply slowdown in realtime
2024-03-05 13:23:06 +04:00
Ivan Molodetskikh
8bebd54c6d
tile: Prepare for oscillating animations
2024-03-05 10:33:25 +04:00
Ivan Molodetskikh
1978e5b0b8
monitor: Handle switch idx < 0 and >= len
2024-03-05 08:43:20 +04:00
Ivan Molodetskikh
60b02545f3
Move animation to subfolder
2024-03-04 16:01:57 +04:00
Ivan Molodetskikh
2750b2038b
Catch panics from edid-rs
...
Work around an integer overflow.
See: https://github.com/YaLTeR/niri/issues/239
2024-03-03 19:56:52 +04:00
Ivan Molodetskikh
c4145b014a
Add proper support for center = always in the horizontal gesture
2024-03-03 12:10:25 +04:00
Ivan Molodetskikh
2e51efd3a3
Remake horizontal gesture to snap with inertia
2024-03-03 09:33:00 +04:00
Ivan Molodetskikh
caea05433e
Extract WORKSPACE_GESTURE_MOVEMENT constant
2024-03-03 09:25:27 +04:00
Ivan Molodetskikh
e4f78c26f0
swipe-tracker: Rename retain_recent to trim_history
2024-03-03 08:04:55 +04:00
Ivan Molodetskikh
1548db56ce
Fix vertical gesture constant
...
400 is for width not height.
2024-03-02 21:18:02 +04:00
Ivan Molodetskikh
5f416abcf9
Change horizontal gesture to focus furthest window
2024-03-02 15:48:54 +04:00
Ivan Molodetskikh
66c1272420
Use unaccelerated delta for vertical gesture
...
With inertia in place it's ready for this.
2024-03-02 15:41:56 +04:00
Ivan Molodetskikh
e0ec6e5b11
Make vertical touchpad swipe inertial
...
Values and implementation are heavily inspired by AdwSwipeTracker.
2024-03-02 14:33:22 +04:00
Ivan Molodetskikh
93243d7772
Disentangle frame callback sequence from real DRM sequence
...
It can currently happen that the estimated VBlank timer fires right
before a real VBlank, which can cause some sequence collisions, which
might cause frame callbacks to never be sent. To prevent this, just
track the frame callback sequence fully separately. There isn't really
any harm in this, and if we accidentally increment it more frequently
than necessary then nothing terrible will happen.
2024-03-02 08:20:17 +04:00
sodiboo
24537ec2ba
Correctly handle parsing of Binds and DefaultColumnWidth ( #234 )
...
* add dev dependencies to flake
* parse only one default-column-width
* require exactly one action per bind, and unique keys for binds
* use proper filename for config errors if possible
* fix duplicate keybinds after invalid action, lose some sanity
2024-03-01 03:50:49 -08:00
Ivan Molodetskikh
88ac16c99a
tty: Bump sequence on successful queue_frame()
...
Before this commit:
- niri queues frame
- successful VBlank happens, sequence is bumped, frame callbacks are
sent
- niri receives commit, redraws, queues next frame, tries to send frame
callbacks, but there wasn't a new VBlank yet, so the sequence is old,
and frame callbacks aren't sent
- frame callbacks are sent only next VBlank
2024-03-01 12:56:55 +04:00
Ivan Molodetskikh
0add457cf0
tty: Avoid zero estimated vblank timer
2024-03-01 08:27:44 +04:00
Ivan Molodetskikh
6e5426ef22
Fix center-column regression
...
Mistake introduced along with the horizontal gesture.
2024-03-01 08:09:03 +04:00
Ivan Molodetskikh
202406aadf
Fix presentation feedback panic with zero presentation time
2024-03-01 07:55:09 +04:00
Ivan Molodetskikh
92d9c7ff4f
Add emulate-zero-presentation-time debug flag
2024-03-01 07:54:58 +04:00
Ivan Molodetskikh
28977d1d3f
Move workspace gesture into monitor & fix missing workspace cleanup
2024-02-29 09:51:49 +04:00
Ivan Molodetskikh
ba10bab010
Implement horizontal touchpad swipe
2024-02-29 09:51:49 +04:00
Ivan Molodetskikh
55038b7c07
Pass prev_idx explicitly to animate_view_offset_to_column()
2024-02-29 08:30:46 +04:00
Ivan Molodetskikh
8018839f5d
Extract animate_view_offset_to_column()
2024-02-28 17:23:03 +04:00
Ivan Molodetskikh
077f22edd6
Append _fit to animate_view_offset_to_column()
2024-02-28 17:21:08 +04:00
Ivan Molodetskikh
4f7c3300ef
Upgrade dependencies
2024-02-28 13:45:12 +04:00
Ivan Molodetskikh
5628bf7d77
Update Smithay
2024-02-28 13:23:15 +04:00
Christian Meissl
719697179f
input: add basic touch support
2024-02-28 13:19:41 +04:00
Christian Meissl
5ac350d51c
chore: update smithay
2024-02-28 13:19:41 +04:00
Ivan Molodetskikh
494e98c123
Parse CSS colors in {in,}active-color
2024-02-26 09:14:35 +04:00
Ivan Molodetskikh
ec156a8587
Add environment {} config section
2024-02-24 10:08:56 +04:00
Ivan Molodetskikh
e278e871c3
Expand ~ in spawn
2024-02-24 09:16:44 +04:00
Ivan Molodetskikh
ab9d1aab4e
Add open-fullscreen window rule
2024-02-24 08:44:21 +04:00
Ivan Molodetskikh
506dcd99d7
Handle un-/fullscreen after initial configure
2024-02-23 17:47:12 +04:00
Ivan Molodetskikh
dfbc024127
Rename surface -> toplevel
2024-02-23 17:40:30 +04:00
Ivan Molodetskikh
eb2dce1b53
Fix default width fixed not being honored with borders
2024-02-23 14:40:56 +04:00
Ivan Molodetskikh
f5b776a947
Fix unset default width causing a window resize right away
2024-02-23 14:31:35 +04:00
Ivan Molodetskikh
6a587245eb
Add open-maximized window rule
2024-02-23 14:24:39 +04:00
Ivan Molodetskikh
2317021a7c
Implement explicit unmapped window state tracking
2024-02-23 14:01:32 +04:00
Ivan Molodetskikh
af6485cd8c
Fix new warnings
2024-02-22 14:04:18 +04:00
Ivan Molodetskikh
f32a25eefe
Improve shader formatting
2024-02-22 10:21:38 +04:00
Ivan Molodetskikh
aefbad0cf7
Simplify gradient border shader
2024-02-22 10:17:06 +04:00
Ivan Molodetskikh
b091202d86
visual-tests: Add gradient angle and area tests
2024-02-22 08:54:35 +04:00
Ivan Molodetskikh
48f0f6fb3c
Implement gradient borders
2024-02-21 22:15:21 +04:00