Skip to content

v2.0.0 Revamp

Compare
Choose a tag to compare
@jurassicplayer jurassicplayer released this 16 Jul 11:55
· 42 commits to main since this release
1d292c4

AutoSuspend v2.0.0 is a major refactoring of the entire plugin. While not exactly necessary, it is recommended to delete the older settings.json before using (if AutoSuspend v2 is already installed prior to deleting the file, just reload the plugin).

There is a multitude of new features, including:

  • Stricter validation of saved settings
  • Introduces triggered actions, which replaces the hardcoded Suspend action with None, Suspend, and Shutdown
  • Introduces 3 new alarm types in addition to the previous discharge/overcharge alarms:
    • Daily Playtime: Triggers an alarm after reaching an accumulated play time throughout the day (persistent across suspend/shutdown)
    • Session Playtime: Triggers an alarm after reaching an accumulated play time in a single sitting (new session after each suspend/shutdown)
    • Bedtime: Triggers an alarm after reaching a certain time of day
    • Discharge: Triggers an alarm after discharging to a certain battery percentage
    • Overcharge: Triggers an alarm after recharging to a certain battery percentage
  • Customizable toasts:
    • Headers and messages with substitute-able placeholders
      • {batt%}: Current battery percentage (-0.5% offset applied to more closely match the visual percentage usually shown)
      • {playHrs}: Current play session hours
      • {playMin}: Current play session minutes
      • {playSec}: Current play session seconds
      • {date:<datetimeformat>}: Current date & time using the datetime format specified (python strftime flavored). ex: {date:%I%M %p} => 03:32 PM
        • Not all directives are implemented (missing: %f, %z, %j, %-j, %U, %W)
        • Implemented directives are not exact implementations (just some janky javascript)
    • Sound effect can be changed to any of SteamOS's default navigation sound effects
  • Ability to enable/disable alarms
  • Per user/Global alarms
  • No longer has a specific limit on the number of alarms