mirror of
https://github.com/Bismuth-Forge/bismuth.git
synced 2024-09-17 11:37:10 +03:00
refactor: 🚨 fix a bundh of linter errors
This commit is contained in:
parent
1b3c14cbfb
commit
0f43507bcb
@ -348,7 +348,7 @@ export class TilingController implements Controller {
|
|||||||
window.timestamp = new Date().getTime();
|
window.timestamp = new Date().getTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
public onShortcut(input: Shortcut, data?: any): void {
|
public onShortcut(input: Shortcut, data?: string): void {
|
||||||
if (this.config.directionalKeyMode === "focus") {
|
if (this.config.directionalKeyMode === "focus") {
|
||||||
switch (input) {
|
switch (input) {
|
||||||
case Shortcut.Up:
|
case Shortcut.Up:
|
||||||
|
@ -24,10 +24,10 @@ export class KWinSurface implements DriverSurface {
|
|||||||
): string {
|
): string {
|
||||||
let path = String(screen);
|
let path = String(screen);
|
||||||
if (config.layoutPerActivity) {
|
if (config.layoutPerActivity) {
|
||||||
path += "@" + activity;
|
path += `@${activity}`;
|
||||||
}
|
}
|
||||||
if (config.layoutPerDesktop) {
|
if (config.layoutPerDesktop) {
|
||||||
path += "#" + desktop;
|
path += `"#${desktop}`;
|
||||||
}
|
}
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
@ -308,7 +308,7 @@ export class TilingEngine implements Engine {
|
|||||||
* which is straight against the purpose of tiling WM. This operation
|
* which is straight against the purpose of tiling WM. This operation
|
||||||
* move/resize such windows back to where/how they should be.
|
* move/resize such windows back to where/how they should be.
|
||||||
*/
|
*/
|
||||||
public enforceSize(window: Window) {
|
public enforceSize(window: Window): void {
|
||||||
if (window.tiled && !window.actualGeometry.equals(window.geometry)) {
|
if (window.tiled && !window.actualGeometry.equals(window.geometry)) {
|
||||||
qmlSetTimeout(() => {
|
qmlSetTimeout(() => {
|
||||||
if (window.tiled) {
|
if (window.tiled) {
|
||||||
@ -566,7 +566,7 @@ export class TilingEngine implements Engine {
|
|||||||
*
|
*
|
||||||
* @returns True if the layout overrides the shortcut. False, otherwise.
|
* @returns True if the layout overrides the shortcut. False, otherwise.
|
||||||
*/
|
*/
|
||||||
public handleLayoutShortcut(input: Shortcut, data?: any): boolean {
|
public handleLayoutShortcut(input: Shortcut, data?: string): boolean {
|
||||||
const layout = this.layouts.getCurrentLayout(
|
const layout = this.layouts.getCurrentLayout(
|
||||||
this.controller.currentSurface
|
this.controller.currentSurface
|
||||||
);
|
);
|
||||||
|
@ -95,7 +95,11 @@ export default class CascadeLayout implements WindowsLayout {
|
|||||||
return new CascadeLayout(this.dir);
|
return new CascadeLayout(this.dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
public handleShortcut(engine: Engine, input: Shortcut, _data?: any): boolean {
|
public handleShortcut(
|
||||||
|
engine: Engine,
|
||||||
|
input: Shortcut,
|
||||||
|
_data?: string
|
||||||
|
): boolean {
|
||||||
switch (input) {
|
switch (input) {
|
||||||
case Shortcut.Increase:
|
case Shortcut.Increase:
|
||||||
this.dir = (this.dir + 1 + 8) % 8;
|
this.dir = (this.dir + 1 + 8) % 8;
|
||||||
|
@ -33,7 +33,7 @@ export class FillLayoutPart implements ILayoutPart {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public apply(area: Rect, tiles: Window[]): Rect[] {
|
public apply(area: Rect, tiles: Window[]): Rect[] {
|
||||||
return tiles.map((tile) => {
|
return tiles.map((_tile) => {
|
||||||
return area;
|
return area;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -245,7 +245,7 @@ export class RotateLayoutPart<T extends ILayoutPart> implements ILayoutPart {
|
|||||||
|
|
||||||
switch (this.angle) {
|
switch (this.angle) {
|
||||||
case 0:
|
case 0:
|
||||||
delta = delta;
|
// No adjustment needed
|
||||||
break;
|
break;
|
||||||
case 90:
|
case 90:
|
||||||
delta = new RectDelta(delta.south, delta.north, delta.east, delta.west);
|
delta = new RectDelta(delta.south, delta.north, delta.east, delta.west);
|
||||||
|
@ -60,7 +60,11 @@ export default class MonocleLayout implements WindowsLayout {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public handleShortcut(engine: Engine, input: Shortcut, _data?: any): boolean {
|
public handleShortcut(
|
||||||
|
engine: Engine,
|
||||||
|
input: Shortcut,
|
||||||
|
_data?: string
|
||||||
|
): boolean {
|
||||||
switch (input) {
|
switch (input) {
|
||||||
case Shortcut.Up:
|
case Shortcut.Up:
|
||||||
case Shortcut.FocusUp:
|
case Shortcut.FocusUp:
|
||||||
|
@ -197,7 +197,11 @@ export default class ThreeColumnLayout implements WindowsLayout {
|
|||||||
return other;
|
return other;
|
||||||
}
|
}
|
||||||
|
|
||||||
public handleShortcut(engine: Engine, input: Shortcut, _data?: any): boolean {
|
public handleShortcut(
|
||||||
|
engine: Engine,
|
||||||
|
input: Shortcut,
|
||||||
|
_data?: string
|
||||||
|
): boolean {
|
||||||
switch (input) {
|
switch (input) {
|
||||||
case Shortcut.Increase:
|
case Shortcut.Increase:
|
||||||
this.resizeMaster(engine, +1);
|
this.resizeMaster(engine, +1);
|
||||||
|
Loading…
Reference in New Issue
Block a user