diff options
| author | Kyren223 <Kyren223@proton.me> | 2024-11-20 19:04:47 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2024-11-20 19:04:47 +0200 |
| commit | b882df090f6223940b118c2369e19d1b8a0721a4 (patch) | |
| tree | ac16620f12be84dc15025b6defe797ef5cc81f10 | |
| parent | 621e6f4bf444bad28002b6dece3971e0d9a5b5d3 (diff) | |
Fixed LSP issue by enabling dynamic linking, and removed unused scripts
| -rw-r--r-- | hosts/laptop-nixos/configuration.nix | 3 | ||||
| -rwxr-xr-x | scripts/focus_app.sh | 9 | ||||
| -rw-r--r-- | scripts/focus_firefox.js | 13 |
3 files changed, 3 insertions, 22 deletions
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"); -} - |
