mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +00:00
Merge pull request #1755 from cronyakatsuki/alacritty
preview-tabbed: Add alacritty as xembed client for text-based preview
This commit is contained in:
commit
2f22afcacc
|
@ -4,7 +4,7 @@
|
||||||
#
|
#
|
||||||
# Dependencies:
|
# Dependencies:
|
||||||
# - tabbed (https://tools.suckless.org/tabbed): xembed host
|
# - tabbed (https://tools.suckless.org/tabbed): xembed host
|
||||||
# - xterm (or urxvt or st) : xembed client for text-based preview
|
# - xterm (or urxvt or st or alacritty) : xembed client for text-based preview
|
||||||
# - mpv (https://mpv.io): xembed client for video/audio
|
# - mpv (https://mpv.io): xembed client for video/audio
|
||||||
# - sxiv (https://github.com/muennich/sxiv) or,
|
# - sxiv (https://github.com/muennich/sxiv) or,
|
||||||
# - nsxiv (https://codeberg.org/nsxiv/nsxiv) : xembed client for images
|
# - nsxiv (https://codeberg.org/nsxiv/nsxiv) : xembed client for images
|
||||||
|
@ -63,6 +63,8 @@ elif type urxvt >/dev/null 2>&1 ; then
|
||||||
TERMINAL="urxvt -embed"
|
TERMINAL="urxvt -embed"
|
||||||
elif type st >/dev/null 2>&1 ; then
|
elif type st >/dev/null 2>&1 ; then
|
||||||
TERMINAL="st -w"
|
TERMINAL="st -w"
|
||||||
|
elif type alacritty >/dev/null 2>&1 ; then
|
||||||
|
TERMINAL="alacritty --embed"
|
||||||
else
|
else
|
||||||
echo "No xembed term found" >&2
|
echo "No xembed term found" >&2
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue