1

我有一些复杂的屏幕和扩展坞设置,并希望在停靠和脱离时自动重启 Awesome。我怎么能告诉 Awesome 这样做呢?

我知道首选的做事方式是避免重新启动和使用该awful.screen.connect_for_each_screen功能,但鉴于我的配置,我想重新启动 Awesome。

4

1 回答 1

0
screen.connect_signal("added", function() awesome.restart() end)
-- Perhaps you also want the following?
-- screen.connect_signal("removed", function() awesome.restart() end)
于 2020-10-19T15:14:14.333 回答