take a break

I’m a man living in Emacs and I’ve used to use type-break to remind me to take a typing break:

;; type-break is causing trouble in batch mode
(if (not noninteractive)
(progn
;;;; Emacs reminds me to take typing breaks.
(require ‘type-break)
;;   How often I should take breaks, in seconds.
(setq type-break-interval (* 60 60))
;; I’m busy, 5 minutes break is enough
(setq type-break-good-rest-interval (* 60 5))
(type-break-mode t)
(type-break-mode-line-message-mode)
(setq type-break-query-function ‘y-or-n-p)))

However, recently I found I also spend lots of time on Firefox and QTerm. So I think I’ll need a type-break for X.

Searching in the ports tree and I found Xwrits.

Pretty easy to use. Just add

exec xwrits +mouse +beep +breakclock +clock +multiply=1 +noiconify +top &

to my .xinitrc is OK. Then it will remind me to take a break every 55 minuts, and if I ignored the reminder, it will remind me every 1 minute. Ofcause all of these time period is configurable. There are many other options, including a “+lock” to lock the keyboard and force a break. However on my box for some reason it won’t release the keyboard after the rest and I have to wait for xscreensaver to get me back. Anyway, this is a good software and become one of my “must have”.

Tags: , , ,

Post a Comment

You could use <code type="name"> to get your code colorized

Your email is never published nor shared. Required fields are marked *

Close
E-mail It