水煮鱼用什么鱼做好吃| 黄芪的功效与作用是什么| 6月1日什么星座| 套餐是什么意思| 皮肤黑穿什么颜色的衣服好看| 鄂尔多斯是什么意思| 什么是事业| 痛风可以喝什么饮料| 8月3日是什么日子| 欧舒丹属于什么档次| 为什么会长腋毛| 什么是oa| 1月2日是什么星座| 大麦茶是什么做的| 蛋白质是什么| 感冒嗓子痒咳嗽吃什么药| 莫须有是什么意思| 淋巴细胞偏高是什么意思| 哮喘什么症状| 来大姨妈不能吃什么| 什么蔬菜吸脂减肥| 多囊不能吃什么食物| 胃炎是什么原因引起的| 无穷大是什么意思| s是什么意思| 晕车吃什么能缓解| 自求多福什么意思| 耳朵流血是什么原因| 蜻蜓是什么生肖| 吃什么东西可以降压| nak是什么牌子| 五马长枪是什么意思| 睡觉打呼噜是什么原因| 寻麻疹是什么症状| 乙肝表面抗原阴性是什么意思| 细菌性阴道炎用什么药效果最好| 灰喜鹊吃什么| 2月10日什么星座| 巧妙是什么意思| 老鼠和什么属相相冲| 乳房痒是什么原因| 誉之曰的之是什么意思| 孔子姓什么| 治疗白斑最有效的方法是什么| 什么时候闰十二月| 为什么会得湿疹| 免疫什么意思| 父亲节是什么时候| 羊和什么生肖最配| 女人更年期什么症状| 阴茎不够硬吃什么药| 坚信的意思是什么| 戒定真香是什么意思| 肝郁气滞是什么意思| 老鼠爱吃什么食物| 葡萄补什么| 格格是什么意思| 有何指教是什么意思| 红细胞分布宽度偏低是什么意思| 舌头烧灼感是什么原因| 身在其位必谋其职是什么意思| 热锅上的蚂蚁是什么意思| 黑米是什么米| 疣是什么病毒| 养血清脑颗粒治什么病| 胃炎应该吃什么药| 暂住证办理需要什么材料| 三无是什么意思| 吃什么食物可以去湿气| 瑞士用什么货币| 荧光色是什么颜色| 夜尿多吃什么药| 梦见自己尿裤子了是什么意思| 梦见别人杀人是什么预兆| 女人五行缺水是什么命| 锡字五行属什么| 经常感觉饿是什么原因| 罗宾尼手表什么档次| 肠易激综合症吃什么药| 痛经吃什么止痛药| 创伤性关节炎有什么症状| 月经前尿频是什么原因| 吃什么容易导致流产| 月亮什么颜色| 梅尼埃病是什么病| 微商是什么| 性转是什么意思| 犯太岁是什么意思| 金钱草什么样| pro是什么氨基酸| 势均力敌是什么意思| 免疫力低吃什么药| 莘字五行属什么| 为什么老虎头上有王字| 1996年什么命| 柏拉图式恋爱是什么意思| 平安扣适合什么人戴| 生产批号是什么意思| 近亲为什么不能结婚| 脚抽筋吃什么钙片好| 饕餮长什么样| 胰腺炎吃什么消炎药| 地西泮又叫什么| 扁桃体发炎喉咙痛吃什么药| 小金人车标是什么车| 嗣读什么| 湿疹用什么药膏| 花开两朵各表一枝什么意思| 旦是什么意思| 怀孕了有什么症状| 羊奶有什么作用与功效| 灰猫是什么品种| 口腔溃疡缺少什么维生素| 黄宗洛黄海波什么关系| 奸诈是什么意思| 应激反应是什么意思| 伤口不结痂是什么原因| 贴膏药发热是什么原因| 头发长得快是什么原因| theme什么意思| squirrel是什么意思| 海马是什么类动物| 鲤鱼喜欢吃什么食物| 三教九流指的是什么| 洗劫一空是什么意思| 胃恶心吃什么药| 大麦茶有什么功效| 漫威是什么意思| 4.28什么星座| 结节性红斑是什么原因引起的| 画蛇添足的寓意是什么| 尿的酸碱度能说明什么| 81岁属什么| 艾灸痒痒的是什么原因| 本来无一物何处惹尘埃是什么意思| 器皿是什么意思| 三拜九叩是什么意思| 婚检男性检查什么| 礼部尚书是什么官| 十月份是什么季节| 右束支传导阻滞是什么意思| 铉是什么意思| 取次是什么意思| 总胆红素偏高什么意思| 王晶为什么不娶邱淑贞| 葛洲坝集团是什么级别| as是什么病| 85属什么| 碘伏什么颜色| 薄荷泡水喝有什么功效| 刀客是什么意思| 甘油三酯高吃什么药| 什么水果补血效果最好| 迷你巴拉巴拉和巴拉巴拉什么关系| 陀飞轮是什么意思| 城市的夜晚霓虹灯璀璨是什么歌| 正常白带什么样| 晚上失眠是什么原因| 拉绿粑粑是什么原因| 神昏谵语是什么意思| rose是什么意思| 寒颤是什么意思| 浑身痒是什么原因| 体育生能报什么专业| 出现的反义词是什么| 天麻能治什么病| 6月26什么星座| 高血糖吃什么比较好| 胆囊壁增厚是什么意思| 什么原因引起甲亢| 性向是什么意思| 胃不舒服吃什么好| 胎盘血池是什么意思| 11月18是什么星座| 思源名字的寓意是什么| 丁香茶有什么作用和功效| 淋巴细胞偏低什么意思| 篮子房是什么意思| 声音小是什么原因| 彩金和黄金有什么区别| 五月初五是什么星座| 吐槽是什么意思啊| 乳腺增生吃什么食物好| 用盐刷牙有什么好处和坏处| 过期的维生素e有什么用途| 肝fnh是什么病| acl是什么意思| 表面积是什么| 什么原因导致荨麻疹| 十二指肠溃疡是什么症状| qy是什么意思| 润六月是什么意思| Q什么意思| 红细胞偏低是什么原因| 清洁度三度什么意思| 谷氨酰基转移酶低是什么原因| 电信积分有什么用| 喝牛奶有什么好处| 洁面液是干什么用的| 珏字五行属什么| 千克又叫什么| 合胞病毒是什么病毒| 什么病才吃阿昔洛韦片| 乳胶是什么意思| 晨起口干口苦是什么原因| 驻马店古代叫什么| 嗔恨是什么意思| 孕妇建档是什么意思| 嘉字属于五行属什么| 脚趾头麻木是什么原因| ipl是什么意思| 夏季风寒感冒吃什么药| 猴子是什么颜色| 梅长苏是什么电视剧| 膝盖积液有什么症状| 功能是什么意思| 自欺欺人是什么意思| 5月7日是什么星座| 总是饿是什么原因| 吃什么才能长胖| fat是什么意思| 手足口病的症状是什么| 结甲是什么病| 腰椎疼痛是什么原因| 嘴边长痘痘是什么原因| 豆角不能和什么一起吃| 女生吃避孕药有什么副作用| 为什么不能抠肚脐眼| 早期教育是什么| 奋不顾身的顾是什么意思| 黄体酮有什么作用| 应急车道是什么意思| 1931年属什么生肖| 阶段性是什么意思| 为什么会血压高| 什么叫牙周炎| 牛肉不能和什么食物一起吃| 山己念什么| 农历六月初十是什么日子| 驻颜是什么意思| 欲情故纵是什么意思| 家庭主妇是什么意思| 02年的属什么| 友五行属什么| 休克是什么意思| 挚友是指什么的朋友| 津液不足吃什么中成药| 无妄是什么意思| 梦见水是什么预兆| 做了胃镜多久可以吃东西吃些什么| 荷花的别称是什么| 房颤什么症状| 居住证是什么| 三条杠是什么牌子| 燃面为什么叫燃面| 小孩经常尿床是什么原因| 胡萝卜炒什么| 补办户口本需要什么材料| 6.18是什么星座| 脸上掉皮是什么原因| 好汉不吃眼前亏是什么意思| 阴虚火旺吃什么调理| 尿酸高的人吃什么食物好| 腋下疼痛是什么原因| 百度
Jump to content

