项目作者: connor-brooks

项目描述 :
A small retro pomodoro timer written in C which utilises the Linux PC speaker
高级语言: C
项目地址: git://github.com/connor-brooks/pomodoro.c.git
创建时间: 2019-08-18T21:59:04Z
项目社区:https://github.com/connor-brooks/pomodoro.c

开源协议:

下载


pomodoro.c

A small pomodoro timer written in C

screenshot

A very simple pomodoro timer which requires no dependencies. Must be ran as root in order to get sound, as the internal PC speaker is used for the alarm.

The Pomodoro Technique is a time management method created by Francesco Cirillo, ideal for studying or other work. See the Wikipedia article for more information on the Pomodoro Technique.

Requirements

  • gcc
  • Linux

How to use

Compile:

gcc pomodoro.c -o pomodoro

If you require sound:

sudo chown root:root ./pomodoro

sudo chmod 4755. /pomodoro

If the pcspkr kernel module isn’t already loaded:

sudo modprobe pcspkr

Run:

./pomodoro

Notes

  • This program does not accept parameters, to tweak, recompile. This is due to security concerns, as the program should be running as root in order to access the PC speaker.