flake/users/guanranwang/home-manager/dotfiles/bin/minecraft-inputfix
2023-11-15 20:55:27 +08:00

7 lines
202 B
Bash
Executable file

#!/bin/sh
ydotool key 20:1 20:0 # press t
echo $(zenity --width 500 --entry) | wl-copy
ydotool key 29:1 47:1 # press ctrl + v
sleep 0.1
ydotool key 29:0 47:0 28:1 28:0 # release ctrl + v, press return