广西北仑河口国家级自然保护区:碧海绿洲 鸟飞鱼跃

From ArchWiki
百度 在过去的日子里,像暴雪、拳头、Epic等游戏大厂都曾试图在各自的地盘独立对抗恶劣游戏行为,然而结果并不尽人意。

This article or section needs expansion.

Reason: There are more examples in README file and config syntax explained (Discuss in Talk:Interception-tools)

This article or section needs language, wiki syntax or style improvements. See Help:Style for reference.

Reason: The wording and formatting of the examples is hard and obtuse - it is just a copy&paste of README, not a Wiki page (Discuss in Talk:Interception-tools)

interception-tools is a set of utilities to control and customize the behavior of keyboard input mappings.

Interception-tools operates at a lower level compared to other similar tools (xcape, xmodmap) by using libevdev and libudev(3). This makes it one of the only options available for customizing the keyboard behavior across X11, Wayland, and the Linux console.

Installation

Install interception-tools.

Many plugins are available:

Configuration

The tools comprise commandline tools and a systemd service.

A configuration in /etc/interception/udevmon.yaml needs to be added before starting the packaged udevmon.service.

Note: Configuration files found on /etc/interception/udevmon.d/ are read first, and fallbacks to /etc/interception/udevmon.yaml.

How it works

