smt*_*smt 6 linux bash awesome-wm lua
尝试:
awful.util.spawn("scrot -s")
awful.util.spawn("urxvt -e \"scrot -s\"")
os.execute("scrot -s")
Run Code Online (Sandbox Code Playgroud)
以及所有可能的组合,甚至与sleep
.
也试过守护进程。
没有任何作用 =( PS 所有命令都在键绑定中,如果我替换scrot -s
为scrot
,则所有命令都有效,除了选择区域。
小智 7
由于您在命令行中有参数,应该使用 bad.util.spawn_with_shell() 。这个
awful.util.spawn_with_shell("sleep 0.5 && scrot -s")
Run Code Online (Sandbox Code Playgroud)
对我来说很好用。
归档时间: |
|
查看次数: |
8038 次 |
最近记录: |