连接新屏幕时强制 Awesome 重新启动
Forcing Awesome to restart when connecting a new screen
我有一些复杂的屏幕和扩展坞设置,希望在对接和取消对接时自动重启 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)
我有一些复杂的屏幕和扩展坞设置,希望在对接和取消对接时自动重启 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)