Quickshell


ShellScreen: QtObject

uncreatable
import Quickshell

Monitor object useful for setting the monitor for a QsWindow or querying information about the monitor.

WARNING

If the monitor is disconnected than any stored copies of its ShellMonitor will be marked as dangling and all properties will return default values. Reconnecting the monitor will not reconnect it to the ShellMonitor object.

Due to some technical limitations, it was not possible to reuse the native qml Screen type.

Properties [?]

  • devicePixelRatio real
    readonly

    The ratio between physical pixels and device-independent (scaled) pixels.

  • logicalPixelDensity real
    readonly

    The number of device-independent (scaled) pixels per millimeter.

  • height int
    readonly
    No details provided
  • orientation unknown
    readonly
    No details provided
  • model string
    readonly

    The model of the screen as seen by the operating system.

  • physicalPixelDensity real
    readonly

    The number of physical pixels per millimeter.

  • x int
    readonly
    No details provided
  • width int
    readonly
    No details provided
  • y int
    readonly
    No details provided
  • serialNumber string
    readonly

    The serial number of the screen as seen by the operating system.

  • name string
    readonly

    The name of the screen as seen by the operating system.

    Usually something like DP-1, HDMI-1, eDP-1.

  • primaryOrientation unknown
    readonly
    No details provided

Functions [?]

  • toString() string
    No details provided