nv: wayland support

This commit is contained in:
dogeystamp 2024-08-12 23:06:14 -04:00
parent 6d723f0bbd
commit bc3a467ade
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -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