aboutsummaryrefslogtreecommitdiff
path: root/shellrc.d-desktop/xorg
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/xorg
parentc3f3442f62a121ec6562ac955a6ae48b42e0a9a6 (diff)
downloadshellrc-0.9.0.tar.gz
shellrc-0.9.0.tar.bz2
shellrc-0.9.0.zip
desktop/xorg: do not load if wayland is detectedv0.9.0
Diffstat (limited to 'shellrc.d-desktop/xorg')
-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'