flake/users/guanranwang/home-manager/profiles/graphical-stuff/nixos/scripts/bin/minecraft-inputfix
2023-11-28 12:12:13 +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