aboutsummaryrefslogtreecommitdiff
path: root/shellrc.d-desktop
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-01-16 14:44:59 +0100
committerKarel Kočí <cynerd@email.cz>2022-01-16 14:44:59 +0100
commit0cf542815d11b09e411a00267c89180e28623991 (patch)
tree1bdb6ec627e7205e6104f8ef87d2d4af4235d99d /shellrc.d-desktop
parentc3f3442f62a121ec6562ac955a6ae48b42e0a9a6 (diff)
downloadshellrc-89e7a4497ba1930750666841d29ddc2af9849863.tar.gz
shellrc-89e7a4497ba1930750666841d29ddc2af9849863.tar.bz2
shellrc-89e7a4497ba1930750666841d29ddc2af9849863.zip
desktop/xorg: do not load if wayland is detectedv0.9.0
Diffstat (limited to 'shellrc.d-desktop')
-rw-r--r--shellrc.d-desktop/xorg3
1 files changed, 2 insertions, 1 deletions
diff --git a/shellrc.d-desktop/xorg b/shellrc.d-desktop/xorg
index 1a03b16..91c9f07 100644
--- a/shellrc.d-desktop/xorg
+++ b/shellrc.d-desktop/xorg
@@ -1,7 +1,8 @@
# vim: ft=sh:
# These are utility functions loaded when we are running in Xserver
-[ -z "$DISPLAY" ] && return # Ignore if there is no display set
+[ -n "$DISPLAY" ] || return # Ignore if there is no display set
+[ -z "$WAYLAND_DISPLAY" ] || return
alias i='i3-msg'