forge
Explore
Log in

Don't you dare go Hollow

af6d84a7f85c3804bcf60d066f26e33070a17d1cUnverifiedUjp8LfXBJ6wCPR and Carl Hjerpe, Ivan MolodetskikhParent: f203c87
* Fix typos reported by "typos" crate

https://github.com/crate-ci/typos

* Ignore typo datas -> data

See https://github.com/crate-ci/typos?tab=readme-ov-file#false-positives
for more configureability.

---------
niri-ipc/src/lib.rsmodified+1 -1
@@ -307,7 +307,7 @@ pub enum OutputAction {
307307 Mode {
308308 /// Mode to set, or "auto" for automatic selection.
309309 ///
310- /// Run `niri msg outputs` to see the avaliable modes.
310+ /// Run `niri msg outputs` to see the available modes.
311311 #[cfg_attr(feature = "clap", arg())]
312312 mode: ModeToSet,
313313 },
resources/niri-sessionmodified+1 -1
@@ -34,7 +34,7 @@ fi
3434 # Start niri and wait for it to terminate.
3535 systemctl --user --wait start niri.service
3636
37-# Force stop of grahical-session.target.
37+# Force stop of graphical-session.target.
3838 systemctl --user start --job-mode=replace-irreversibly niri-shutdown.target
3939
4040 # Unset environment that we've set.
src/cursor.rsmodified+1 -1
@@ -142,7 +142,7 @@ impl CursorManager {
142142 .unwrap()
143143 }
144144
145- /// Currenly used cursor_image as a cursor provider.
145+ /// Currently used cursor_image as a cursor provider.
146146 pub fn cursor_image(&self) -> &CursorImageStatus {
147147 &self.current_cursor
148148 }
src/handlers/compositor.rsmodified+1 -1
@@ -132,7 +132,7 @@ impl CompositorHandler for State {
132132 let output =
133133 output.filter(|o| self.niri.layout.monitor_for_output(o).is_some());
134134
135- // Chech that the workspace still exists.
135+ // Check that the workspace still exists.
136136 let workspace_name = workspace_name
137137 .filter(|n| self.niri.layout.find_workspace_by_name(n).is_some());
138138
src/layout/workspace.rsmodified+1 -1
@@ -3355,7 +3355,7 @@ fn compute_new_view_offset(
33553355 return -(new_col_x - cur_x);
33563356 }
33573357
3358- // Otherwise, prefer the aligment that results in less motion from the current position.
3358+ // Otherwise, prefer the alignment that results in less motion from the current position.
33593359 let dist_to_left = cur_x.abs_diff(new_x);
33603360 let dist_to_right = (cur_x + view_width).abs_diff(new_right_x);
33613361 if dist_to_left <= dist_to_right {
src/niri.rsmodified+5 -5
@@ -161,7 +161,7 @@ pub struct Niri {
161161 pub is_at_startup: bool,
162162
163163 // Each workspace corresponds to a Space. Each workspace generally has one Output mapped to it,
164- // however it may have none (when there are no outputs connected) or mutiple (when mirroring).
164+ // however it may have none (when there are no outputs connected) or multiple (when mirroring).
165165 pub layout: Layout<Mapped>,
166166
167167 // This space does not actually contain any windows, but all outputs are mapped into it
@@ -236,7 +236,7 @@ pub struct Niri {
236236 /// When this happens, the pointer also loses any focus. This is so that touch can prevent
237237 /// various tooltips from sticking around.
238238 pub pointer_hidden: bool,
239- // FIXME: this should be able to be removed once PointerFocus takes grabs into accound.
239+ // FIXME: this should be able to be removed once PointerFocus takes grabs into account.
240240 pub pointer_grab_ongoing: bool,
241241 pub tablet_cursor_location: Option<Point<f64, Logical>>,
242242 pub gesture_swipe_3f_cumulative: Option<(f64, f64)>,
@@ -377,7 +377,7 @@ struct SurfaceFrameThrottlingState {
377377 }
378378
379379 pub enum CenterCoords {
380- Seperately,
380+ Separately,
381381 Both,
382382 }
383383
@@ -535,7 +535,7 @@ impl State {
535535 let y_in_bound = cur_loc.y >= rect.loc.y && cur_loc.y <= rect.loc.y + rect.size.h;
536536
537537 let p = match mode {
538- CenterCoords::Seperately => {
538+ CenterCoords::Separately => {
539539 if x_in_bound && y_in_bound {
540540 return false;
541541 } else if y_in_bound {
@@ -596,7 +596,7 @@ impl State {
596596 return false;
597597 }
598598
599- self.move_cursor_to_focused_tile(CenterCoords::Seperately)
599+ self.move_cursor_to_focused_tile(CenterCoords::Separately)
600600 }
601601
602602 pub fn maybe_warp_cursor_to_focus_centered(&mut self) -> bool {
typos.tomladded+2 -0
@@ -0,0 +1,2 @@
1+[default.extend-words]
2+datas = "datas"
wiki/examples/resize_custom_shader.fragmodified+1 -1
@@ -26,7 +26,7 @@ vec4 resize_color(vec3 coords_curr_geo, vec3 size_curr_geo) {
2626 //
2727 // The shader runs over an area of unspecified size and location, so you must
2828 // expect and handle coordinates outside the [0, 1] range. The area will be
29-// large enough to accomodate a crossfade effect.
29+// large enough to accommodate a crossfade effect.
3030 //
3131 // * size_curr_geo: size of the current window geometry in logical pixels.
3232 //