Improve delay in linux config
This commit is contained in:
parent
0ba18eba51
commit
952fd89c42
|
@ -196,11 +196,11 @@ void event_callback(XPointer p, XRecordInterceptData *hook)
|
||||||
}
|
}
|
||||||
|
|
||||||
void send_string(const char * string) {
|
void send_string(const char * string) {
|
||||||
xdo_enter_text_window(xdo_context, CURRENTWINDOW, string, 0);
|
xdo_enter_text_window(xdo_context, CURRENTWINDOW, string, 8000);
|
||||||
}
|
}
|
||||||
|
|
||||||
void delete_string(int32_t count) {
|
void delete_string(int32_t count) {
|
||||||
for (int i = 0; i<count; i++) {
|
for (int i = 0; i<count; i++) {
|
||||||
xdo_send_keysequence_window(xdo_context, CURRENTWINDOW, "BackSpace", 0);
|
xdo_send_keysequence_window(xdo_context, CURRENTWINDOW, "BackSpace", 8000);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -24,7 +24,7 @@ fn main() {
|
||||||
|
|
||||||
let matches = vec![Match{trigger:"e'".to_owned(), result: "è".to_owned()},
|
let matches = vec![Match{trigger:"e'".to_owned(), result: "è".to_owned()},
|
||||||
Match{trigger:":lol".to_owned(), result: "😂".to_owned()},
|
Match{trigger:":lol".to_owned(), result: "😂".to_owned()},
|
||||||
Match{trigger:":lll".to_owned(), result: "yo".to_owned()},
|
Match{trigger:":lll".to_owned(), result: "hello".to_owned()},
|
||||||
];
|
];
|
||||||
|
|
||||||
let mut matcher = ScrollingMatcher::new(&matches, &engine);
|
let mut matcher = ScrollingMatcher::new(&matches, &engine);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user