File: 02_removed_display.lua

package info (click to toggle)
notion 4.0.2%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,676 kB
  • sloc: ansic: 47,508; sh: 2,096; makefile: 603; perl: 270
file content (16 lines) | stat: -rw-r--r-- 527 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
mod_xrandr.screenlayoutupdated()

if notioncore.find_screen_id(1) then
  return "New number of screens should be 1, found ", notioncore.find_screen_id(1):name()
end

if notioncore.find_screen_id(0):mx_count() ~= 2 then
  return "Remaining screen should have 2 workspaces instead of " .. notioncore.find_screen_id(0):mx_count() ..
    ': ' .. mx_names(notioncore.find_screen_id(0))
end

print('Restoring second display and updating layout')
mod_xrandr_mock.set_number_of_screens(2)
mod_xrandr.screenlayoutupdated()

return "ok"