Skip to content

kristijanhusak/vim-keepeye

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KeepEye

KeepEye is a vim plugin that invites you to take a break after a huge coding session. By default, it will notify you after 25min, with the message at the middle of your status line: SAVE YOUR EYES, TAKE A BREAK.

image

What's new ?

  • 05/25 - add integration with vim-airline
  • 05/24 - add bell sound feature 🔔
  • 05/23 - add system notification feature (thanks to @stsewd)

Installation

Plug 'soywod/vim-keepeye' " with vim-plug

Usage

:KeepEye      " to (re)start the timer
:KeepEyeClear " to clear the message and reset the status bar

Configuration

Here the default configuration:

let g:keepeye_autostart = v:true                       " launch at vim startup
let g:keepeye_callback = 'keepeye#Callback'            " customize the callback
let g:keepeye_message = 'SAVE YOUR EYES, TAKE A BREAK' " set the message to show
let g:keepeye_system_bell = v:false                    " enable the bell sound (1)
let g:keepeye_system_notification = v:false            " enable the system notification (2)
let g:keepeye_timer = 1500                             " set the work time, 25min by default
  1. mpv is required for this feature
  2. only Linux systems are supported for this feature

About

A Vim plugin to keep your eyes safe.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%