diff options
author | mediocregopher <mediocregopher@gmail.com> | 2024-01-06 13:29:11 +0100 |
---|---|---|
committer | mediocregopher <mediocregopher@gmail.com> | 2024-01-06 13:29:11 +0100 |
commit | ea152e1c4228479ae85a7a8f4f7d9fe472691290 (patch) | |
tree | a1faa9f09c10d46f574622beef2013e6e81835d0 /alacritty | |
parent | 247127647b4191fca2a46ee8e33fcbaf071b7bfe (diff) |
Fix alacritty not opening links when clicked
Diffstat (limited to 'alacritty')
-rw-r--r-- | alacritty/default.nix | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/alacritty/default.nix b/alacritty/default.nix index d0c08aa..0a84229 100644 --- a/alacritty/default.nix +++ b/alacritty/default.nix @@ -17,13 +17,19 @@ xdgOpenRules = defaultXDGOpenRules ++ config.alacritty.xdgOpenRules; + alacrittyUnwrap = pkgs.writeShellScript "alacritty-unwrap" '' + unset LD_LIBRARY_PATH + unset __EGL_VENDOR_LIBRARY_DIRS + exec "$@" + ''; + hints = { enabled = (builtins.map (r: { regex = r.pattern; hyperlinks = true; command = (pkgs.writeShellScript "alacritty-hints-${r.name}" '' - xdg-open "${r.xdgOpen}" + ${alacrittyUnwrap} xdg-open "${r.xdgOpen}" ''); post_processing = true; mouse.enabled = true; @@ -39,9 +45,7 @@ ); shellEntrypoint = pkgs.writeShellScript "alacritty-shell-entrypoint" '' - unset LD_LIBRARY_PATH - unset __EGL_VENDOR_LIBRARY_DIRS - exec "${zsh}/bin/zsh" "$@" + exec ${alacrittyUnwrap} "${zsh}/bin/zsh" "$@" ''; alacritty = pkgs.writeShellScriptBin "alacritty" '' |