summaryrefslogtreecommitdiff
path: root/scripts/focus_firefox.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/focus_firefox.js')
-rw-r--r--scripts/focus_firefox.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/scripts/focus_firefox.js b/scripts/focus_firefox.js
deleted file mode 100644
index 9d8c09b..0000000
--- a/scripts/focus_firefox.js
+++ /dev/null
@@ -1,13 +0,0 @@
-var appName = "firefox";
-
-// Search for a Firefox window
-var client = workspace.clientList().find(c => c.resourceName === appName);
-
-if (client) {
- // Focus the window
- workspace.activeClient = client;
-} else {
- // Start Firefox if not running
- workspace.launch("firefox");
-}
-