~dricottone/my-utils

ref: 86e36bedac92f051a285f01385f38446a71db9a6 my-utils/check-x.sh -rwxr-xr-x 151 bytes
86e36bedDominic Ricottone Small fixes recommended by shellcheck 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# check-x.sh
# ==========
# Usage: check-x.sh
#
# Check if an X server is running

if ! xset q &>/dev/null; then
  exit 1
else
  exit 0
fi