]> Sergey Matveev's repositories - nnn.git/commitdiff
Add alacritty as xembed client for text-based preview
authorCronyAkatsuki <64900606+cronyakatsuki@users.noreply.github.com>
Fri, 3 Nov 2023 12:08:09 +0000 (12:08 +0000)
committerGitHub <noreply@github.com>
Fri, 3 Nov 2023 12:08:09 +0000 (12:08 +0000)
plugins/preview-tabbed

index 5235c1eefe0324d540082b7babeb18eebb126b2f..8f454ce8481bbcf9e3b72c689b39631b7c7b1365 100755 (executable)
@@ -4,7 +4,7 @@
 #
 # Dependencies:
 #   - 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
 #   - sxiv (https://github.com/muennich/sxiv) or,
 #   - 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"
 elif type st >/dev/null 2>&1 ; then
     TERMINAL="st -w"
+elif type alacritty >/dev/null 2>&1 ; then
+    TERMINAL="alacritty --embed"
 else
     echo "No xembed term found" >&2
 fi