Skip to content

Commit

Permalink
Notification timeout is 5 seconds
Browse files Browse the repository at this point in the history
Add screenshots of notifications from test cases
  • Loading branch information
schlomo committed Apr 14, 2015
1 parent 27fd213 commit f8409ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file added automirror-notifications.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion automirror.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ XRANDR_STATUS_PROGRAM=${XRANDR_STATUS_PROGRAM:-xrandr}
XRANDR_SET_PROGRAM=${XRANDR_SET_PROGRAM:-xrandr}

PRIMARY_DISPLAY=${AUTOMIRROR_PRIMARY_DISPLAY:-LVDS1}
NOTIFY_SEND=( ${AUTOMIRROR_NOTIFY_COMMAND:-notify-send -a automirror -i automirror "Automatic Mirror Configuration"} )
NOTIFY_SEND=( ${AUTOMIRROR_NOTIFY_COMMAND:-notify-send -t 5000 -a automirror -i automirror "Automatic Mirror Configuration"} )

# force called programs to english output
LANG=C LC_ALL=C
Expand Down Expand Up @@ -83,5 +83,6 @@ fi

$XRANDR_SET_PROGRAM "${xrandr_set_args[@]}"
ret=$?
set -x
"${NOTIFY_SEND[@]}" "$notify_string"
exit $ret

0 comments on commit f8409ad

Please sign in to comment.