nv: wayland support
This commit is contained in:
parent
6d723f0bbd
commit
bc3a467ade
@ -2,12 +2,12 @@
|
|||||||
# Small wrapper over neovide/neovim
|
# Small wrapper over neovide/neovim
|
||||||
|
|
||||||
swal() {
|
swal() {
|
||||||
if command -v dwmswallow > /dev/null; then
|
if command -v dwmswallow > /dev/null && [ -n "$DISPLAY" ]; then
|
||||||
dwmswallow "$WINDOWID" -c neovide
|
dwmswallow "$WINDOWID" -c neovide
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if ! command -v neovide > /dev/null || [ -z "$DISPLAY" ]; then
|
if ! command -v neovide > /dev/null || [ -z "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ]; then
|
||||||
nvim "$@"
|
nvim "$@"
|
||||||
else
|
else
|
||||||
swal
|
swal
|
||||||
|
Loading…
Reference in New Issue
Block a user