Module monitors
Monitors Module This module handles monitor-related functionalities.
Functions
add (name, resolution, position, scale, workspaces) | Adds a monitor and optionally associates workspaces to it |
disable (name) | Disable a monitor |
write (file) | Saves monitors to file |
Functions
- add (name, resolution, position, scale, workspaces)
-
Adds a monitor and optionally associates workspaces to it
Parameters:
- name (string) The name of the monitor, can also be the description (eg. desc:Chimei Innolux Corporation 0x150C)
- resolution (string) The resolution for the given monitor 1920x1080@60.01Hz
- position (string) The position where the monitor will be displayed (eg. 0x0)
- scale (string) The scale for the monitor (eg. 1)
- workspaces (table) A list of workspaces that should be attached to this monitor
- disable (name)
-
Disable a monitor
Parameters:
- name (table) A list of monitors to disable
- write (file)
-
Saves monitors to file
Parameters:
- file (file*) A path to the configuration file to save