Interception-tool makes use of libevdev, which according to its wiki is essentially a read(2) on steroids for /dev/input/eventX devices. It sits in between the kernel and the process handling an event. In the simplest scenario would look like this:

kernel | libevdev | evtest

For X.Org input modules, the stack would look like this:

kernel | libevdev | xf86-input-evdev | X server | X client

For Wayland, the stack would look like this:

kernel | libevdev | Compositor | Wayland client

In other words, libevdev is so low level that it does not have knowledge of X/Wayland clients.

Practical examples

Interception-tools makes 4 utilities available:

  • intercept: redirect device input events to stdout,
  • mux: combine streams of input events,
  • udevmon: monitor input devices for launching tasks,
  • uinput: redirect device input events from stdin to virtual device.

Increase niceness

Since the tool is going to be sitting down at the lowest level of the device inputs, make sure it will behave consistently by increasing udevmon priority:

# nice -n -20 udevmon -c udevmon.yaml > udevmon.log 2> udevmon.err &
Tip: The udevmon systemd service runs with Nice=-20.

Simple redirection

The simplest way or redirecting the event to the stdin (without doing nothing) is:

$ intercept -g DEVNODE | uinput -d DEVNODE

where DEVNODE is the path to the actual device: e.g. /dev/input/by-path/platform-i8042-serio-0-event-kbd.

Embed commands

To actually perform an operation in between the key event and the input, simply pipe it in between intercept and uinput.

E.g. with the interception-caps2esc plugin installed:

$ intercept -g DEVNODE | caps2esc | uinput -d DEVNODE

If we omitted the -g flag, then device event would have been just observed, not grabbed.

Feed as YAML

This way of intercepting the input can quickly become sub-optimal, this is where udevmon comes in handy. udevmon accepts a YAML configuration with a list of jobs (sh commands by default) to be executed.

In case the device matches a given description:

$ udevmon -c caps2esc.conf.yml
- JOB: intercept -g DEVNODE | caps2esc | uinput -d DEVNODE
  DEVICE:
    LINK: /dev/input/by-path/platform-i8042-serio-0-event-kbd

