在Linux Minecraft中输入中文

1、安装zenity、xdotool

2、创建下面的脚本,并赋执行权限

#!/bin/bash -e

chars=$(zenity --title 中文输入 --text 中文输入 --width 500 --entry 2>/dev/null)
sleep 0.1
xdotool key --delay 150 Escape t
sleep 0.2
xdotool type --delay 150 "$chars"
xdotool key Return

3、创建快捷键,关联到上面创建的脚本

4、如果能输入英文,而不能输入中文,检查locale,如果LANG值不是en_US.utf8,修改用户语言到English(United States),并重启会话

脚本来自依云’s Blog,只有第四条才是我的。

参考:
Linux 下在 Minecraft 里输入中文

在Linux Minecraft中输入中文——进阶:在告示牌输入中文

This entry was posted in Uncategorised, Uncategorized and tagged . Bookmark the permalink.

2 Responses to 在Linux Minecraft中输入中文

  1. Unee Wang says:

    一直打算玩的,但发现自己真不是玩游戏的料,打不过所有电脑

Leave a Reply to Unee Wang Cancel reply

Your email address will not be published. Required fields are marked *