Fix alacritty not opening links when clicked
This commit is contained in:
parent
247127647b
commit
ea152e1c42
@ -17,13 +17,19 @@
|
|||||||
|
|
||||||
xdgOpenRules = defaultXDGOpenRules ++ config.alacritty.xdgOpenRules;
|
xdgOpenRules = defaultXDGOpenRules ++ config.alacritty.xdgOpenRules;
|
||||||
|
|
||||||
|
alacrittyUnwrap = pkgs.writeShellScript "alacritty-unwrap" ''
|
||||||
|
unset LD_LIBRARY_PATH
|
||||||
|
unset __EGL_VENDOR_LIBRARY_DIRS
|
||||||
|
exec "$@"
|
||||||
|
'';
|
||||||
|
|
||||||
hints = {
|
hints = {
|
||||||
enabled = (builtins.map (r:
|
enabled = (builtins.map (r:
|
||||||
{
|
{
|
||||||
regex = r.pattern;
|
regex = r.pattern;
|
||||||
hyperlinks = true;
|
hyperlinks = true;
|
||||||
command = (pkgs.writeShellScript "alacritty-hints-${r.name}" ''
|
command = (pkgs.writeShellScript "alacritty-hints-${r.name}" ''
|
||||||
xdg-open "${r.xdgOpen}"
|
${alacrittyUnwrap} xdg-open "${r.xdgOpen}"
|
||||||
'');
|
'');
|
||||||
post_processing = true;
|
post_processing = true;
|
||||||
mouse.enabled = true;
|
mouse.enabled = true;
|
||||||
@ -39,9 +45,7 @@
|
|||||||
);
|
);
|
||||||
|
|
||||||
shellEntrypoint = pkgs.writeShellScript "alacritty-shell-entrypoint" ''
|
shellEntrypoint = pkgs.writeShellScript "alacritty-shell-entrypoint" ''
|
||||||
unset LD_LIBRARY_PATH
|
exec ${alacrittyUnwrap} "${zsh}/bin/zsh" "$@"
|
||||||
unset __EGL_VENDOR_LIBRARY_DIRS
|
|
||||||
exec "${zsh}/bin/zsh" "$@"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
alacritty = pkgs.writeShellScriptBin "alacritty" ''
|
alacritty = pkgs.writeShellScriptBin "alacritty" ''
|
||||||
|
Loading…
Reference in New Issue
Block a user