summaryrefslogtreecommitdiff
path: root/src/modules/launcher
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/launcher')
-rw-r--r--src/modules/launcher/index.tsx2
-rw-r--r--src/modules/launcher/modes.tsx16
-rw-r--r--src/modules/launcher/util.tsx2
3 files changed, 1 insertions, 19 deletions
diff --git a/src/modules/launcher/index.tsx b/src/modules/launcher/index.tsx
index 3f8645e..973f5cd 100644
--- a/src/modules/launcher/index.tsx
+++ b/src/modules/launcher/index.tsx
@@ -10,7 +10,6 @@ const getModeIcon = (mode: Mode) => {
if (mode === "apps") return "apps";
if (mode === "files") return "folder";
if (mode === "math") return "calculate";
- if (mode === "windows") return "select_window";
return "search";
};
@@ -18,7 +17,6 @@ const getPrettyMode = (mode: Mode) => {
if (mode === "apps") return "Apps";
if (mode === "files") return "Files";
if (mode === "math") return "Math";
- if (mode === "windows") return "Windows";
return mode;
};
diff --git a/src/modules/launcher/modes.tsx b/src/modules/launcher/modes.tsx
index 3f6e03e..0db7cd5 100644
--- a/src/modules/launcher/modes.tsx
+++ b/src/modules/launcher/modes.tsx
@@ -218,24 +218,8 @@ class Math extends Widget.Box implements LauncherContent {
}
}
-@register()
-class Windows extends Widget.Box implements LauncherContent {
- constructor() {
- super({ name: "windows", className: "windows" });
- }
-
- updateContent(search: string): void {
- throw new Error("Method not implemented.");
- }
-
- handleActivate(search: string): void {
- throw new Error("Method not implemented.");
- }
-}
-
export default () => ({
apps: new Apps(),
files: new Files(),
math: new Math(),
- windows: new Windows(),
});
diff --git a/src/modules/launcher/util.tsx b/src/modules/launcher/util.tsx
index 3c4e8bf..8288588 100644
--- a/src/modules/launcher/util.tsx
+++ b/src/modules/launcher/util.tsx
@@ -2,7 +2,7 @@ import { FlowBox } from "@/utils/widgets";
import type { Variable } from "astal";
import { App, Gtk } from "astal/gtk3";
-export type Mode = "apps" | "files" | "math" | "windows";
+export type Mode = "apps" | "files" | "math";
export interface LauncherContent {
updateContent(search: string): void;