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 --- hosts/laptop-nixos/configuration.nix | 3 +++ scripts/focus_app.sh | 9 --------- scripts/focus_firefox.js | 13 ------------- 3 files changed, 3 insertions(+), 22 deletions(-) delete mode 100755 scripts/focus_app.sh delete mode 100644 scripts/focus_firefox.js diff --git a/hosts/laptop-nixos/configuration.nix b/hosts/laptop-nixos/configuration.nix index 730b57e..4a80055 100644 --- a/hosts/laptop-nixos/configuration.nix +++ b/hosts/laptop-nixos/configuration.nix @@ -65,6 +65,9 @@ # Enable touchpad support (enabled default in most desktopManager). # services.xserver.libinput.enable = true; + # Enable dynamic linking of applications that are not in nixpkgs (for vim LSPs for example). + programs.nix-ld.enable = true; + # Allow sudo without a password if in "wheel" group. security.sudo.wheelNeedsPassword = false; 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