Fix typos (#429)
Browse files at this commit8 changed files +13 -11
- niri-ipc/src/lib.rs +1 -1
- resources/niri-session +1 -1
- src/cursor.rs +1 -1
- src/handlers/compositor.rs +1 -1
- src/layout/workspace.rs +1 -1
- src/niri.rs +5 -5
- typos.toml +2 -0
- wiki/examples/resize_custom_shader.frag +1 -1
niri-ipc/src/lib.rsmodified+1 -1
| @@ -307,7 +307,7 @@ pub enum OutputAction { | ||
| 307 | 307 | Mode { |
| 308 | 308 | /// Mode to set, or "auto" for automatic selection. |
| 309 | 309 | /// |
| 310 | - /// Run `niri msg outputs` to see the avaliable modes. | |
| 310 | + /// Run `niri msg outputs` to see the available modes. | |
| 311 | 311 | #[cfg_attr(feature = "clap", arg())] |
| 312 | 312 | mode: ModeToSet, |
| 313 | 313 | }, |
resources/niri-sessionmodified+1 -1
| @@ -34,7 +34,7 @@ fi | ||
| 34 | 34 | # Start niri and wait for it to terminate. |
| 35 | 35 | systemctl --user --wait start niri.service |
| 36 | 36 | |
| 37 | -# Force stop of grahical-session.target. | |
| 37 | +# Force stop of graphical-session.target. | |
| 38 | 38 | systemctl --user start --job-mode=replace-irreversibly niri-shutdown.target |
| 39 | 39 | |
| 40 | 40 | # Unset environment that we've set. |
src/cursor.rsmodified+1 -1
| @@ -142,7 +142,7 @@ impl CursorManager { | ||
| 142 | 142 | .unwrap() |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | - /// Currenly used cursor_image as a cursor provider. | |
| 145 | + /// Currently used cursor_image as a cursor provider. | |
| 146 | 146 | pub fn cursor_image(&self) -> &CursorImageStatus { |
| 147 | 147 | &self.current_cursor |
| 148 | 148 | } |
src/handlers/compositor.rsmodified+1 -1
| @@ -132,7 +132,7 @@ impl CompositorHandler for State { | ||
| 132 | 132 | let output = |
| 133 | 133 | output.filter(|o| self.niri.layout.monitor_for_output(o).is_some()); |
| 134 | 134 | |
| 135 | - // Chech that the workspace still exists. | |
| 135 | + // Check that the workspace still exists. | |
| 136 | 136 | let workspace_name = workspace_name |
| 137 | 137 | .filter(|n| self.niri.layout.find_workspace_by_name(n).is_some()); |
| 138 | 138 |
src/layout/workspace.rsmodified+1 -1
| @@ -3355,7 +3355,7 @@ fn compute_new_view_offset( | ||
| 3355 | 3355 | return -(new_col_x - cur_x); |
| 3356 | 3356 | } |
| 3357 | 3357 | |
| 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. | |
| 3359 | 3359 | let dist_to_left = cur_x.abs_diff(new_x); |
| 3360 | 3360 | let dist_to_right = (cur_x + view_width).abs_diff(new_right_x); |
| 3361 | 3361 | if dist_to_left <= dist_to_right { |
src/niri.rsmodified+5 -5
| @@ -161,7 +161,7 @@ pub struct Niri { | ||
| 161 | 161 | pub is_at_startup: bool, |
| 162 | 162 | |
| 163 | 163 | // 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). | |
| 165 | 165 | pub layout: Layout<Mapped>, |
| 166 | 166 | |
| 167 | 167 | // This space does not actually contain any windows, but all outputs are mapped into it |
| @@ -236,7 +236,7 @@ pub struct Niri { | ||
| 236 | 236 | /// When this happens, the pointer also loses any focus. This is so that touch can prevent |
| 237 | 237 | /// various tooltips from sticking around. |
| 238 | 238 | 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. | |
| 240 | 240 | pub pointer_grab_ongoing: bool, |
| 241 | 241 | pub tablet_cursor_location: Option<Point<f64, Logical>>, |
| 242 | 242 | pub gesture_swipe_3f_cumulative: Option<(f64, f64)>, |
| @@ -377,7 +377,7 @@ struct SurfaceFrameThrottlingState { | ||
| 377 | 377 | } |
| 378 | 378 | |
| 379 | 379 | pub enum CenterCoords { |
| 380 | - Seperately, | |
| 380 | + Separately, | |
| 381 | 381 | Both, |
| 382 | 382 | } |
| 383 | 383 | |
| @@ -535,7 +535,7 @@ impl State { | ||
| 535 | 535 | let y_in_bound = cur_loc.y >= rect.loc.y && cur_loc.y <= rect.loc.y + rect.size.h; |
| 536 | 536 | |
| 537 | 537 | let p = match mode { |
| 538 | - CenterCoords::Seperately => { | |
| 538 | + CenterCoords::Separately => { | |
| 539 | 539 | if x_in_bound && y_in_bound { |
| 540 | 540 | return false; |
| 541 | 541 | } else if y_in_bound { |
| @@ -596,7 +596,7 @@ impl State { | ||
| 596 | 596 | return false; |
| 597 | 597 | } |
| 598 | 598 | |
| 599 | - self.move_cursor_to_focused_tile(CenterCoords::Seperately) | |
| 599 | + self.move_cursor_to_focused_tile(CenterCoords::Separately) | |
| 600 | 600 | } |
| 601 | 601 | |
| 602 | 602 | 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) { | ||
| 26 | 26 | // |
| 27 | 27 | // The shader runs over an area of unspecified size and location, so you must |
| 28 | 28 | // 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. | |
| 30 | 30 | // |
| 31 | 31 | // * size_curr_geo: size of the current window geometry in logical pixels. |
| 32 | 32 | // |