diff options
author | CyrIng | 2015-12-15 13:00:10 +0100 |
---|---|---|
committer | CyrIng | 2015-12-15 13:00:10 +0100 |
commit | e538ccc8c1ce9edd83c022dfcf2186e909e11d32 (patch) | |
tree | a60814da320cd8c83432852e4eda4d843e5047af /xdm-xfreq.rc | |
parent | ef854c4fdaa2be28ca4703f476fe0920b9b3fc2a (diff) | |
download | aur-e538ccc8c1ce9edd83c022dfcf2186e909e11d32.tar.gz |
Query the screen size only if a display is active.
Diffstat (limited to 'xdm-xfreq.rc')
-rwxr-xr-x | xdm-xfreq.rc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xdm-xfreq.rc b/xdm-xfreq.rc index 7e589a347ee3..7b946ae06d7b 100755 --- a/xdm-xfreq.rc +++ b/xdm-xfreq.rc @@ -1,10 +1,11 @@ #!/bin/sh -read WIDTH HEIGHT <<< $(xdpyinfo | awk -F'[ x]+' '/dimensions:/{print $3, $4}') +if [[ -v DISPLAY ]]; then + read WIDTH HEIGHT <<< $(xdpyinfo | awk -F'[ x]+' '/dimensions:/{print $3, $4}') +fi source /etc/xdm-xfreq/xdm-theme.rc - # Keyboard NumLock ON XDM_XFREQ_KEYB_LED_PATH=numlockx XDM_XFREQ_KEYB_LED_ARGS="" |