1 mod_xrandr
.screenlayoutupdated()
3 if notioncore
.find_screen_id(1) then
4 return "New number of screens should be 1, found ", notioncore
.find_screen_id(1):name()
7 if notioncore
.find_screen_id(0):mx_count() ~= 2 then
8 return "Remaining screen should have 2 workspaces instead of " .. notioncore
.find_screen_id(0):mx_count() ..
9 ': ' .. mx_names(notioncore
.find_screen_id(0))
12 print('Restoring second display and updating layout')
13 mod_xrandr_mock
.set_number_of_screens(2)
14 mod_xrandr
.screenlayoutupdated()