linux - 从很棒的 wm 运行 scrot -s

标签 linux bash awesome-wm

当我尝试在“scrot -s”执行上设置快捷方式时,什么也没有发生。

当我只使用“scrot”时,屏幕截图会被保存到必要的目录中,但是当我使用“scrot -s”时,它应该弹出选择光标,但什么也没有发生。 我尝试同时使用可怕的.spawn和可怕的.spawn.with_shell

awful.key({ modkey, }, "Print",
            function()
                awful.spawn.with_shell("scrot -s")
            end, { description = "take screenshot", group = 
"launcher" })

最佳答案

将您的热键绑定(bind)到 sleep 0.2 && scrot -s 即可工作。 The problem seems to be ,窗口管理器释放键盘的速度不够快,scrot 无法捕获它(等待中止信号)。

关于linux - 从很棒的 wm 运行 scrot -s,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57101671/

相关文章:

python - 如何限制堆大小?

linux - 英特尔处理器如何访问 Branch Trace Store 缓冲区?

Python subprocess.call bash 别名

awesome-wm - AwesomeWM - 如何防止屏幕断开时客户端迁移?

lua - 真棒 WM : Placing tiled clients in specific order on startup

linux - 在 docker 容器中运行 auditd

regex - 如何修复正则表达式以匹配整个单词,而不是子字符串?

linux - shell,删除名称末尾的空格

linux - 根据第一列的开头合并 txt 中的几行

user-interface - Awesome wm 无法打开任何窗口或终端