2014-01-28 48 views
2

我想下面的命令:无法发送Alt键与xdotool

xdotool key --clearmodifiers --delay 500 alt+f 

,其结果是出现以下错误:

X Error of failed request: BadValue (integer parameter out of range for operation) 
Major opcode of failed request: 132 (XTEST) 
Minor opcode of failed request: 2 (X_XTestFakeInput) 
Value in failed request: 0x0 
Serial number of failed request: 18 
Current serial number in output stream: 19 

我想没有--clearmodifiers--delay,但仍然是相同的错误。

我的系统是Arch Linux和i3窗口管理器。

回答

2

我也运行与我的主要操作系统(arch + i3)相同的设置。我尝试下载xdotool并运行相同的命令。无论有没有这两个选项,它都可以工作。

我想尝试,如果它不能正常工作(除非你已经)以下:

1> Reinstall *xdotool*, update, and reboot. 
2> Although it worked, my mod key is set to the *win* key so I'm not sure if that somehow causes issues with 
a programmable keypress (you wouldn't think so). Try temporarily changing the modifier to the *win* key in your config and reinstall xdotool. 
3> I would also try reinstalling its dependencies (namely libxtst and libxinerama) 
4> If all of the above fails, I'd try the *xdotool-gui* package from the AUR instead and see if that fixes anything. 

一个问题:只是为了验证,是错误总是执着,或者是只在那一个案件的alt + f

Regards :)