summaryrefslogtreecommitdiff
path: root/.wmii/include.sh
diff options
context:
space:
mode:
Diffstat (limited to '.wmii/include.sh')
-rw-r--r--.wmii/include.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/.wmii/include.sh b/.wmii/include.sh
index 36f8f3e..f4b29b3 100644
--- a/.wmii/include.sh
+++ b/.wmii/include.sh
@@ -68,3 +68,8 @@ Action() {
return 1
fi
}
+
+connected_to_x_server() {
+ xdpyinfo &>/dev/null
+ return $?
+}