gomodoro

command module
v0.0.0-...-0c9167f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2021 License: MIT Imports: 11 Imported by: 0

README

gomodoro

Simple pomodoro timer in golang + fyne.

Tested on Windows only.

gomodoro-img

Of course... - You, seeing this ☝️

Motivation

Looked for timers on Microsoft Store, it crashed, three times.

Found a pomodoro online, it didn't notify me.

So I made one... probably works.

Screenshots:

Screenshot_2

Screenshot_3

Run

  • Install go 1.16+ (requires go:embed)
  • Install fyne dependencies (tested on v2.0.3): https://github.com/fyne-io/fyne
  • Run fyne examples, to check it's working.
  • Run the app:
git clone https://github.com/haroflow/gomodoro
cd gomodoro
go run .

Package

Install fyne command (tested on v2.0.3):

go get fyne.io/fyne/v2/cmd/fyne
fyne version

Build package:

fyne package

Run:

gomodoro.exe

To-do

  • Play a sound when timer expires?
  • The alert is pretty intrusive (which works for me). Add an option to send system notifications, in case you don't want to be disturbed by the fullscreen alert.
  • Add option to go to systray when minimized. Depends on a OnMinimized event from fyne.
  • When resizing, the timer stops counting down. We are doing this on another goroutine... not sure but maybe getting values from the data-binding is waiting for resize to end.
  • Remove golang puns

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL