Skip to content

Commit 67df389

Browse files
committed
chore: format
1 parent f9b5d2c commit 67df389

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

modules/bar/Bar.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ ColumnLayout {
8383
const mon = (GlobalConfig.bar.workspaces.perMonitorWorkspaces ? Hypr.monitorFor(screen) : Hypr.focusedMonitor);
8484
const specialWs = mon?.lastIpcObject.specialWorkspace.name;
8585
if (specialWs?.length > 0)
86-
Hypr.dispatch(Hypr.usingLua ? `hl.dsp.workspace.toggle_special( "${specialWs.slice(8)}" )` : `togglespecialworkspace ${specialWs.slice(8)}`);
86+
Hypr.dispatch(Hypr.usingLua ? `hl.dsp.workspace.toggle_special("${specialWs.slice(8)}")` : `togglespecialworkspace ${specialWs.slice(8)}`);
8787
else if (angleDelta.y < 0 || (GlobalConfig.bar.workspaces.perMonitorWorkspaces ? mon.activeWorkspace?.id : Hypr.activeWsId) > 1)
88-
Hypr.dispatch(Hypr.usingLua ? `hl.dsp.focus({ workspace = "r${angleDelta.y > 0 ? "-" : "+"}1"})` : `workspace r${angleDelta.y > 0 ? "-" : "+"}1`);
88+
Hypr.dispatch(Hypr.usingLua ? `hl.dsp.focus({ workspace = "r${angleDelta.y > 0 ? "-" : "+"}1" })` : `workspace r${angleDelta.y > 0 ? "-" : "+"}1`);
8989
} else if (y < screen.height / 2 && Config.bar.scrollActions.volume) {
9090
// Volume scroll on top half
9191
if (angleDelta.y > 0)

modules/bar/components/workspaces/SpecialWorkspaces.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,9 @@ Item {
227227

228228
const ws = view.itemAt(event.x, event.y) as SpecialWsDelegate;
229229
if (ws?.modelData)
230-
Hypr.dispatch(Hypr.usingLua ? `hl.dsp.workspace.toggle_special( "${ws.modelData.name.slice(8)}" )` : `togglespecialworkspace ${ws.modelData.name.slice(8)}`);
230+
Hypr.dispatch(Hypr.usingLua ? `hl.dsp.workspace.toggle_special("${ws.modelData.name.slice(8)}")` : `togglespecialworkspace ${ws.modelData.name.slice(8)}`);
231231
else
232-
Hypr.dispatch(Hypr.usingLua ? `hl.dsp.workspace.toggle_special( "special" )` : `togglespecialworkspace special`);
232+
Hypr.dispatch(Hypr.usingLua ? 'hl.dsp.workspace.toggle_special("special")' : "togglespecialworkspace special");
233233
}
234234
}
235235

modules/bar/components/workspaces/Workspaces.qml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ StyledClippingRect {
9696
anchors.fill: layout
9797
onClicked: event => {
9898
const ws = (layout.childAt(event.x, event.y) as Workspace)?.ws;
99-
if (ws === undefined || ws === null)
99+
if (!ws)
100100
return;
101101
if (Hypr.activeWsId !== ws)
102-
Hypr.dispatch(Hypr.usingLua ? `hl.dsp.focus({ workspace= "${ws}"})` : `workspace ${ws}`);
102+
Hypr.dispatch(Hypr.usingLua ? `hl.dsp.focus({ workspace = "${ws}" })` : `workspace ${ws}`);
103103
else
104-
Hypr.dispatch(Hypr.usingLua ? `hl.dsp.workspace.toggle_special("special")` : `togglespecialworkspace special`);
104+
Hypr.dispatch(Hypr.usingLua ? 'hl.dsp.workspace.toggle_special("special")' : "togglespecialworkspace special");
105105
}
106106
}
107107

services/Hypr.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Singleton {
8989

9090
function reloadDynamicConfs(): void {
9191
if (usingLua) {
92-
extras.batchMessage([`eval hl.bind("Caps_Lock", hl.dsp.global("caelestia:refreshDevices"), { locked = true, non_consuming = true, ignore_mods = true, release = true})`, `eval hl.bind("Num_Lock", hl.dsp.global("caelestia:refreshDevices"), { locked = true, non_consuming = true, ignore_mods = true, release = true})`]);
92+
extras.batchMessage(['eval hl.bind("Caps_Lock", hl.dsp.global("caelestia:refreshDevices"), { locked = true, non_consuming = true, ignore_mods = true, release = true })', 'eval hl.bind("Num_Lock", hl.dsp.global("caelestia:refreshDevices"), { locked = true, non_consuming = true, ignore_mods = true, release = true })']);
9393
} else {
9494
extras.batchMessage(["keyword bindlni ,Caps_Lock,global,caelestia:refreshDevices", "keyword bindlni ,Num_Lock,global,caelestia:refreshDevices"]);
9595
}

0 commit comments

Comments
 (0)