Commit 0607049b authored by Dylan McCall's avatar Dylan McCall

Adding license text!

parent f3bbd2e0
This diff is collapsed.
Brain Break
...Or Yet Another RSI Prevention Tool. This time prettier and happier.
Copyright(c) 2011, Dylan McCall and Brain Break contributors.
-----
Brain Break is designed to satisfy those who are not suffering from RSI,
but are concerned about the mental and physical issues associated with
heavy computer use. As a result, it is not particular about whether you
are using a keyboard or a mouse or simply looking at the screen; the
goal here is to encourage you to space computer use around other things.
Brain Break should stay out of the way and be as non-destructive as
possible, accommodating users regardless of their current tasks without
requiring that they change its aggressiveness themselves. It should avoid
threatening people with things such as permanent statistics, but provide
incentives to be healthy which fit the moment at hand.
/*
* This file is part of Brain Break.
*
* Brain Break is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Brain Break is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Brain Break. If not, see <http://www.gnu.org/licenses/>.
*/
public class BreakOverlay : Gtk.Window {
public BreakOverlay() {
Object(type: Gtk.WindowType.POPUP);
......
/*
* This file is part of Brain Break.
*
* Brain Break is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Brain Break is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Brain Break. If not, see <http://www.gnu.org/licenses/>.
*/
namespace Magic {
[Import] public static extern void begin();
[Import] public static extern uint32 get_idle_time();
......
/*
* This file is part of Brain Break.
*
* Brain Break is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Brain Break is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Brain Break. If not, see <http://www.gnu.org/licenses/>.
*/
public class PauseScheduler : Scheduler {
public signal void active_update(int time_remaining);
......
/*
* This file is part of Brain Break.
*
* Brain Break is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Brain Break is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Brain Break. If not, see <http://www.gnu.org/licenses/>.
*/
using Notify;
class TimerString : Object {
......
/*
* This file is part of Brain Break.
*
* Brain Break is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Brain Break is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Brain Break. If not, see <http://www.gnu.org/licenses/>.
*/
public class RestScheduler : Scheduler {
/* TODO: test if we should manually add idle time every second,
*(which implicitly pauses when computer is in use),
......
/*
* This file is part of Brain Break.
*
* Brain Break is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Brain Break is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Brain Break. If not, see <http://www.gnu.org/licenses/>.
*/
/* TODO: notification when user is away for rest duration */
/* TODO: replace pause break if appropriate */
/*
* This file is part of Brain Break.
*
* Brain Break is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Brain Break is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Brain Break. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* Interface for a type of break. Each break type has a unique feedback
* mechanism triggered by calling the begin method.
......
/*
* This file is part of Brain Break.
*
* Brain Break is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Brain Break is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Brain Break. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdlib.h>
#include <xcb/xcb.h>
#include <xcb/screensaver.h>
......
/*
Brain Break
...Or Yet Another RSI Prevention Tool. This time prettier and happier.
Copyright(c) 2011, Dylan McCall and Brain Break contributors.
<dylanmccall@gmail.com>
-----
This tool is designed to satisfy those who are not suffering from RSI,
but are concerned about the mental and physical issues associated with
heavy computer use. As a result, it is not particular about whether the
user is using a keyboard or a mouse or simply looking at the screen; the
goal here is to encourage people to space computer use around other
things.
Brain Break should stay out of the way and be as non-destructive as
possible, accommodating users regardless of their current tasks without
requiring that they change its aggressiveness themselves,(for example
between Quiet, Postponed and Active mode in Workrave). It should avoid
threatening users with things such as permanent statistics, but provide
them with incentives to be healthy that fit into the moment at hand.
The expected non-destructiveness is easily attainable with libnotify,
especially combined with the excellently transient notifications in
Ubuntu 9.04 and above.
*/
/* nice resource... <http://www.rsiguard.com/> */
* This file is part of Brain Break.
*
* Brain Break is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Brain Break is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Brain Break. If not, see <http://www.gnu.org/licenses/>.
*/
using GLib;
using Gdk;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment