From b882df090f6223940b118c2369e19d1b8a0721a4 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Wed, 20 Nov 2024 19:04:47 +0200 Subject: Fixed LSP issue by enabling dynamic linking, and removed unused scripts --- scripts/focus_app.sh | 9 --------- scripts/focus_firefox.js | 13 ------------- 2 files changed, 22 deletions(-) delete mode 100755 scripts/focus_app.sh delete mode 100644 scripts/focus_firefox.js (limited to 'scripts') 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"); -} - -- cgit v1.3.1