我有一些复杂的屏幕和扩展坞设置,并且想在扩展坞和对接时自动重新启动Awesome。我如何告诉Awesome做到这一点?
我知道最好的处理方式是避免重新启动和使用该awful.screen.connect_for_each_screen
功能,但是鉴于我的配置,我想重新启动Awesome。
screen.connect_signal("added", function() awesome.restart() end)
-- Perhaps you also want the following?
-- screen.connect_signal("removed", function() awesome.restart() end)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句