Skip to content
This repository has been archived by the owner on Aug 3, 2019. It is now read-only.

How to add shortcuts to start and stop recording. #41

Open
a-eid opened this issue Jul 26, 2017 · 12 comments
Open

How to add shortcuts to start and stop recording. #41

a-eid opened this issue Jul 26, 2017 · 12 comments

Comments

@a-eid
Copy link

a-eid commented Jul 26, 2017

I want to add shortcuts to start and stop recording instead of pressing the record and stop record buttons

how can I do that ?

@mhsabbagh
Copy link
Owner

mhsabbagh commented Jul 26, 2017

This functionality doesn't exist currently in the program. However, we are working on it for version 3.0

@gort818
Copy link
Contributor

gort818 commented Aug 6, 2017

@a-eid do you mean keyboard shortcuts? Custom ones or predefined ones? I think I can work on that.

@a-eid
Copy link
Author

a-eid commented Aug 7, 2017

keyboard shortcut to common operations like "start" "stop" "pause" recording ! it would be nice if it was customization .

@mhsabbagh
Copy link
Owner

mhsabbagh commented Aug 7, 2017

I tried to work on it for 3.0, however, I wasn't lucky enough to make it work. The problem is that we are hiding the window after the user clicks on the record button, which makes GTK AccelGroups can't be applied on an opened window (since we don't have one, it's hidden).

If any one has suggestions about applying it technically with Python and GTK+, it would be great.

@gort818
Copy link
Contributor

gort818 commented Aug 7, 2017

I will be looking in to this @mhsabbagh I see what you are saying once you start recording the window is hidden.

@gort818
Copy link
Contributor

gort818 commented Aug 7, 2017

@a-eid @mhsabbagh I found a python module that will alow use to have global hotkeys even if the window is not in focus, only problem it requires sudo to run. I will do some tests in the next couple of days.

https://github.com/boppreh/keyboard

@mhsabbagh
Copy link
Owner

@gort818 Yea the problem is in root permissions. We can't ask them for a GUI program to record videos. We'll have to find another method of doing it.

@sunjay
Copy link

sunjay commented Sep 4, 2017

recordMyDesktop has global keyboard shortcuts without sudo. Maybe there's a way to look into their source code and figure out what they did? This would be an awesome feature to have. 😄

@phw
Copy link

phw commented Sep 4, 2017

Maybe have a look at libkeybinder, https://github.com/kupferlauncher/keybinder/blob/master/README.rst .

Not sure how easy it is to call it from.python, but since it uses gobject introspection it should be possible. Used it for Peek, which is written in Vala.

@mhsabbagh
Copy link
Owner

mhsabbagh commented Sep 5, 2017

The problem is that it doesn't work with Wayland.

And it's worse, GNOME will remove the system tray in 3.26, meaning that the user won't be able to stop recording or even see if it has started.

@FossPrime
Copy link

FossPrime commented Apr 18, 2019

For those who are lost with Fedora 29: you have to alt-tab to back to the window and fat finger the stop button manually. The middle click, and right click methods don't work and there are no shortcuts.

I would suggest doing what insync does... allow running the program again with a parameter that controls it... like green-recorder stop and green-recorder start. That way we can manually add the shortcuts to our keyboard using gnome settings... which unlike the Mac global shortcuts are very reliable.

Also note worthy in Fedora 29: Select area feature is extremely inaccurate. Select window feature doesn't work. The stop and play and record buttons are not enabled and disabled as expected.

@mhsabbagh
Copy link
Owner

@rayfoss Good idea about adding command line parameters, in that way we won't have to deal with any Xorg/Wayland specific solutions. I'll work on it.

For your other problems please open new issues.

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

No branches or pull requests

6 participants