diff options
-rwxr-xr-x | bin/impressive-display | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/impressive-display b/bin/impressive-display index 62284c8..799da03 100755 --- a/bin/impressive-display +++ b/bin/impressive-display @@ -78,6 +78,13 @@ IMPRESSIVE_OPTIONS="--transition None" # write some debugging output to stdout when downloading a remote PDF DEBUG_DOWNLOADS="" + +trap "cleanup" SIGINT SIGTERM ERR EXIT + +if type -p xrandr 1>/dev/null; then + currentOutput=`echo "$(xrandr)" | grep -w 'connected' | sed -r -e 's/connected.*//' | head -n 1` +fi + # if files exists: source it to this file (The script will overide variables) if [ -r $HOME/.impressive-display-secrets ] && [ ! -d $HOME/.impressive-display-secrets ]; then . $HOME/.impressive-display-secrets |