summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-11-20 19:04:47 +0200
committerKyren223 <Kyren223@proton.me>2024-11-20 19:04:47 +0200
commitb882df090f6223940b118c2369e19d1b8a0721a4 (patch)
treeac16620f12be84dc15025b6defe797ef5cc81f10 /scripts
parent621e6f4bf444bad28002b6dece3971e0d9a5b5d3 (diff)
Fixed LSP issue by enabling dynamic linking, and removed unused scripts
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/focus_app.sh9
-rw-r--r--scripts/focus_firefox.js13
2 files changed, 0 insertions, 22 deletions
diff --git a/scripts/focus_app.sh b/scripts/focus_app.sh
deleted file mode 100755
index 11c23c4..0000000
--- a/scripts/focus_app.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-if xdotool search --class "firefox" getwindowname %@ | grep -q "firefox"; then
-if xdotool search --onlyvisible --class "firefox" windowactivate %@; then
- echo "firefox is focused. Minimizing."
- xdotool search --onlyvisible --class "firefox" windowminimize %@
-else
- echo "firefox is open but not focused. Focusing the existing instance."
- xdotool search --class "firefox" windowactivate %@
-fi
-
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");
-}
-