Skip to content

Commit

Permalink
Update docs for release.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shea Craig committed May 1, 2015
1 parent 40299bd commit 62065ff
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased][unreleased]

## [1.5.4] - 2015-04-30 Nobody Tosses a Dwarf
### CHANGED
- Now activates the app over top of all other apps (```NSApplication.activateIgnoringOtherApps_()```)
- Reports idle time in whole seconds instead of 6-digit precision floats.
- Defaults to playing the "Submarine" sound when firing alert.
- Sound may be overridden with globals.

## [1.5.3] - 2015-04-30 Kim Chee Hot Pants
### CHANGED
Expand All @@ -29,7 +34,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Computers with a power schedule fail to execute script.
- Computers past shutdown time need an additional sudoers entry for shutdown privileges.

[unreleased]: https://github.com/sheagcraig/yo/compare/1.5.3...HEAD
[unreleased]: https://github.com/sheagcraig/yo/compare/1.5.4...HEAD
[1.5.4]: https://github.com/sheagcraig/auto_logout/compare/1.5.3...1.5.4
[1.5.3]: https://github.com/sheagcraig/auto_logout/compare/1.5.2...1.5.3
[1.5.2]: https://github.com/sheagcraig/auto_logout/compare/1.5.1...1.5.2
[1.5.1]: https://github.com/sheagcraig/auto_logout/compare/1.5...1.5.1
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,23 @@ In ```/usr/local/bin/auto_logout.py```:
* ```MAXIDLE```: The number of seconds after which a system is considered to be idle. (Default is 1800 seconds, i.e. 30 minutes).
* ```LO_TIMEOUT```: The number of seconds a user has to cancel the auto logout after the alert runs. (Configured for 120 seconds).
* ```ICON_PATH```: A valid path to an icon file (a .png) to use in the alert window. (Defaults to a nasty dark cloud icon).
* ```ALERT_SOUND```: Name of a sound to play when firing alert. See [Sounds](#sounds) section. (Defaults to "Submarine").

In ```/Library/LaunchAgents/org.da.autoLogout.plist```
* ```StartInterval``` The interval, in seconds, after which the LaunchAgent runs. (Defaults to run every 5 minutes).

### Sounds
If you want to use a different sound, you must provide the *name* of the sound, not the filename, and not the path. I.e "Sosumi", not "Sosumi.aiff" or "/System/Library/Sosumi.aiff".

If you don't want a sound, set ```ALERT_SOUND``` to ```""``` or ```None```.

The search path is:
- ~/Library/Sounds
- /Library/Sounds
- /Network/Library/Sounds
- /System/Library/Sounds (This is where all of the builtin sounds live)

If you want to include a custom sound, it needs to be available in one of those paths. So for example, if you wanted to use the sound file "TotalEclipseOfTheHeart.aiff", copy it to ```/Library/Sounds``` (which may not exist by default), and set the ```ALERT_SOUND``` option like this:
```ALERT_SOUND = "TotalEclipseOfTheHeart"```

Sounds must be a aiff; extension .aif is not valid.

0 comments on commit 62065ff

Please sign in to comment.