1

I have some complicated screen and docking station setup and would like to automatically restart Awesome when docking and undocking. How can I tell Awesome to do that?

I know the preferred way of doing things is to avoid restarting and using the awful.screen.connect_for_each_screen function, but given my configuration, I want to restart Awesome instead.

scaramouche
  • 461
  • 2
  • 12

1 Answers1

0
screen.connect_signal("added", function() awesome.restart() end)
-- Perhaps you also want the following?
-- screen.connect_signal("removed", function() awesome.restart() end)
Uli Schlachter
  • 9,337
  • 1
  • 23
  • 39