centos - 使用 "xbindkeys"和 "xdotool"在 firefox 60.1.0esr 上设置全屏

标签 centos x11 kiosk-mode firefox-quantum

我的目的是想知道是否有办法在 firefox-60.1.0 打开后以全屏模式设置为 kiosk,但使用 XbindkeysXdotool 程序。

注意:我已经进行了一些测试,这就是为什么我稍微更改了原始问题的范围。

XBindKeys 使用配置文件 .xbindkeysrc 来绑定(bind) key 。

例如,我编辑了这个文件,通过按 shift + f 组合键将 firefox 设置为全屏模式。然后,此操作激活 xdotool 命令,仅当 firefox 已打开时才将 F11 键发送到浏览器:

# set firefox to fullscreen if opened
"xdotool search --classname navigator key F11"
  shift + f

问题是它只适用于 firefox 52.8.0esr 但我的目标是 firefox 60.1.0esr 及更高版本。

所以现在,我想知道两件事:

  • “xbindkeys”和“xdotool”程序是否与 firefox-60.1.0 及更高版本兼容?
  • 是否有与 firefox-60.1.0 及更高版本兼容的 Xclients 替代品?

我发现的其他一些 Xclient 是(但目前尚未测试):

  • xvkbd
  • xkb
  • xmodmap

..还有 xdotool 的其他替代品,例如 autokey 以及这些帖子中的更多内容:

https://alternativeto.net/software/xdotool/?platform=linux

注意:我使用 centos 进行测试。

感谢您的帮助!

BR

最佳答案

因此,如果我理解您的意思,在 Firefox 启动之前允许使用任何键,然后只允许使用您想要的键?

使用 xbindkeys 启动一个 shell 脚本:

  1. 使用 xmodmap 将您希望隐藏的任何键重新映射到无害的东西中
  2. firefox 作为后台进程启动
  3. 使用 xdotool 将 F11 键发送到 firefox 窗口
  4. 然后等待firefox完成 最后
  5. 使用 xmodmap 恢复原始键绑定(bind)。

关于centos - 使用 "xbindkeys"和 "xdotool"在 firefox 60.1.0esr 上设置全屏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52175979/

相关文章:

centos - 文件在 Centos 上不包含节标题

django - 在 centos 上使用 cassandra

r - 在使用适用于 macOS 的 GitHub Actions 进行测试之前如何安装 X11?

c - 获取X11中的死键列表

c - X11 中的滚轮事件

linux - 如果死了,Cronjob 会检查并重新启动服务

c# - 在 Kiosk 模式下运行 GTK# 应用程序

Android Kiosk 模式 - 允许退出

android - 我如何在信息亭模式下启动任何简单的应用程序?

docker - rabbitmq-server - 与非 root 用户分离被阻塞