/rustnot

Don't rust. Stand up.

Primary LanguageRustApache License 2.0Apache-2.0

rustnot

Don't rust. Stand up.

This tool is just a simple programm running in the background and remindining you to stand up and sit back down via desktop notifications.

Reason for this is I have a desk which can be used while standing or sitting and while working long hours at my PC I tend to forget to change my stance once in a while to relax my back.

rustnut UI

Settings

You can set:

  • a duration in minutes for both the standing and sitting time.
  • the stance in which you start, when you start the timer.
  • the duration the notification is shown.

Notification duration on windows

Because the of limitations of the libary used to send notifications on windows. You can only choose between 7 and 25 seconds. The UI will allow you to enter any number, but the actual duration will be the one closer to the entered one.

Config

Upon start the tool tries to read the latest safed config from a rustnot_config.toml file, if it exists. Elsewise it will load the default config.

The default config is:

  • 45 min sitting
  • 15 min standing
  • Sitting as starting stance
  • 7 sec notification duration

Known Bugs

On my Linux maschine the notifications are buggy. Sometimes they work sometimes they don't. On Windows I don't have this issue therefore I assume that the issue lies with notify-rust. And because version 1 works on Linux I assume that the async threading thing has to do with the issue too.

I intent to look deeper into the issue at a later time, when I use this tool on my Linux maschine too. But this could take some time.

Acknowledgements

The coloring/styling is copied from the Styling example of iced

License

Licensed under either of

at your option.