Przeglądaj źródła

Introduce delay to xdotool

A lot of times rofimoji couldn't type the emoji, but copy-pasting did
work. After some manual trial-and-error (😑) it seems that the problem
was the immediacy of xdotool. If we set the delay to imperceptible
100ms, it works - even in Firefox! 🦄
tags/2.0.0
Fabian Winter 1 rok temu
rodzic
commit
45fa065b3c
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2
    0
      rofimoji.py

+ 2
- 0
rofimoji.py Wyświetl plik

@@ -1,5 +1,6 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import time

from subprocess import Popen, PIPE

@@ -1719,6 +1720,7 @@ else:
emoji = emoji + select_skin_tone(emoji)

if rofi.returncode == 0:
time.sleep(0.1)
Popen(
args=[
'xdotool',

Ładowanie…
Anuluj
Zapisz