diff options
-rwxr-xr-x | bin/impressive-display | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/impressive-display b/bin/impressive-display index 74921bd..62284c8 100755 --- a/bin/impressive-display +++ b/bin/impressive-display @@ -191,6 +191,10 @@ sleep_hours_start=`echo $SLEEP_HOURS | grep -E '^[0-9]{2}-[0-9]{2}$' | sed -n - sleep_hours_end=`echo $SLEEP_HOURS | grep -E '^[0-9]{2}-[0-9]{2}$' | sed -n -r -e 's/^([0-9]{2})-([0-9]{2})$/\2/p'` function cleanup { + if type -p xrandr xrandr 1>/dev/null; then + $OUTPUT "Info: resetting resolution to $currentResolution" + xrandr -d :0 --output "$(echo $currentDisplay)" --auto + fi if [ -r "$impressive_lock" ]; then impressive_pid=$(cat "$impressive_lock" | sed -e 's/[^0-9]*//g') |