【问题标题】:Forcing Awesome to restart when connecting a new screen连接新屏幕时强制 Awesome 重启
【发布时间】:2020-10-19 23:14:14
【问题描述】:

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

我知道首选的处理方式是避免重新启动并使用 awful.screen.connect_for_each_screen 函数,但鉴于我的配置,我想重新启动 Awesome。

【问题讨论】:

    标签: awesome-wm xrandr


    【解决方案1】:
    screen.connect_signal("added", function() awesome.restart() end)
    -- Perhaps you also want the following?
    -- screen.connect_signal("removed", function() awesome.restart() end)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-11-09
      • 2021-12-26
      • 1970-01-01
      • 2010-10-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多