The LINK configuration will match a device with a specific name, but it will accept also a regex option. This can be combined with multiple job specifications to create a default behavior, in each case only the first matching job is going to be executed:

- JOB: intercept -g DEVNODE | caps2esc -m 2 | uinput -d DEVNODE
  DEVICE:
    LINK: /dev/input/by-id/usb-SEMITEK_USB-HID_Gaming_Keyboard_SN0000000001-event-kbd
- JOB: intercept -g DEVNODE | caps2esc | uinput -d DEVNODE
  DEVICE:
    EVENTS:
      EV_KEY: [[KEY_CAPSLOCK, KEY_ESC]]
    LINK: .*-event-kbd

Combine devices

Beside input emulation, the uinput tool also serves purpose to print a device's description in YAML format:

$ uinput -p -d /dev/input/by-id/my-kbd

which itself can be fed back to uinput as:

$ uinput -c my-kbd.yaml

It can also merge device and YAML characteristics, which can be used for instance to combine events coming from keyboard and mouse:

e.g. instance CapsLock+Click as Ctrl+Click

$ uinput -p -d /dev/input/by-id/my-kbd -d /dev/input/by-id/my-mouse -c my-extra.yaml

Handle multiple jobs

The mux is used to combine multiple pipelines into a single one. A muxer needs to be created first, and it can later be used as the input or the output of a given pipeline. In a YAML specification file, the muxer is created using the CMD key:

- CMD: mux -c caps2esc_mixer
- JOB: mux -i caps2esc_mixer | caps2esc | uinput -c /etc/interception/gaming-keyboard.yaml
- JOB: intercept -g DEVNODE | mux -o caps2esc_mixer
  DEVICE:
    LINK: /dev/input/by-id/my-kbd
- JOB: intercept DEVNODE | mux -o caps2esc_mixer
  DEVICE:
    LINK: /dev/input/by-id/my-mouse

In the example above, when the keyboard is connected, it's grabbed and its input events are sent to the caps2esc muxer that was initially created. Observed input (not grabbed) from mouse is also sent to the same muxer. The buttons of the mouse generate EV_KEY events, so caps2esc will accept them.

淡定从容是什么意思 桂林是什么地貌 做胃镜之前需要做什么准备 执业药师什么时候报名 大三阳吃什么药好
万里长城是什么生肖 6月4号什么星座 血糖高喝什么茶 什么是强迫症有哪些表现 南什么北什么的成语
榴莲有什么好处 旗袍搭配什么鞋子好看 本科二批是什么意思 cb什么意思 算理是什么意思
发烧喝什么饮料比较好 cob是什么意思 三叉神经痛挂什么科就诊 ku是什么单位 宝宝有口臭是什么原因引起的
整体认读音节有什么hcv8jop3ns4r.cn 精神病人最怕什么刺激wmyky.com 许莫氏结节是什么hcv8jop0ns3r.cn 欢字五行属什么hcv8jop4ns2r.cn 橡木色是什么颜色beikeqingting.com
神龙见首不见尾是什么意思hcv9jop7ns1r.cn 灰指甲医院挂什么科hcv8jop7ns3r.cn 女性尿路感染吃什么药好得快naasee.com 屌丝男是什么意思hcv8jop1ns0r.cn 为什么男生zsyouku.com
做梦梦见狗是什么意思hcv8jop9ns2r.cn 做梦梦见狗是什么意思hcv8jop1ns6r.cn 寄生虫吃什么药可以杀死zsyouku.com 脾胃湿热吃什么中成药hcv9jop1ns3r.cn 什么血型最招蚊子咬tiangongnft.com
喝红酒对身体有什么好处bysq.com 妈妈像什么hcv8jop6ns8r.cn 梦见死去的亲人是什么意思hcv9jop2ns9r.cn 小便刺痛什么原因hcv7jop9ns9r.cn 腔隙脑梗吃什么药最好hcv8jop8ns7r.cn
百度