Fix alacritty not opening links when clicked

main
mediocregopher 5 months ago
parent 247127647b
commit ea152e1c42
  1. 12
      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" ''

Loading…
Cancel
Save