02function 07togglePanelVisibility(panelName, state) awful.screen.focused()[panelName].visible = state 02end client.connect_signal(05'05property::fullscreen05', 02function(c) 02if c.fullscreen 02then forEach(panelsList, 02function(item) togglePanelVisibility(item, 02false) 02end) 02else forEach(panelsList, 02function(item) togglePanelVisibility(item, 02true) 02end) 02end 02end) awful.screen.connect_for_each_screen(02function(s) s:connect_signal(05"05tag::history::update05", 02function() 02local hasMaximized = 02false forEach(s.get_clients(), 02function(item) 02if item.fullscreen 02then hasMaximized = 02true 02end 02end) 02if hasMaximized 02then forEach(panelsList, 02function(item) togglePanelVisibility(item, 02false) 02end) 02else forEach(panelsList, 02function(item) togglePanelVisibility(item, 02true) 02end) 02end 02end) 02end)