bash – xdotool和键盘布局

问题

我想做:

xdotool type 'date;'

而不是预期的

date;

我明白了:

dateq

我有一个希腊键盘,但是当我发出命令时,语言设置为美国.注意:当使用希腊语时,键盘的键’q’用于分号’;’ (这是认的behavior/mapping)

我该怎么做才能得到一个xdotool类型的分号?

一些信息

我在XUbuntu的Xfce 4.8上

$xfce4-terminal -V
xfce4-terminal 0.4.8 (Xfce 4.8)

$setxkbmap -print -verbose 10
Setting verbose level to 10
locale is C
Applied rules from evdev:
rules:      evdev
model:      pc105
layout:     us,gr
variant:,options:    grp:caps_toggle
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+us+gr:2+inet(evdev)+capslock(grouplock)
geometry:   pc(pc105)
xkb_keymap {
    xkb_keycodes  { include "evdev+aliases(qwerty)" };
    xkb_types     { include "complete"  };
    xkb_compat    { include "complete"  };
    xkb_symbols   { include "pc+us+gr:2+inet(evdev)+capslock(grouplock)"    };
    xkb_geometry  { include "pc(pc105)" };
};

$sudo lsb_release -a
No LSB modules are available.
distributor ID: Ubuntu
Description:    Ubuntu 12.04.2 LTS
Release:    12.04
Codename:   precise
这是一个已知的错误.您可以尝试的一件事是升级到最新版本的xdotool.如果这不起作用,那么请查看此页面,尤其是答案#29:

http://code.google.com/p/semicomplete/issues/detail?id=13

该问题于2014年4月7日(现在已超过3年前)于this pull request解决.如果有人今天仍然遇到这个问题,我认为你最好的选择是升级xdotool.

相关文章

用的openwrt路由器,家里宽带申请了动态公网ip,为了方便把2...
#!/bin/bashcommand1&command2&wait从Shell脚本并行...
1.先查出MAMP下面集成的PHP版本cd/Applications/MAMP/bin/ph...
1、先输入locale-a,查看一下现在已安装的语言2、若不存在如...
BashPerlTclsyntaxdiff1.进制数表示Languagebinaryoctalhexa...
正常安装了k8s后,使用kubect工具后接的命令不能直接tab补全...