Archlinux gizmod

Archlinux gizmod

我最近在我的笔记本电脑上安装了 Archlinux,它已经完成了我需要的一切,除了一件事:按键绑定。

我希望能够使用笔记本电脑的音量按钮(包括在全屏游戏中),并且我在论坛上读到 Gizmod (https://aur.archlinux.org/packages.php?ID=10089)会做的。但问题是,无论我如何尝试(yaourt、tar.bz2 或其他档案),我都会收到错误:

Scanning dependencies of target H
[  1%] Building CXX object libH/CMakeFiles/H.dir/Average.o
In file included from /home/xavierm02/builds/gizmod-3.4/libH/Average.cpp:31:0:
/home/xavierm02/builds/gizmod-3.4/libH/Average.hpp:74:5: error: ‘size_t’ does not name a type
/home/xavierm02/builds/gizmod-3.4/libH/Average.hpp:76:5: error: ‘size_t’ does not name a type
/home/xavierm02/builds/gizmod-3.4/libH/Average.cpp: In constructor ‘H::Average::Average(int)’:
/home/xavierm02/builds/gizmod-3.4/libH/Average.cpp:53:2: error: ‘mHeadIdx’ was not declared in this scope
/home/xavierm02/builds/gizmod-3.4/libH/Average.cpp:55:2: error: ‘mFillState’ was not declared in this scope
/home/xavierm02/builds/gizmod-3.4/libH/Average.cpp: In member function ‘void H::Average::push(double)’:
/home/xavierm02/builds/gizmod-3.4/libH/Average.cpp:73:6: error: ‘mFillState’ was not declared in this scope
/home/xavierm02/builds/gizmod-3.4/libH/Average.cpp:74:27: error: ‘mHeadIdx’ was not declared in this scope
/home/xavierm02/builds/gizmod-3.4/libH/Average.cpp:79:11: error: ‘mHeadIdx’ was not declared in this scope
/home/xavierm02/builds/gizmod-3.4/libH/Average.cpp:81:2: error: ‘mHeadIdx’ was not declared in this scope
/home/xavierm02/builds/gizmod-3.4/libH/Average.cpp: In member function ‘double H::Average::average()’:
/home/xavierm02/builds/gizmod-3.4/libH/Average.cpp:89:8: error: ‘mFillState’ was not declared in this scope
/home/xavierm02/builds/gizmod-3.4/libH/Average.cpp:93:1: error: control reaches end of non-void function [-Werror=return-type]
cc1plus: all warnings being treated as errors
make[2]: *** [libH/CMakeFiles/H.dir/Average.o] Error 1
make[1]: *** [libH/CMakeFiles/H.dir/all] Error 2
make: *** [all] Error 2

所以我认为最后一个版本可能有问题并下载了前一个版本......而且我得到了更多错误......

这是我的问题:

  • 是否有其他方法可以在全屏时获取按键?

  • 这是 Archlinux 独有的问题吗?因为他们有 .deb 包...但这些基本上都是存档的,所以他们可能有同样的错误,不是吗?

先感谢您。

答案1

如果您有桌面/GUI 环境,您可能想尝试安装 autokey。除此之外,它还允许您将宏分配给按键,这些按键几乎可以执行您可以想象的任何操作 - 特别是如果您了解 python。

https://code.google.com/p/autokey/

有两个版本。一个用于 gtk (gnome),另一个用于 qt (kde)。

如果问题是按键未被识别,那么我不知道如何解决这个问题,但 showkey 和 xev 命令将使您开始朝正确的方向前进。曾经有一个热键程序或模块,但已被弃用。

相关内容