Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key shortcuts to control recording #7

Open
lcreid opened this issue Jul 24, 2013 · 5 comments
Open

Key shortcuts to control recording #7

lcreid opened this issue Jul 24, 2013 · 5 comments
Assignees

Comments

@lcreid
Copy link
Owner

lcreid commented Jul 24, 2013

An "impossible" key sequence for stopping recording, and another for pausing it (when I implement pause).

@lcreid
Copy link
Owner Author

lcreid commented Aug 3, 2013

Struggling with this one. Gtk calls the keys "accelerators". Not clear whether simply putting accelerators on the tray icon menu would do it, but I should try.

@ghost ghost assigned lcreid Aug 17, 2013
@lcreid
Copy link
Owner Author

lcreid commented Aug 19, 2013

Well, stopping at least could be as simple as installing a Cinnamon key sequence that sends Ctrl-C to screencaster, by finding the screencaster process and interrupting it (killall?).

@lcreid
Copy link
Owner Author

lcreid commented Oct 13, 2013

Gtk passes key presses to the focused widget. You could probably hook into the X11 event loop way down. gtkRecordMyDesktop doesn't do anything funky like that. I didn't read every line of code, but enough, I think. I suspect it's in the actual C code for RecordMyDesktop (command line version). I think the more canonical approach is the one from my previous comment: Have screencaster check take arguments that allow it to control itself, then if one of those arguments is present, look for the existing instance of screencaster and send it a signal.

The programming is straightforward. Looks like to install you use gconftool-2 in the postinst script of the .deb. However, you have to do it for each user, apparently. That's not cool. How about if I do it in the program, so it's only installed when I'm running? Alternatively, there must be a way to set key bindings for all users.

@lcreid
Copy link
Owner Author

lcreid commented Nov 20, 2013

Did it by running gconftool-2 at program start. Wouldn't work for other platforms, but then the whole program is Linux dependent.

@lcreid lcreid closed this as completed Nov 20, 2013
@lcreid lcreid reopened this Dec 26, 2013
@lcreid
Copy link
Owner Author

lcreid commented Dec 26, 2013

This was never working. I added a DBus pause_record message, and this works now. I had to use a Metacity built-in command. I can't seem to just invent one myself. Now I just need to do it using the gtk2 calls instead of gconftool-2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant