Bug 546 - Workrave should allow some events through (such as muting)
Status:
NEW
Component:
Core :: UNIX
Version:
1.8.2
Hardware:
PC Linux
Importance:
P4 enhancement
Target Milestone:
---
Assignee:
Rob Caelers
URL:
https://launchpad.net/distros/ubuntu/+source/workrave/+bug/38910
Depends on:
Blocks:
Reported:
Aug 4 2006 17:37:05 UTC
by:
Daniel Holbach
Modified:
Oct 17 2009 05:02:59 UTC
CC List:
Bem Jones-Bey
Francois Marier
Keepiru
WhoWhenWhatRemovedAdded
Rob CaelersAug 27 2007 14:03:56 UTCpriorityP2P4
Francois MarierOct 30 2007 23:48:49 UTCccFrancois Marier
Bem Jones-BeyDec 25 2008 00:13:14 UTCccBem Jones-Bey
KeepiruOct 17 2009 05:02:59 UTCccKeepiru
Description
Daniel Holbach  Aug 4 2006 17:37:05 UTC
Forwarded from: https://launchpad.net/distros/ubuntu/+source/workrave/+bug/38910

When workrave makes me take a break, it blocks *all* input. This means that while on a break, it is impossible for me to e.g. mute the volume if my phone rings or if I have an offensive song on when my boss walks in.

Certain critical events should be allowed through workrave's block. This should probably be user-configurable, but it seems like a decent start would be to allow the following through:

Volume control (including mute)
Power off / Sleep / Hibernate
Fast-forward / Rewind (useful if you still want to control your music while on break from coding)
Comment 1
Ken Collins  Aug 28 2006 19:05:51 UTC
A nice way to implement this would be to allow certain key combinations to pass through to the window manager. I have keys mapped in Gnome to pause my media player, so if I could get those keys to work, it would be more than adequate. I find that I end up postponing a lot of breaks just to pause my media player and restart the break.
Comment 2
Francois Marier  Mar 2 2008 09:00:37 UTC
There is a similar bug report in the GNOME bugzilla for gnome-screensaver:

  http://bugzilla.gnome.org/show_bug.cgi?id=422390
Comment 3
Bem Jones-Bey  Dec 25 2008 00:13:14 UTC
For me, the most important part here is suspend/hibernate events. I'm running Ubuntu 8.10, and I cannot put the computer to sleep during a workbreak. I once was about to leave the office, so I attempted to put the computer to sleep, but workrave activated right as I was doing that. Sleep failed, but the screensaver activated. Because of bug 763, I was unable to even quit workrave and had to just wait until the work break was over for me to be able to suspend the machine.
Comment 4
Keepiru  Oct 17 2009 05:02:59 UTC
Related: I'd like to be able to lock my workstation when the workrave screen is up.  I suggest adding a tab in the preferences with a table to fill in, with some good defaults:

|  Name     |  Command                         |
------------------------------------------------
| Lock      | gnome-screensaver-command --lock |
| Mute      | amixer sset Master toggle        |
| Suspend   | echo -n mem > /sys/power/state   |
| Pause     | audacious --pause                |

And then we'd get those buttons on the take-a-break dialog.  That's probably a lot easier than trying to filter keystrokes.