Skip to main content

Work break reminder

Project description

# HealthyWork
生活不止有屏幕上的代码,还有诗和远方.
这是一款基于Python语言和PyQt图形化框架编写的桌面应用,用来提醒正在电脑前工作的人们注意休息,以保障身体健康。

## Features
- 防颈椎病
- 防腰间盘突出
- 防痔疮
- 防心脏病
- 自定义壁纸
- 自定义时间
- 本地音乐播放
- 全屏显示,窗口置顶
- 界面简约(编不下去了)
- 你值得拥有

![截图](https://github.com/1zlab/HealthyWork/blob/master/Screenshot.png)
![截图](https://github.com/1zlab/HealthyWork/blob/master/Screenshot_2.png)
## Dependence
- python3
- PyQt5


## Install
```sh
pip install healthywork
```

## How to work
```sh
healthywork
```
## Custom

初次运行会在用户目录下的.config文件夹中创建healthywork.json文件,存储程序基本的配置,你可以自行修改一下的所有选项:


```pytho
DEFALUT_CONFIG = {
'label_stylesheet': "color: rgb(255, 0, 127);font: 30pt \"WenQuanYi Micro Hei Mono\";",
'button_stylesheet': "background-color: rgba(182, 176, 171, 90);color: rgb(255, 0, 127);font: 30pt \"WenQuanYi Micro Hei Mono\";",
'message': "喝杯水休息一下吧",
'count': " ",
'time_work': "1800000",
'time_rest': "300000",
'wallpapers_dir': "./wallpapers",
'music_dir': "./music",
'with_music': "1"
}
```

- label_stylesheet: 界面上标签的样式
- button_stylesheet:界面上按钮的样式
- message:提醒的文字
- count:给倒计时标签占位用的,方便计算label的位置
- time_work: 工作时间间隔,单位毫秒,默认半小时
- time_rest: 休息时间间隔,单位毫秒,默认五分钟
- wallpapers_dir: 存放壁纸的目录,默认为当前的wallpapers目录
- music_dir: 存放音频的目录,默认为当前的music目录
- with_music: 休息时是否播放音乐,1为播放,0为不播放。默认播放。



Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for healthywork, version 1.6.0
Filename, size File type Python version Upload date Hashes
Filename, size healthywork-1.6.0-py3-none-any.whl (6.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page