From bc3a467adea4af010ad585a94c379f6371411e85 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Mon, 12 Aug 2024 23:06:14 -0400 Subject: [PATCH] nv: wayland support --- src/dot_local/bin/executable_nv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dot_local/bin/executable_nv b/src/dot_local/bin/executable_nv index 6151695..34cb24e 100644 --- a/src/dot_local/bin/executable_nv +++ b/src/dot_local/bin/executable_nv @@ -2,12 +2,12 @@ # Small wrapper over neovide/neovim swal() { - if command -v dwmswallow > /dev/null; then + if command -v dwmswallow > /dev/null && [ -n "$DISPLAY" ]; then dwmswallow "$WINDOWID" -c neovide fi } -if ! command -v neovide > /dev/null || [ -z "$DISPLAY" ]; then +if ! command -v neovide > /dev/null || [ -z "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ]; then nvim "$@" else swal