Skip to content

Commit da1897b

Browse files
committed
[DATALAD RUNCMD] run codespell throughout fixing typos automagically (but ignoring overall fail due to ambigous ones)
=== Do not change lines below === { "chain": [], "cmd": "codespell -w || :", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
1 parent 5cfde04 commit da1897b

File tree

9 files changed

+25
-25
lines changed

9 files changed

+25
-25
lines changed

Settings.ui

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@
13121312
<child>
13131313
<object class="GtkGrid">
13141314
<property name="focusable">False</property>
1315-
<property name="tooltip_text" translatable="yes">Sets the drift speed (px/ms) when mouse is at edge of montior when dragging windows.</property>
1315+
<property name="tooltip_text" translatable="yes">Sets the drift speed (px/ms) when mouse is at edge of monitor when dragging windows.</property>
13161316
<property name="margin_start">12</property>
13171317
<property name="margin_end">12</property>
13181318
<property name="margin_top">6</property>
@@ -2198,7 +2198,7 @@
21982198
<property name="margin_end">12</property>
21992199
<property name="hexpand">1</property>
22002200
<property name="wrap">True</property>
2201-
<property name="label" translatable="yes">Availble options for the &lt;i&gt;open window position&lt;/i&gt; button.
2201+
<property name="label" translatable="yes">Available options for the &lt;i&gt;open window position&lt;/i&gt; button.
22022202

22032203
Selected options will be cycled through when clicking the
22042204
button or using the &lt;i&gt;Switch between positions for creating windows (e.g. right, left)&lt;/i&gt; shortcut.

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export function spawnWindow(app, workspace) {
145145
try {
146146
return trySpawnWindow(app, workspace);
147147
} catch (e) {
148-
// Let the overide take care any fallback
148+
// Let the override take care any fallback
149149
return app.open_new_window(-1);
150150
}
151151
}

debug

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function gnome-shell-exe-path {
6262
fi
6363
}
6464

65-
function procees {
65+
function process {
6666
jq --unbuffered --raw-output '
6767
{ts: .__REALTIME_TIMESTAMP, message: .MESSAGE}
6868
| @sh "TS=\(.ts); MESSAGE=\(.message)\u0000"
@@ -85,7 +85,7 @@ function procees {
8585

8686
journalctl --follow --lines 400 -o json --output-fields MESSAGE \
8787
$@ $(gnome-shell-exe-path) \
88-
| procees \
88+
| process \
8989
| skip-crap \
9090
| decode-multiline-message
9191

grab.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class MoveGrab {
7979
let space = this.initialSpace;
8080
let frame = metaWindow.get_frame_rect();
8181

82-
this.initialY = clone.targetY;
82+
this.initially = clone.targetY;
8383
Easer.removeEase(clone);
8484
let [gx, gy] = Utils.getPointerCoords();
8585

@@ -203,7 +203,7 @@ export class MoveGrab {
203203
this.selectDndZone(space, sx, sy);
204204
}
205205

206-
/** x,y in scroll cooridinates */
206+
/** x,y in scroll coordinates */
207207
selectDndZone(space, x, y, initial = false) {
208208
const gap = Settings.prefs.window_gap;
209209
const halfGap = gap / 2;
@@ -416,7 +416,7 @@ export class MoveGrab {
416416
clone.y = y - dy;
417417

418418
const threshold = 300;
419-
dy = Math.min(threshold, Math.abs(clone.y - this.initialY));
419+
dy = Math.min(threshold, Math.abs(clone.y - this.initially));
420420
let s = 1 - Math.pow(dy / 500, 3);
421421
let actor = metaWindow.get_compositor_private();
422422
actor.set_scale(s, s);

lib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Library of simple functions for use in all other modules.
3-
* This libary should be clean and not depend on any other modules.
3+
* This library should be clean and not depend on any other modules.
44
*/
55

66
/**

patches.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export function setupOverrides() {
271271

272272
registerOverridePrototype(Workspace.Workspace, '_isOverviewWindow', win => {
273273
win = win.meta_window ?? win; // should be metawindow, but get if not
274-
// upstream (gnome value result - whta it would have done)
274+
// upstream (gnome value result - what it would have done)
275275
const saved = getSavedPrototype(Workspace.Workspace, '_isOverviewWindow');
276276
const upstreamValue = saved?.call(this, win) ?? !win.skip_taskbar;
277277

settings.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export function keystrToKeycombo(keystr) {
175175
let [, key, mask] = accelerator_parse(keystr);
176176
if (aboveTab)
177177
key = META_KEY_ABOVE_TAB;
178-
return `${key}|${mask}`; // Since js doesn't have a mapable tuple type
178+
return `${key}|${mask}`; // Since js doesn't have a mappable tuple type
179179
}
180180

181181
export function generateKeycomboMap(settings) {
@@ -268,7 +268,7 @@ export function overrideConflicts(checkKey = null) {
268268
_overriddingConflicts = true;
269269
let saveList = getSavedOverrides();
270270

271-
// restore orignal keybinds prior to conflict overriding
271+
// restore original keybinds prior to conflict overriding
272272
restoreConflicts();
273273

274274
let disableAll = [];
@@ -338,7 +338,7 @@ export function restoreConflicts() {
338338
}
339339
});
340340

341-
// now remove retored keybinds from list
341+
// now remove restored keybinds from list
342342
toRemove.forEach(r => {
343343
r.remove();
344344
saveList.delete(r.key);

tiling.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ export class Space extends Array {
262262
this._floating = [];
263263
this._populated = false;
264264

265-
// default focusMode (can be overriden by saved user pref in Space.init method)
265+
// default focusMode (can be overridden by saved user pref in Space.init method)
266266
this.focusMode = FocusModes.DEFAULT;
267267
this.focusModeIcon = new Topbar.FocusIcon({
268268
name: 'panel',
@@ -1331,7 +1331,7 @@ export class Space extends Array {
13311331
return [Math.round(vx), Math.round(vy)];
13321332
}
13331333

1334-
/** Transform global coordinates to scroll cooridinates (cloneContainer relative) */
1334+
/** Transform global coordinates to scroll coordinates (cloneContainer relative) */
13351335
globalToScroll(gx, gy, { useTarget = false } = {}) {
13361336
// Use the smart transform on the actor, as that's the one we scale etc.
13371337
// We can then use straight translation on the scroll which makes it possible to use target instead if wanted.
@@ -2282,7 +2282,7 @@ export const Spaces = class Spaces extends Map {
22822282

22832283
let primary = Main.layoutManager.primaryMonitor;
22842284
if (!primary) {
2285-
// setup periodic timout to call layout on all spaces 5 times (1 second apart)
2285+
// setup periodic timeout to call layout on all spaces 5 times (1 second apart)
22862286
monitorChangeTimeout = Utils.periodic_timeout({
22872287
count: 5,
22882288
init: () => {
@@ -3147,7 +3147,7 @@ export const Spaces = class Spaces extends Map {
31473147
let time = animate ? Settings.prefs.animation_time : 0;
31483148
let onComplete = () => {
31493149
// Hide any spaces that aren't visible This
3150-
// avoids a nasty preformance degregration in some
3150+
// avoids a nasty performance degregration in some
31513151
// cases
31523152
for (const space of spaces.values()) {
31533153
if (!visible.get(space)) {
@@ -3395,7 +3395,7 @@ export function hasTransient(metaWindow) {
33953395
}
33963396

33973397
/**
3398-
* Conveniece method for checking if a window is floating.
3398+
* Convenience method for checking if a window is floating.
33993399
* Will determine what space this window is on.
34003400
* @param metaWindow
34013401
* @returns
@@ -3865,7 +3865,7 @@ class SaveState {
38653865

38663866
/**
38673867
* For monitors, since these are upgraded with "connector" field,
3868-
* which we delete on disable. Beefore we delete this field, we want
3868+
* which we delete on disable. Before we delete this field, we want
38693869
* a copy on connector (and index) to restore space to monitor.
38703870
*/
38713871
if (spaces?.monitors) {
@@ -4569,7 +4569,7 @@ export function grabEnd(_metaWindow, _type) {
45694569

45704570
/**
45714571
* Sets the selected window on other workspaces inactive.
4572-
* Particularly noticable with multi-monitor setups.
4572+
* Particularly noticeable with multi-monitor setups.
45734573
*/
45744574
export function setAllWorkspacesInactive() {
45754575
spaces.forEach(s => s.setSelectionInactive());
@@ -4651,7 +4651,7 @@ export function focus_handler(metaWindow) {
46514651

46524652
/**
46534653
* if there then clone.y shouldn't be 0. This can happen though if a window
4654-
* is fullscreened when `layout` is called. In this case, when we focuse on a
4654+
* is fullscreened when `layout` is called. In this case, when we focus on a
46554655
* window that isn't fullscreen but has clone.y 0 ==> need a layout call.
46564656
*/
46574657
if (
@@ -4921,7 +4921,7 @@ export function getCycleWindowWidths(metaWindow) {
49214921
let workArea = space.workArea();
49224922

49234923
if (steps[0] <= 1) {
4924-
// Steps are specifed as ratios -> convert to pixels
4924+
// Steps are specified as ratios -> convert to pixels
49254925
// Make sure two windows of "compatible" width will have room:
49264926
let availableWidth = workArea.width - Settings.prefs.horizontal_margin * 2 - Settings.prefs.window_gap;
49274927
steps = steps.map(x => Math.floor(x * availableWidth));
@@ -5043,7 +5043,7 @@ export function activateLastWindow(_mw, space) {
50435043
/**
50445044
* Calls `activateWindow` only after an actor is visible and rendered on the stage.
50455045
* The standard `Main.activateWindow(mw)` should be used in general, but this method
5046-
* may be requried under certain use cases (such as activating a floating window
5046+
* may be required under certain use cases (such as activating a floating window
50475047
* programmatically before it's rendered, see
50485048
* https://github.com/paperwm/PaperWM/issues/448 for details).
50495049
*/
@@ -5530,7 +5530,7 @@ export function takeWindow(metaWindow, space, options = {}) {
55305530
});
55315531

55325532
signals.connectOneShot(navigator, 'destroy', () => {
5533-
// ensure keyboard grabstate is dimissed (in case moving stopped via pointer)
5533+
// ensure keyboard grabstate is dismissed (in case moving stopped via pointer)
55345534
Navigator.dismissDispatcher(Clutter.GrabState.KEYBOARD);
55355535
navigator.showTakeHint(false);
55365536

utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export function getPointerCoords() {
214214
}
215215

216216
/**
217-
* Returns monitor a pointer co-ordinates.
217+
* Returns monitor a pointer coordinates.
218218
*/
219219
export function monitorAtPoint(gx, gy) {
220220
for (let monitor of Main.layoutManager.monitors) {

0 commit comments

Comments
 (0)