Proteggi i tuoi occhi dall'affaticamento tramite un reminder visivo e configurabile https://slgobinath.github.io/SafeEyes/
Go to file
Tero Paloheimo 7960e3a0d6
Update README.md virtual environment section (#559)
Refer to the built-in venv module instead of the third party
virtualenv module.
Also do some minor text changes.

Fixes issue #525.
2024-06-18 20:17:54 -04:00
.github Update Ubuntu PPA and remove funding info 2024-06-09 02:12:30 -04:00
debian Bump version to 2.1.8 2024-06-08 18:41:47 -04:00
safeeyes Fix crash in smartpause (#582) 2024-06-18 20:15:47 -04:00
.gitignore Fix icons and desktop file installation (#408) 2020-12-31 08:34:27 -05:00
LICENSE Use HTTPS where users potentially open the URL in a browser (#475) 2022-04-01 09:23:36 -04:00
MANIFEST.in Prepare alpha version 1.2.0a7 release 2017-04-15 08:54:00 -04:00
README.md Update README.md virtual environment section (#559) 2024-06-18 20:17:54 -04:00
build.sh Add markdown support on pypi 2018-03-30 14:23:56 -04:00
setup.py Bump version to 2.1.8 2024-06-08 18:41:47 -04:00
update-po.sh Allow disabling Safe Eyes option to tray icon. Add #264 2019-02-23 19:14:26 -05:00
validate_po.py Make GitHub Actions check translation files (#534) 2023-08-03 11:16:06 -04:00

README.md

Safe Eyes

Release PyPI version Debian AUR Flathub Translation status Awesome Humane Tech

Protect your eyes from eye strain using this simple and beautiful, yet extensible break reminder.

Visit the official site: https://slgobinath.github.io/SafeEyes/ for more details.

Safe Eyes command-line arguments

usage: safeeyes [-h] [-a | -d | -e | -q | -s | -t] [--debug] [--version]

Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to
take breaks while you're working long hours at the computer.

optional arguments:
  -h, --help        show this help message and exit
  -a, --about       show the about dialog
  -d, --disable     disable the currently running safeeyes instance
  -e, --enable      enable the currently running safeeyes instance
  -q, --quit        quit the running safeeyes instance and exit
  -s, --settings    show the settings dialog
  -t, --take-break  take a break now
  --debug           start safeeyes in debug mode
  --status          print the status of running safeeyes instance and exit
  --version         show program's version number and exit

Installation guide

Safe Eyes is available in Ubuntu PPA, Arch AUR, Gentoo and Python PyPI. You can choose any installation source and install on any Linux system with Python 3.

Ubuntu, Linux Mint and other Ubuntu Derivatives

sudo add-apt-repository ppa:safeeyes-team/safeeyes
sudo apt update
sudo apt install safeeyes

Arch

yay -S safeeyes

Gentoo

sudo emerge -av x11-misc/safeeyes

Debian

sudo apt-get install safeeyes

Fedora

sudo dnf install libappindicator-gtk3 python3-psutil cairo-devel python3-devel gobject-introspection-devel cairo-gobject-devel
sudo pip3 install safeeyes
sudo gtk-update-icon-cache /usr/share/icons/hicolor

OpenSUSE Tumbleweed

sudo zypper refresh
sudo zypper install safeeyes

Alpine Linux

sudo apk add safeeyes

Flatpak

flatpak install flathub io.github.slgobinath.SafeEyes

Other Linux & Run from source

Ensure to meet the following dependencies:

  • gir1.2-appindicator3-0.1 or gir1.2-ayatanaappindicator3-0.1
  • gir1.2-notify-0.7
  • libappindicator-gtk3
  • python3-psutil
  • xprintidle (optional)
  • wlrctl (wayland optional)

To install Safe Eyes:

sudo pip3 install safeeyes

After installation, restart your system to update the icons,

To run from source:

git clone https://github.com/slgobinath/SafeEyes.git
cd SafeEyes
python3 -m safeeyes

Safe Eyes installers install the required icons to /usr/share/icons/hicolor. When you run Safe Eyes from source without, some icons may not appear.

Install in a virtual environment

Some Linux systems like CentOS do not have matching dependencies available in their repository. In such systems, you can install and use Safe Eyes in a Python virtual environment.

  1. Install the necessary dependencies for CentOS 7

    sudo yum install python3-devel dbus dbus-devel cairo cairo-devel cairomm-devel libjpeg-turbo-devel pango pango-devel pangomm pangomm-devel gobject-introspection-devel cairo-gobject-devel
    
  2. Create a virtual environment in your home folder

    mkdir ~/safeeyes
    cd ~/safeeyes/
    
    python3 -m venv venv
    source venv/bin/activate
    pip3 install dbus-python safeeyes
    
  3. Start Safe Eyes from the terminal

    cd ~/safeeyes & source venv/bin/activate
    python3 -m safeeyes
    

For more details, please check the issue: #329

Features

  • Remind you to take breaks with exercises to reduce RSI
  • Disable keyboard during breaks
  • Notification before and after breaks
  • Smart pause if system is idle
  • Multi-screen support
  • Customizable user interface
  • RPC API to control externally
  • Command-line arguments to control the running instance
  • Customizable using plug-ins

Third-party Plugins

Thirdparty plugins are available at another GitHub repository: safeeyes-plugins. More details about how to write your own plugin and how to install third-party plugin are available there.

How to Release?

  1. Checkout the latest commits from the master branch
  2. Run python3 -m safeeyes to make sure nothing is broken
  3. Update the Safe Eyes version in the following places (Open the project in VSCode and search for the current version):
  4. Update the changelog (for Ubuntu release)
  5. Commit the changes to master
  6. Create a pull-request from master to release
  7. Merge the PR to release with merge commit (Important to merge with merge commit)

License

GNU General Public License v3