Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cyrinux/waybar-eyes
waybar toy to help you blinking eyes and move, take a break 👀
https://github.com/cyrinux/waybar-eyes
eyes face-detection gocv hyprland linux linux-desktop sway waybar wayland
Last synced: 1 day ago
JSON representation
waybar toy to help you blinking eyes and move, take a break 👀
- Host: GitHub
- URL: https://github.com/cyrinux/waybar-eyes
- Owner: cyrinux
- License: isc
- Created: 2022-08-15T22:20:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-13T07:16:16.000Z (over 1 year ago)
- Last Synced: 2024-06-21T13:02:20.840Z (5 months ago)
- Topics: eyes, face-detection, gocv, hyprland, linux, linux-desktop, sway, waybar, wayland
- Language: Go
- Homepage:
- Size: 1.53 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# waybar-eyes
[![Go](https://github.com/cyrinux/waybar-eyes/actions/workflows/go.yml/badge.svg)](https://github.com/cyrinux/waybar-eyes/actions/workflows/go.yml)
This is a waybar applet to help you keeping your eyes.
This will try to detect your face and indicate you in waybar if you are stuck to your screen since too long time.
This add a new eye in the bar every 15 minutes if a face is detected.
This eyes number in the bar will decrease if you take a pause.## Requirements
- golang >= 1.18
- opencv4
- qt5-base## Build
```shell
make
```## Config and run
Default value should be nice one. But if you want to configure it, you can run `waybar-eyes -h` to see the params,
and maybe use a systemd unit override.## Waybar config
```json
...
"modules-right": [
"custom/eyes",
],
...
"custom/eyes": {
"exec": "cat ~/.cache/waybar-eyes.json",
"interval": 5,
"return-type": "json",
"on-click": "pkill -f -SIGUSR1 waybar-eyes",
},
...
```## Debug
```shell
DEBUG=1 waybar-eyes
```## Resources
You can test differents detection models from here
- https://github.com/opencv/opencv/tree/master/data/haarcascades
- https://github.com/kipr/opencv/tree/master/data/haarcascades