Feature request: define recording hotkey
Bug #1472912 reported by
Or Schiro
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Audio Recorder |
New
|
Wishlist
|
Unassigned |
Bug Description
Dear all,
You're doing an amazing work with Audio Recorder, thanks a lot!
May I suggest one feature that I really like from the Simple Screencast Recorder?
Please see the attached screenshot how they implemented a feature to use hotkeys for recordings.
May something similar be possible for Audio Recorder?
Thankfully,
Robert
Changed in audio-recorder: | |
importance: | Undecided → Wishlist |
To post a comment you must log in.
Just a comment.
Libkeybinder library could be used to implement a global hotkey for audio-recorder. /github. com/kupferlaunc her/keybinder
Ref: https:/
There is a a simple example that uses keybinder.
Compile the code (test1.c) with:
$ gcc test1.c $(pkg-config --libs --cflags gtk+-3.0) $(pkg-config --libs --cflags keybinder-3.0) -o test1
Run it:
$ ./test1
/* Code of test1.c /github. com/kupferlaunc her/keybinder/ blob/master/ examples/ main.c
* Created in 2010 by Ulrik Sverdrup <email address hidden>
* This work is placed in the public domain.
https:/
*/
#include <stdio.h>
#include <gtk/gtk.h>
#include <keybinder.h>
#define EXAMPLE_KEY "<Ctrl>A"
void handler (const char *keystring, void *user_data) { unbind( keystring, handler);
printf("Handle %s (%p)!\n", keystring, user_data);
keybinder_
gtk_main_quit();
}
int main (int argc, char *argv[]) {
gtk_init(&argc, &argv);
keybinder_init(); bind(EXAMPLE_ KEY, handler, NULL);
keybinder_
printf("Press " EXAMPLE_KEY " to activate keybinding and quit\n");
gtk_main();
return 0;
}