Skip to content

danielxox/days-since

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Days Since

Days Since is a small Rust tray app for KDE Plasma that tracks how long it has been since you stopped something.

It started as a sobriety timer, but it is now generic. You can use it for alcohol, porn, doom scrolling, soda, fast food, or anything else you want to quit.

What It Does

  • Shows a tray icon that updates every second
  • Opens a live left-click info window with the current elapsed time
  • Keeps the right-click menu for editing the tracked thing, changing the start time, resetting the timer, and quitting
  • Lets you track anything: alcohol, porn, doom scrolling, fast food, soda, and more
  • Saves both the tracked thing and the start time in your XDG config directory

Requirements

  • KDE Plasma or another desktop that supports StatusNotifierItem trays
  • zenity for the edit prompts
  • GTK 3 development libraries to build the popup panel

Config File

The app stores its config at:

~/.config/days-since/config.json

If you already used the old sober-tray version, the app will migrate that config the first time it starts.

Usage

  • Left click the tray icon to open the live timer window
  • Right click the tray icon to edit what you are tracking or change the start date
  • Hover the tray icon to see the current summary in the tooltip

Run It

source "$HOME/.cargo/env"
cargo run --release

Install It Locally

./scripts/install-local.sh

To also add it to your session autostart:

./scripts/install-local.sh --autostart

About

KDE Plasma tray app that tracks how long it has been since you stopped something

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors